[2025-04-24 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:00:06 [end_date_ymd] => 2025-04-24 00:00:06 [RateCDR] => 1 ) [2025-04-24 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:00:06' and `end` < '2025-04-24 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:00:19] Production.INFO: count ==870 [2025-04-24 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:00:06 - End Time 2025-04-24 00:00:06 [2025-04-24 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975793', 'tblTempUsageDetail_20' ) start [2025-04-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975793', 'tblTempUsageDetail_20' ) end [2025-04-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975793', 'tblTempVendorCDR_20' ) start [2025-04-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975793', 'tblTempVendorCDR_20' ) end [2025-04-24 00:00:20] Production.INFO: ProcessCDR(1,14975793,1,1,2) [2025-04-24 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975793', 'tblTempUsageDetail_20' ) start [2025-04-24 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975793', 'tblTempUsageDetail_20' ) end [2025-04-24 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:00:25] Production.INFO: ==9905== Releasing lock... [2025-04-24 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:00:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:01:05 [end_date_ymd] => 2025-04-24 00:01:05 [RateCDR] => 1 ) [2025-04-24 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:01:05' and `end` < '2025-04-24 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:01:19] Production.INFO: count ==843 [2025-04-24 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-23 21:01:05 - End Time 2025-04-24 00:01:05 [2025-04-24 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975798', 'tblTempUsageDetail_20' ) start [2025-04-24 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975798', 'tblTempUsageDetail_20' ) end [2025-04-24 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975798', 'tblTempVendorCDR_20' ) start [2025-04-24 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975798', 'tblTempVendorCDR_20' ) end [2025-04-24 00:01:20] Production.INFO: ProcessCDR(1,14975798,1,1,2) [2025-04-24 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975798', 'tblTempUsageDetail_20' ) start [2025-04-24 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975798', 'tblTempUsageDetail_20' ) end [2025-04-24 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:01:24] Production.INFO: ==9998== Releasing lock... [2025-04-24 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:01:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-24 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:02:05 [end_date_ymd] => 2025-04-24 00:02:05 [RateCDR] => 1 ) [2025-04-24 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:02:05' and `end` < '2025-04-24 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:02:19] Production.INFO: count ==453 [2025-04-24 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:02:05 - End Time 2025-04-24 00:02:05 [2025-04-24 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975803', 'tblTempUsageDetail_20' ) start [2025-04-24 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975803', 'tblTempUsageDetail_20' ) end [2025-04-24 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975803', 'tblTempVendorCDR_20' ) start [2025-04-24 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975803', 'tblTempVendorCDR_20' ) end [2025-04-24 00:02:19] Production.INFO: ProcessCDR(1,14975803,1,1,2) [2025-04-24 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975803', 'tblTempUsageDetail_20' ) start [2025-04-24 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975803', 'tblTempUsageDetail_20' ) end [2025-04-24 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:02:22] Production.INFO: ==10073== Releasing lock... [2025-04-24 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-24 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:03:05 [end_date_ymd] => 2025-04-24 00:03:05 [RateCDR] => 1 ) [2025-04-24 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:03:05' and `end` < '2025-04-24 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:03:24] Production.INFO: count ==450 [2025-04-24 00:03:24] Production.ERROR: pbx CDR StartTime 2025-04-23 21:03:05 - End Time 2025-04-24 00:03:05 [2025-04-24 00:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975808', 'tblTempUsageDetail_20' ) start [2025-04-24 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975808', 'tblTempUsageDetail_20' ) end [2025-04-24 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975808', 'tblTempVendorCDR_20' ) start [2025-04-24 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975808', 'tblTempVendorCDR_20' ) end [2025-04-24 00:03:24] Production.INFO: ProcessCDR(1,14975808,1,1,2) [2025-04-24 00:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975808', 'tblTempUsageDetail_20' ) start [2025-04-24 00:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975808', 'tblTempUsageDetail_20' ) end [2025-04-24 00:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:03:29] Production.INFO: ==10151== Releasing lock... [2025-04-24 00:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:03:29] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:04:05 [end_date_ymd] => 2025-04-24 00:04:05 [RateCDR] => 1 ) [2025-04-24 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:04:05' and `end` < '2025-04-24 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:04:18] Production.INFO: count ==448 [2025-04-24 00:04:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:04:05 - End Time 2025-04-24 00:04:05 [2025-04-24 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975813', 'tblTempUsageDetail_20' ) start [2025-04-24 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975813', 'tblTempUsageDetail_20' ) end [2025-04-24 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975813', 'tblTempVendorCDR_20' ) start [2025-04-24 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975813', 'tblTempVendorCDR_20' ) end [2025-04-24 00:04:19] Production.INFO: ProcessCDR(1,14975813,1,1,2) [2025-04-24 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975813', 'tblTempUsageDetail_20' ) start [2025-04-24 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975813', 'tblTempUsageDetail_20' ) end [2025-04-24 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:04:22] Production.INFO: ==10233== Releasing lock... [2025-04-24 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:04:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:05:05 [end_date_ymd] => 2025-04-24 00:05:05 [RateCDR] => 1 ) [2025-04-24 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:05:05' and `end` < '2025-04-24 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:05:27] Production.INFO: count ==447 [2025-04-24 00:05:27] Production.ERROR: pbx CDR StartTime 2025-04-23 21:05:05 - End Time 2025-04-24 00:05:05 [2025-04-24 00:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975818', 'tblTempUsageDetail_20' ) start [2025-04-24 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975818', 'tblTempUsageDetail_20' ) end [2025-04-24 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975818', 'tblTempVendorCDR_20' ) start [2025-04-24 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975818', 'tblTempVendorCDR_20' ) end [2025-04-24 00:05:27] Production.INFO: ProcessCDR(1,14975818,1,1,2) [2025-04-24 00:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975818', 'tblTempUsageDetail_20' ) start [2025-04-24 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975818', 'tblTempUsageDetail_20' ) end [2025-04-24 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:05:31] Production.INFO: ==10308== Releasing lock... [2025-04-24 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:05:31] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:06:05 [end_date_ymd] => 2025-04-24 00:06:05 [RateCDR] => 1 ) [2025-04-24 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:06:05' and `end` < '2025-04-24 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:06:31] Production.INFO: count ==444 [2025-04-24 00:06:31] Production.ERROR: pbx CDR StartTime 2025-04-23 21:06:05 - End Time 2025-04-24 00:06:05 [2025-04-24 00:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975823', 'tblTempUsageDetail_20' ) start [2025-04-24 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975823', 'tblTempUsageDetail_20' ) end [2025-04-24 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975823', 'tblTempVendorCDR_20' ) start [2025-04-24 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975823', 'tblTempVendorCDR_20' ) end [2025-04-24 00:06:31] Production.INFO: ProcessCDR(1,14975823,1,1,2) [2025-04-24 00:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975823', 'tblTempUsageDetail_20' ) start [2025-04-24 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975823', 'tblTempUsageDetail_20' ) end [2025-04-24 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:06:34] Production.INFO: ==10384== Releasing lock... [2025-04-24 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:06:34] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:07:05 [end_date_ymd] => 2025-04-24 00:07:05 [RateCDR] => 1 ) [2025-04-24 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:07:05' and `end` < '2025-04-24 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:07:30] Production.INFO: count ==442 [2025-04-24 00:07:30] Production.ERROR: pbx CDR StartTime 2025-04-23 21:07:05 - End Time 2025-04-24 00:07:05 [2025-04-24 00:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975828', 'tblTempUsageDetail_20' ) start [2025-04-24 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975828', 'tblTempUsageDetail_20' ) end [2025-04-24 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975828', 'tblTempVendorCDR_20' ) start [2025-04-24 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975828', 'tblTempVendorCDR_20' ) end [2025-04-24 00:07:30] Production.INFO: ProcessCDR(1,14975828,1,1,2) [2025-04-24 00:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975828', 'tblTempUsageDetail_20' ) start [2025-04-24 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975828', 'tblTempUsageDetail_20' ) end [2025-04-24 00:07:34] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:07:34] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:07:34] Production.INFO: ==10460== Releasing lock... [2025-04-24 00:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:07:34] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:08:05 [end_date_ymd] => 2025-04-24 00:08:05 [RateCDR] => 1 ) [2025-04-24 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:08:05' and `end` < '2025-04-24 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:08:29] Production.INFO: count ==441 [2025-04-24 00:08:29] Production.ERROR: pbx CDR StartTime 2025-04-23 21:08:05 - End Time 2025-04-24 00:08:05 [2025-04-24 00:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975833', 'tblTempUsageDetail_20' ) start [2025-04-24 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975833', 'tblTempUsageDetail_20' ) end [2025-04-24 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975833', 'tblTempVendorCDR_20' ) start [2025-04-24 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975833', 'tblTempVendorCDR_20' ) end [2025-04-24 00:08:29] Production.INFO: ProcessCDR(1,14975833,1,1,2) [2025-04-24 00:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975833', 'tblTempUsageDetail_20' ) start [2025-04-24 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975833', 'tblTempUsageDetail_20' ) end [2025-04-24 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:08:33] Production.INFO: ==10536== Releasing lock... [2025-04-24 00:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:08:33] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:09:05 [end_date_ymd] => 2025-04-24 00:09:05 [RateCDR] => 1 ) [2025-04-24 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:09:05' and `end` < '2025-04-24 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:09:28] Production.INFO: count ==441 [2025-04-24 00:09:28] Production.ERROR: pbx CDR StartTime 2025-04-23 21:09:05 - End Time 2025-04-24 00:09:05 [2025-04-24 00:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975838', 'tblTempUsageDetail_20' ) start [2025-04-24 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975838', 'tblTempUsageDetail_20' ) end [2025-04-24 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975838', 'tblTempVendorCDR_20' ) start [2025-04-24 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975838', 'tblTempVendorCDR_20' ) end [2025-04-24 00:09:28] Production.INFO: ProcessCDR(1,14975838,1,1,2) [2025-04-24 00:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975838', 'tblTempUsageDetail_20' ) start [2025-04-24 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975838', 'tblTempUsageDetail_20' ) end [2025-04-24 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:09:32] Production.INFO: ==10615== Releasing lock... [2025-04-24 00:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:09:32] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:10:05 [end_date_ymd] => 2025-04-24 00:10:05 [RateCDR] => 1 ) [2025-04-24 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:10:05' and `end` < '2025-04-24 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:10:27] Production.INFO: count ==437 [2025-04-24 00:10:27] Production.ERROR: pbx CDR StartTime 2025-04-23 21:10:05 - End Time 2025-04-24 00:10:05 [2025-04-24 00:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975843', 'tblTempUsageDetail_20' ) start [2025-04-24 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975843', 'tblTempUsageDetail_20' ) end [2025-04-24 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975843', 'tblTempVendorCDR_20' ) start [2025-04-24 00:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975843', 'tblTempVendorCDR_20' ) end [2025-04-24 00:10:27] Production.INFO: ProcessCDR(1,14975843,1,1,2) [2025-04-24 00:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975843', 'tblTempUsageDetail_20' ) start [2025-04-24 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975843', 'tblTempUsageDetail_20' ) end [2025-04-24 00:10:31] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:10:31] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:10:31] Production.INFO: ==10693== Releasing lock... [2025-04-24 00:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:10:31] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:11:05 [end_date_ymd] => 2025-04-24 00:11:05 [RateCDR] => 1 ) [2025-04-24 00:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:11:05' and `end` < '2025-04-24 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:11:19] Production.INFO: count ==434 [2025-04-24 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:11:05 - End Time 2025-04-24 00:11:05 [2025-04-24 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975849', 'tblTempUsageDetail_20' ) start [2025-04-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975849', 'tblTempUsageDetail_20' ) end [2025-04-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975849', 'tblTempVendorCDR_20' ) start [2025-04-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975849', 'tblTempVendorCDR_20' ) end [2025-04-24 00:11:19] Production.INFO: ProcessCDR(1,14975849,1,1,2) [2025-04-24 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975849', 'tblTempUsageDetail_20' ) start [2025-04-24 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975849', 'tblTempUsageDetail_20' ) end [2025-04-24 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:11:22] Production.INFO: ==10770== Releasing lock... [2025-04-24 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:11:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:12:05 [end_date_ymd] => 2025-04-24 00:12:05 [RateCDR] => 1 ) [2025-04-24 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:12:05' and `end` < '2025-04-24 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:12:17] Production.INFO: count ==433 [2025-04-24 00:12:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:12:05 - End Time 2025-04-24 00:12:05 [2025-04-24 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975854', 'tblTempUsageDetail_20' ) start [2025-04-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975854', 'tblTempUsageDetail_20' ) end [2025-04-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975854', 'tblTempVendorCDR_20' ) start [2025-04-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975854', 'tblTempVendorCDR_20' ) end [2025-04-24 00:12:18] Production.INFO: ProcessCDR(1,14975854,1,1,2) [2025-04-24 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975854', 'tblTempUsageDetail_20' ) start [2025-04-24 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975854', 'tblTempUsageDetail_20' ) end [2025-04-24 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:12:21] Production.INFO: ==10841== Releasing lock... [2025-04-24 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:13:05 [end_date_ymd] => 2025-04-24 00:13:05 [RateCDR] => 1 ) [2025-04-24 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:13:05' and `end` < '2025-04-24 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:13:18] Production.INFO: count ==423 [2025-04-24 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:13:05 - End Time 2025-04-24 00:13:05 [2025-04-24 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975859', 'tblTempUsageDetail_20' ) start [2025-04-24 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975859', 'tblTempUsageDetail_20' ) end [2025-04-24 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975859', 'tblTempVendorCDR_20' ) start [2025-04-24 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975859', 'tblTempVendorCDR_20' ) end [2025-04-24 00:13:18] Production.INFO: ProcessCDR(1,14975859,1,1,2) [2025-04-24 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975859', 'tblTempUsageDetail_20' ) start [2025-04-24 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975859', 'tblTempUsageDetail_20' ) end [2025-04-24 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:13:21] Production.INFO: ==10959== Releasing lock... [2025-04-24 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:14:06 [end_date_ymd] => 2025-04-24 00:14:06 [RateCDR] => 1 ) [2025-04-24 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-04-23 21:14:06' and `end` < '2025-04-24 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-04-24 00:14:19] Production.INFO: count ==416 [2025-04-24 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:14:06 - End Time 2025-04-24 00:14:06 [2025-04-24 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975864', 'tblTempUsageDetail_20' ) start [2025-04-24 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975864', 'tblTempUsageDetail_20' ) end [2025-04-24 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975864', 'tblTempVendorCDR_20' ) start [2025-04-24 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975864', 'tblTempVendorCDR_20' ) end [2025-04-24 00:14:19] Production.INFO: ProcessCDR(1,14975864,1,1,2) [2025-04-24 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975864', 'tblTempUsageDetail_20' ) start [2025-04-24 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975864', 'tblTempUsageDetail_20' ) end [2025-04-24 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:14:22] Production.INFO: ==11031== Releasing lock... [2025-04-24 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:15:06 [end_date_ymd] => 2025-04-24 00:15:06 [RateCDR] => 1 ) [2025-04-24 00:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:15:06' and `end` < '2025-04-24 00:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:15:19] Production.INFO: count ==418 [2025-04-24 00:15:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:15:06 - End Time 2025-04-24 00:15:06 [2025-04-24 00:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975869', 'tblTempUsageDetail_20' ) start [2025-04-24 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975869', 'tblTempUsageDetail_20' ) end [2025-04-24 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975869', 'tblTempVendorCDR_20' ) start [2025-04-24 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975869', 'tblTempVendorCDR_20' ) end [2025-04-24 00:15:19] Production.INFO: ProcessCDR(1,14975869,1,1,2) [2025-04-24 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975869', 'tblTempUsageDetail_20' ) start [2025-04-24 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975869', 'tblTempUsageDetail_20' ) end [2025-04-24 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:15:22] Production.INFO: ==11104== Releasing lock... [2025-04-24 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:16:06 [end_date_ymd] => 2025-04-24 00:16:06 [RateCDR] => 1 ) [2025-04-24 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-04-23 21:16:06' and `end` < '2025-04-24 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-04-24 00:16:18] Production.INFO: count ==418 [2025-04-24 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:16:06 - End Time 2025-04-24 00:16:06 [2025-04-24 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975874', 'tblTempUsageDetail_20' ) start [2025-04-24 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975874', 'tblTempUsageDetail_20' ) end [2025-04-24 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975874', 'tblTempVendorCDR_20' ) start [2025-04-24 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975874', 'tblTempVendorCDR_20' ) end [2025-04-24 00:16:18] Production.INFO: ProcessCDR(1,14975874,1,1,2) [2025-04-24 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975874', 'tblTempUsageDetail_20' ) start [2025-04-24 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975874', 'tblTempUsageDetail_20' ) end [2025-04-24 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:16:22] Production.INFO: ==11180== Releasing lock... [2025-04-24 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:17:05 [end_date_ymd] => 2025-04-24 00:17:05 [RateCDR] => 1 ) [2025-04-24 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:17:05' and `end` < '2025-04-24 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:17:17] Production.INFO: count ==417 [2025-04-24 00:17:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:17:05 - End Time 2025-04-24 00:17:05 [2025-04-24 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975879', 'tblTempUsageDetail_20' ) start [2025-04-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975879', 'tblTempUsageDetail_20' ) end [2025-04-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975879', 'tblTempVendorCDR_20' ) start [2025-04-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975879', 'tblTempVendorCDR_20' ) end [2025-04-24 00:17:17] Production.INFO: ProcessCDR(1,14975879,1,1,2) [2025-04-24 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975879', 'tblTempUsageDetail_20' ) start [2025-04-24 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975879', 'tblTempUsageDetail_20' ) end [2025-04-24 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:17:23] Production.INFO: ==11253== Releasing lock... [2025-04-24 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:17:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:18:05 [end_date_ymd] => 2025-04-24 00:18:05 [RateCDR] => 1 ) [2025-04-24 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:18:05' and `end` < '2025-04-24 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:18:18] Production.INFO: count ==420 [2025-04-24 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:18:05 - End Time 2025-04-24 00:18:05 [2025-04-24 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975884', 'tblTempUsageDetail_20' ) start [2025-04-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975884', 'tblTempUsageDetail_20' ) end [2025-04-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975884', 'tblTempVendorCDR_20' ) start [2025-04-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975884', 'tblTempVendorCDR_20' ) end [2025-04-24 00:18:18] Production.INFO: ProcessCDR(1,14975884,1,1,2) [2025-04-24 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975884', 'tblTempUsageDetail_20' ) start [2025-04-24 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975884', 'tblTempUsageDetail_20' ) end [2025-04-24 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:18:22] Production.INFO: ==11327== Releasing lock... [2025-04-24 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:18:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:19:05 [end_date_ymd] => 2025-04-24 00:19:05 [RateCDR] => 1 ) [2025-04-24 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:19:05' and `end` < '2025-04-24 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:19:18] Production.INFO: count ==419 [2025-04-24 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:19:05 - End Time 2025-04-24 00:19:05 [2025-04-24 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975889', 'tblTempUsageDetail_20' ) start [2025-04-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975889', 'tblTempUsageDetail_20' ) end [2025-04-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975889', 'tblTempVendorCDR_20' ) start [2025-04-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975889', 'tblTempVendorCDR_20' ) end [2025-04-24 00:19:18] Production.INFO: ProcessCDR(1,14975889,1,1,2) [2025-04-24 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975889', 'tblTempUsageDetail_20' ) start [2025-04-24 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975889', 'tblTempUsageDetail_20' ) end [2025-04-24 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:19:21] Production.INFO: ==11405== Releasing lock... [2025-04-24 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:20:06 [end_date_ymd] => 2025-04-24 00:20:06 [RateCDR] => 1 ) [2025-04-24 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:20:06' and `end` < '2025-04-24 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:20:19] Production.INFO: count ==431 [2025-04-24 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:20:06 - End Time 2025-04-24 00:20:06 [2025-04-24 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975895', 'tblTempUsageDetail_20' ) start [2025-04-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975895', 'tblTempUsageDetail_20' ) end [2025-04-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975895', 'tblTempVendorCDR_20' ) start [2025-04-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975895', 'tblTempVendorCDR_20' ) end [2025-04-24 00:20:19] Production.INFO: ProcessCDR(1,14975895,1,1,2) [2025-04-24 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975895', 'tblTempUsageDetail_20' ) start [2025-04-24 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975895', 'tblTempUsageDetail_20' ) end [2025-04-24 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:20:24] Production.INFO: ==11488== Releasing lock... [2025-04-24 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:20:24] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:21:04 [end_date_ymd] => 2025-04-24 00:21:04 [RateCDR] => 1 ) [2025-04-24 00: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-04-23 21:21:04' and `end` < '2025-04-24 00: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-04-24 00:21:17] Production.INFO: count ==436 [2025-04-24 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:21:04 - End Time 2025-04-24 00:21:04 [2025-04-24 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975900', 'tblTempUsageDetail_20' ) start [2025-04-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975900', 'tblTempUsageDetail_20' ) end [2025-04-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975900', 'tblTempVendorCDR_20' ) start [2025-04-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975900', 'tblTempVendorCDR_20' ) end [2025-04-24 00:21:17] Production.INFO: ProcessCDR(1,14975900,1,1,2) [2025-04-24 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975900', 'tblTempUsageDetail_20' ) start [2025-04-24 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975900', 'tblTempUsageDetail_20' ) end [2025-04-24 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:21:21] Production.INFO: ==11563== Releasing lock... [2025-04-24 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:22:05 [end_date_ymd] => 2025-04-24 00:22:05 [RateCDR] => 1 ) [2025-04-24 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:22:05' and `end` < '2025-04-24 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:22:18] Production.INFO: count ==436 [2025-04-24 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:22:05 - End Time 2025-04-24 00:22:05 [2025-04-24 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975905', 'tblTempUsageDetail_20' ) start [2025-04-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975905', 'tblTempUsageDetail_20' ) end [2025-04-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975905', 'tblTempVendorCDR_20' ) start [2025-04-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975905', 'tblTempVendorCDR_20' ) end [2025-04-24 00:22:18] Production.INFO: ProcessCDR(1,14975905,1,1,2) [2025-04-24 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975905', 'tblTempUsageDetail_20' ) start [2025-04-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975905', 'tblTempUsageDetail_20' ) end [2025-04-24 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:22:21] Production.INFO: ==11640== Releasing lock... [2025-04-24 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:22:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:23:05 [end_date_ymd] => 2025-04-24 00:23:05 [RateCDR] => 1 ) [2025-04-24 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:23:05' and `end` < '2025-04-24 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:23:18] Production.INFO: count ==435 [2025-04-24 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:23:05 - End Time 2025-04-24 00:23:05 [2025-04-24 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975910', 'tblTempUsageDetail_20' ) start [2025-04-24 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975910', 'tblTempUsageDetail_20' ) end [2025-04-24 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975910', 'tblTempVendorCDR_20' ) start [2025-04-24 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975910', 'tblTempVendorCDR_20' ) end [2025-04-24 00:23:18] Production.INFO: ProcessCDR(1,14975910,1,1,2) [2025-04-24 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975910', 'tblTempUsageDetail_20' ) start [2025-04-24 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975910', 'tblTempUsageDetail_20' ) end [2025-04-24 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:23:21] Production.INFO: ==11716== Releasing lock... [2025-04-24 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:24:05 [end_date_ymd] => 2025-04-24 00:24:05 [RateCDR] => 1 ) [2025-04-24 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:24:05' and `end` < '2025-04-24 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:24:19] Production.INFO: count ==431 [2025-04-24 00:24:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:24:05 - End Time 2025-04-24 00:24:05 [2025-04-24 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975915', 'tblTempUsageDetail_20' ) start [2025-04-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975915', 'tblTempUsageDetail_20' ) end [2025-04-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975915', 'tblTempVendorCDR_20' ) start [2025-04-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975915', 'tblTempVendorCDR_20' ) end [2025-04-24 00:24:19] Production.INFO: ProcessCDR(1,14975915,1,1,2) [2025-04-24 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975915', 'tblTempUsageDetail_20' ) start [2025-04-24 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975915', 'tblTempUsageDetail_20' ) end [2025-04-24 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:24:22] Production.INFO: ==11794== Releasing lock... [2025-04-24 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:24:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:25:06 [end_date_ymd] => 2025-04-24 00:25:06 [RateCDR] => 1 ) [2025-04-24 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:25:06' and `end` < '2025-04-24 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:25:18] Production.INFO: count ==429 [2025-04-24 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:25:06 - End Time 2025-04-24 00:25:06 [2025-04-24 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975920', 'tblTempUsageDetail_20' ) start [2025-04-24 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975920', 'tblTempUsageDetail_20' ) end [2025-04-24 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975920', 'tblTempVendorCDR_20' ) start [2025-04-24 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975920', 'tblTempVendorCDR_20' ) end [2025-04-24 00:25:19] Production.INFO: ProcessCDR(1,14975920,1,1,2) [2025-04-24 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975920', 'tblTempUsageDetail_20' ) start [2025-04-24 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975920', 'tblTempUsageDetail_20' ) end [2025-04-24 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:25:22] Production.INFO: ==11868== Releasing lock... [2025-04-24 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:25:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:26:05 [end_date_ymd] => 2025-04-24 00:26:05 [RateCDR] => 1 ) [2025-04-24 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:26:05' and `end` < '2025-04-24 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:26:18] Production.INFO: count ==429 [2025-04-24 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:26:05 - End Time 2025-04-24 00:26:05 [2025-04-24 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975925', 'tblTempUsageDetail_20' ) start [2025-04-24 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975925', 'tblTempUsageDetail_20' ) end [2025-04-24 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975925', 'tblTempVendorCDR_20' ) start [2025-04-24 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975925', 'tblTempVendorCDR_20' ) end [2025-04-24 00:26:18] Production.INFO: ProcessCDR(1,14975925,1,1,2) [2025-04-24 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975925', 'tblTempUsageDetail_20' ) start [2025-04-24 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975925', 'tblTempUsageDetail_20' ) end [2025-04-24 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:26:21] Production.INFO: ==11946== Releasing lock... [2025-04-24 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:26:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:27:06 [end_date_ymd] => 2025-04-24 00:27:06 [RateCDR] => 1 ) [2025-04-24 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-04-23 21:27:06' and `end` < '2025-04-24 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:27:18] Production.INFO: count ==426 [2025-04-24 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:27:06 - End Time 2025-04-24 00:27:06 [2025-04-24 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975930', 'tblTempUsageDetail_20' ) start [2025-04-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975930', 'tblTempUsageDetail_20' ) end [2025-04-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975930', 'tblTempVendorCDR_20' ) start [2025-04-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975930', 'tblTempVendorCDR_20' ) end [2025-04-24 00:27:18] Production.INFO: ProcessCDR(1,14975930,1,1,2) [2025-04-24 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975930', 'tblTempUsageDetail_20' ) start [2025-04-24 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975930', 'tblTempUsageDetail_20' ) end [2025-04-24 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:27:22] Production.INFO: ==12024== Releasing lock... [2025-04-24 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:28:05 [end_date_ymd] => 2025-04-24 00:28:05 [RateCDR] => 1 ) [2025-04-24 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:28:05' and `end` < '2025-04-24 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:28:18] Production.INFO: count ==426 [2025-04-24 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:28:05 - End Time 2025-04-24 00:28:05 [2025-04-24 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975935', 'tblTempUsageDetail_20' ) start [2025-04-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975935', 'tblTempUsageDetail_20' ) end [2025-04-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975935', 'tblTempVendorCDR_20' ) start [2025-04-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975935', 'tblTempVendorCDR_20' ) end [2025-04-24 00:28:18] Production.INFO: ProcessCDR(1,14975935,1,1,2) [2025-04-24 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975935', 'tblTempUsageDetail_20' ) start [2025-04-24 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975935', 'tblTempUsageDetail_20' ) end [2025-04-24 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:28:21] Production.INFO: ==12098== Releasing lock... [2025-04-24 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:29:05 [end_date_ymd] => 2025-04-24 00:29:05 [RateCDR] => 1 ) [2025-04-24 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:29:05' and `end` < '2025-04-24 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:29:18] Production.INFO: count ==426 [2025-04-24 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:29:05 - End Time 2025-04-24 00:29:05 [2025-04-24 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975940', 'tblTempUsageDetail_20' ) start [2025-04-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975940', 'tblTempUsageDetail_20' ) end [2025-04-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975940', 'tblTempVendorCDR_20' ) start [2025-04-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975940', 'tblTempVendorCDR_20' ) end [2025-04-24 00:29:18] Production.INFO: ProcessCDR(1,14975940,1,1,2) [2025-04-24 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975940', 'tblTempUsageDetail_20' ) start [2025-04-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975940', 'tblTempUsageDetail_20' ) end [2025-04-24 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:29:21] Production.INFO: ==12215== Releasing lock... [2025-04-24 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:30:06 [end_date_ymd] => 2025-04-24 00:30:06 [RateCDR] => 1 ) [2025-04-24 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:30:06' and `end` < '2025-04-24 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:30:18] Production.INFO: count ==430 [2025-04-24 00:30:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:30:06 - End Time 2025-04-24 00:30:06 [2025-04-24 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975946', 'tblTempUsageDetail_20' ) start [2025-04-24 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975946', 'tblTempUsageDetail_20' ) end [2025-04-24 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975946', 'tblTempVendorCDR_20' ) start [2025-04-24 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975946', 'tblTempVendorCDR_20' ) end [2025-04-24 00:30:19] Production.INFO: ProcessCDR(1,14975946,1,1,2) [2025-04-24 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975946', 'tblTempUsageDetail_20' ) start [2025-04-24 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975946', 'tblTempUsageDetail_20' ) end [2025-04-24 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:30:22] Production.INFO: ==12289== Releasing lock... [2025-04-24 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:31:05 [end_date_ymd] => 2025-04-24 00:31:05 [RateCDR] => 1 ) [2025-04-24 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:31:05' and `end` < '2025-04-24 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:31:18] Production.INFO: count ==442 [2025-04-24 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:31:05 - End Time 2025-04-24 00:31:05 [2025-04-24 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975951', 'tblTempUsageDetail_20' ) start [2025-04-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975951', 'tblTempUsageDetail_20' ) end [2025-04-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975951', 'tblTempVendorCDR_20' ) start [2025-04-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975951', 'tblTempVendorCDR_20' ) end [2025-04-24 00:31:18] Production.INFO: ProcessCDR(1,14975951,1,1,2) [2025-04-24 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975951', 'tblTempUsageDetail_20' ) start [2025-04-24 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975951', 'tblTempUsageDetail_20' ) end [2025-04-24 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:31:21] Production.INFO: ==12364== Releasing lock... [2025-04-24 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:31:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:32:05 [end_date_ymd] => 2025-04-24 00:32:05 [RateCDR] => 1 ) [2025-04-24 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:32:05' and `end` < '2025-04-24 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:32:17] Production.INFO: count ==442 [2025-04-24 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:32:05 - End Time 2025-04-24 00:32:05 [2025-04-24 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975956', 'tblTempUsageDetail_20' ) start [2025-04-24 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975956', 'tblTempUsageDetail_20' ) end [2025-04-24 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975956', 'tblTempVendorCDR_20' ) start [2025-04-24 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975956', 'tblTempVendorCDR_20' ) end [2025-04-24 00:32:18] Production.INFO: ProcessCDR(1,14975956,1,1,2) [2025-04-24 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975956', 'tblTempUsageDetail_20' ) start [2025-04-24 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975956', 'tblTempUsageDetail_20' ) end [2025-04-24 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:32:21] Production.INFO: ==12441== Releasing lock... [2025-04-24 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:33:05 [end_date_ymd] => 2025-04-24 00:33:05 [RateCDR] => 1 ) [2025-04-24 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:33:05' and `end` < '2025-04-24 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:33:17] Production.INFO: count ==430 [2025-04-24 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:33:05 - End Time 2025-04-24 00:33:05 [2025-04-24 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975961', 'tblTempUsageDetail_20' ) start [2025-04-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975961', 'tblTempUsageDetail_20' ) end [2025-04-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975961', 'tblTempVendorCDR_20' ) start [2025-04-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975961', 'tblTempVendorCDR_20' ) end [2025-04-24 00:33:18] Production.INFO: ProcessCDR(1,14975961,1,1,2) [2025-04-24 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975961', 'tblTempUsageDetail_20' ) start [2025-04-24 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975961', 'tblTempUsageDetail_20' ) end [2025-04-24 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:33:22] Production.INFO: ==12519== Releasing lock... [2025-04-24 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:34:05 [end_date_ymd] => 2025-04-24 00:34:05 [RateCDR] => 1 ) [2025-04-24 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:34:05' and `end` < '2025-04-24 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:34:18] Production.INFO: count ==427 [2025-04-24 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:34:05 - End Time 2025-04-24 00:34:05 [2025-04-24 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975966', 'tblTempUsageDetail_20' ) start [2025-04-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975966', 'tblTempUsageDetail_20' ) end [2025-04-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975966', 'tblTempVendorCDR_20' ) start [2025-04-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975966', 'tblTempVendorCDR_20' ) end [2025-04-24 00:34:18] Production.INFO: ProcessCDR(1,14975966,1,1,2) [2025-04-24 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975966', 'tblTempUsageDetail_20' ) start [2025-04-24 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975966', 'tblTempUsageDetail_20' ) end [2025-04-24 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:34:21] Production.INFO: ==12612== Releasing lock... [2025-04-24 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:34:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:35:06 [end_date_ymd] => 2025-04-24 00:35:06 [RateCDR] => 1 ) [2025-04-24 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:35:06' and `end` < '2025-04-24 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:35:18] Production.INFO: count ==424 [2025-04-24 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:35:06 - End Time 2025-04-24 00:35:06 [2025-04-24 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975971', 'tblTempUsageDetail_20' ) start [2025-04-24 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975971', 'tblTempUsageDetail_20' ) end [2025-04-24 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975971', 'tblTempVendorCDR_20' ) start [2025-04-24 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975971', 'tblTempVendorCDR_20' ) end [2025-04-24 00:35:18] Production.INFO: ProcessCDR(1,14975971,1,1,2) [2025-04-24 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975971', 'tblTempUsageDetail_20' ) start [2025-04-24 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975971', 'tblTempUsageDetail_20' ) end [2025-04-24 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:35:22] Production.INFO: ==12687== Releasing lock... [2025-04-24 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:36:05 [end_date_ymd] => 2025-04-24 00:36:05 [RateCDR] => 1 ) [2025-04-24 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:36:05' and `end` < '2025-04-24 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:36:18] Production.INFO: count ==421 [2025-04-24 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:36:05 - End Time 2025-04-24 00:36:05 [2025-04-24 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975976', 'tblTempUsageDetail_20' ) start [2025-04-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975976', 'tblTempUsageDetail_20' ) end [2025-04-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975976', 'tblTempVendorCDR_20' ) start [2025-04-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975976', 'tblTempVendorCDR_20' ) end [2025-04-24 00:36:18] Production.INFO: ProcessCDR(1,14975976,1,1,2) [2025-04-24 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975976', 'tblTempUsageDetail_20' ) start [2025-04-24 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975976', 'tblTempUsageDetail_20' ) end [2025-04-24 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:36:21] Production.INFO: ==12758== Releasing lock... [2025-04-24 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:36:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:37:05 [end_date_ymd] => 2025-04-24 00:37:05 [RateCDR] => 1 ) [2025-04-24 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:37:05' and `end` < '2025-04-24 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:37:17] Production.INFO: count ==418 [2025-04-24 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:37:05 - End Time 2025-04-24 00:37:05 [2025-04-24 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975981', 'tblTempUsageDetail_20' ) start [2025-04-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975981', 'tblTempUsageDetail_20' ) end [2025-04-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975981', 'tblTempVendorCDR_20' ) start [2025-04-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975981', 'tblTempVendorCDR_20' ) end [2025-04-24 00:37:18] Production.INFO: ProcessCDR(1,14975981,1,1,2) [2025-04-24 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975981', 'tblTempUsageDetail_20' ) start [2025-04-24 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975981', 'tblTempUsageDetail_20' ) end [2025-04-24 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:37:21] Production.INFO: ==12833== Releasing lock... [2025-04-24 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:38:05 [end_date_ymd] => 2025-04-24 00:38:05 [RateCDR] => 1 ) [2025-04-24 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:38:05' and `end` < '2025-04-24 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:38:18] Production.INFO: count ==415 [2025-04-24 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:38:05 - End Time 2025-04-24 00:38:05 [2025-04-24 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975986', 'tblTempUsageDetail_20' ) start [2025-04-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975986', 'tblTempUsageDetail_20' ) end [2025-04-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975986', 'tblTempVendorCDR_20' ) start [2025-04-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975986', 'tblTempVendorCDR_20' ) end [2025-04-24 00:38:18] Production.INFO: ProcessCDR(1,14975986,1,1,2) [2025-04-24 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975986', 'tblTempUsageDetail_20' ) start [2025-04-24 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975986', 'tblTempUsageDetail_20' ) end [2025-04-24 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:38:21] Production.INFO: ==12905== Releasing lock... [2025-04-24 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:39:04 [end_date_ymd] => 2025-04-24 00:39:04 [RateCDR] => 1 ) [2025-04-24 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:39:04' and `end` < '2025-04-24 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:39:17] Production.INFO: count ==415 [2025-04-24 00:39:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:39:04 - End Time 2025-04-24 00:39:04 [2025-04-24 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975991', 'tblTempUsageDetail_20' ) start [2025-04-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975991', 'tblTempUsageDetail_20' ) end [2025-04-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975991', 'tblTempVendorCDR_20' ) start [2025-04-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975991', 'tblTempVendorCDR_20' ) end [2025-04-24 00:39:17] Production.INFO: ProcessCDR(1,14975991,1,1,2) [2025-04-24 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975991', 'tblTempUsageDetail_20' ) start [2025-04-24 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975991', 'tblTempUsageDetail_20' ) end [2025-04-24 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:39:21] Production.INFO: ==12986== Releasing lock... [2025-04-24 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:40:06 [end_date_ymd] => 2025-04-24 00:40:06 [RateCDR] => 1 ) [2025-04-24 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:40:06' and `end` < '2025-04-24 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:40:18] Production.INFO: count ==420 [2025-04-24 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:40:06 - End Time 2025-04-24 00:40:06 [2025-04-24 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975997', 'tblTempUsageDetail_20' ) start [2025-04-24 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975997', 'tblTempUsageDetail_20' ) end [2025-04-24 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975997', 'tblTempVendorCDR_20' ) start [2025-04-24 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975997', 'tblTempVendorCDR_20' ) end [2025-04-24 00:40:19] Production.INFO: ProcessCDR(1,14975997,1,1,2) [2025-04-24 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975997', 'tblTempUsageDetail_20' ) start [2025-04-24 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975997', 'tblTempUsageDetail_20' ) end [2025-04-24 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:40:22] Production.INFO: ==13058== Releasing lock... [2025-04-24 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:41:05 [end_date_ymd] => 2025-04-24 00:41:05 [RateCDR] => 1 ) [2025-04-24 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:41:05' and `end` < '2025-04-24 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:41:18] Production.INFO: count ==417 [2025-04-24 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:41:05 - End Time 2025-04-24 00:41:05 [2025-04-24 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976002', 'tblTempUsageDetail_20' ) start [2025-04-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976002', 'tblTempUsageDetail_20' ) end [2025-04-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976002', 'tblTempVendorCDR_20' ) start [2025-04-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976002', 'tblTempVendorCDR_20' ) end [2025-04-24 00:41:18] Production.INFO: ProcessCDR(1,14976002,1,1,2) [2025-04-24 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976002', 'tblTempUsageDetail_20' ) start [2025-04-24 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976002', 'tblTempUsageDetail_20' ) end [2025-04-24 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:41:21] Production.INFO: ==13138== Releasing lock... [2025-04-24 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:42:05 [end_date_ymd] => 2025-04-24 00:42:05 [RateCDR] => 1 ) [2025-04-24 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:42:05' and `end` < '2025-04-24 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:42:17] Production.INFO: count ==414 [2025-04-24 00:42:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:42:05 - End Time 2025-04-24 00:42:05 [2025-04-24 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976007', 'tblTempUsageDetail_20' ) start [2025-04-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976007', 'tblTempUsageDetail_20' ) end [2025-04-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976007', 'tblTempVendorCDR_20' ) start [2025-04-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976007', 'tblTempVendorCDR_20' ) end [2025-04-24 00:42:18] Production.INFO: ProcessCDR(1,14976007,1,1,2) [2025-04-24 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976007', 'tblTempUsageDetail_20' ) start [2025-04-24 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976007', 'tblTempUsageDetail_20' ) end [2025-04-24 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:42:21] Production.INFO: ==13210== Releasing lock... [2025-04-24 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:43:05 [end_date_ymd] => 2025-04-24 00:43:05 [RateCDR] => 1 ) [2025-04-24 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:43:05' and `end` < '2025-04-24 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:43:18] Production.INFO: count ==411 [2025-04-24 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:43:05 - End Time 2025-04-24 00:43:05 [2025-04-24 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976012', 'tblTempUsageDetail_20' ) start [2025-04-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976012', 'tblTempUsageDetail_20' ) end [2025-04-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976012', 'tblTempVendorCDR_20' ) start [2025-04-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976012', 'tblTempVendorCDR_20' ) end [2025-04-24 00:43:18] Production.INFO: ProcessCDR(1,14976012,1,1,2) [2025-04-24 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976012', 'tblTempUsageDetail_20' ) start [2025-04-24 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976012', 'tblTempUsageDetail_20' ) end [2025-04-24 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:43:22] Production.INFO: ==13283== Releasing lock... [2025-04-24 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:43:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:44:05 [end_date_ymd] => 2025-04-24 00:44:05 [RateCDR] => 1 ) [2025-04-24 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:44:05' and `end` < '2025-04-24 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:44:18] Production.INFO: count ==411 [2025-04-24 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:44:05 - End Time 2025-04-24 00:44:05 [2025-04-24 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976017', 'tblTempUsageDetail_20' ) start [2025-04-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976017', 'tblTempUsageDetail_20' ) end [2025-04-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976017', 'tblTempVendorCDR_20' ) start [2025-04-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976017', 'tblTempVendorCDR_20' ) end [2025-04-24 00:44:18] Production.INFO: ProcessCDR(1,14976017,1,1,2) [2025-04-24 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976017', 'tblTempUsageDetail_20' ) start [2025-04-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976017', 'tblTempUsageDetail_20' ) end [2025-04-24 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:44:21] Production.INFO: ==13397== Releasing lock... [2025-04-24 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:44:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:45:05 [end_date_ymd] => 2025-04-24 00:45:05 [RateCDR] => 1 ) [2025-04-24 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:45:05' and `end` < '2025-04-24 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:45:18] Production.INFO: count ==410 [2025-04-24 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:45:05 - End Time 2025-04-24 00:45:05 [2025-04-24 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976022', 'tblTempUsageDetail_20' ) start [2025-04-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976022', 'tblTempUsageDetail_20' ) end [2025-04-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976022', 'tblTempVendorCDR_20' ) start [2025-04-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976022', 'tblTempVendorCDR_20' ) end [2025-04-24 00:45:18] Production.INFO: ProcessCDR(1,14976022,1,1,2) [2025-04-24 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976022', 'tblTempUsageDetail_20' ) start [2025-04-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976022', 'tblTempUsageDetail_20' ) end [2025-04-24 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:45:21] Production.INFO: ==13469== Releasing lock... [2025-04-24 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:46:05 [end_date_ymd] => 2025-04-24 00:46:05 [RateCDR] => 1 ) [2025-04-24 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:46:05' and `end` < '2025-04-24 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:46:17] Production.INFO: count ==408 [2025-04-24 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:46:05 - End Time 2025-04-24 00:46:05 [2025-04-24 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976027', 'tblTempUsageDetail_20' ) start [2025-04-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976027', 'tblTempUsageDetail_20' ) end [2025-04-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976027', 'tblTempVendorCDR_20' ) start [2025-04-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976027', 'tblTempVendorCDR_20' ) end [2025-04-24 00:46:18] Production.INFO: ProcessCDR(1,14976027,1,1,2) [2025-04-24 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976027', 'tblTempUsageDetail_20' ) start [2025-04-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976027', 'tblTempUsageDetail_20' ) end [2025-04-24 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:46:21] Production.INFO: ==13544== Releasing lock... [2025-04-24 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:46:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:47:05 [end_date_ymd] => 2025-04-24 00:47:05 [RateCDR] => 1 ) [2025-04-24 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:47:05' and `end` < '2025-04-24 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:47:18] Production.INFO: count ==405 [2025-04-24 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:47:05 - End Time 2025-04-24 00:47:05 [2025-04-24 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976032', 'tblTempUsageDetail_20' ) start [2025-04-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976032', 'tblTempUsageDetail_20' ) end [2025-04-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976032', 'tblTempVendorCDR_20' ) start [2025-04-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976032', 'tblTempVendorCDR_20' ) end [2025-04-24 00:47:18] Production.INFO: ProcessCDR(1,14976032,1,1,2) [2025-04-24 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976032', 'tblTempUsageDetail_20' ) start [2025-04-24 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976032', 'tblTempUsageDetail_20' ) end [2025-04-24 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:47:22] Production.INFO: ==13624== Releasing lock... [2025-04-24 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:48:06 [end_date_ymd] => 2025-04-24 00:48:06 [RateCDR] => 1 ) [2025-04-24 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:48:06' and `end` < '2025-04-24 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:48:19] Production.INFO: count ==405 [2025-04-24 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:48:06 - End Time 2025-04-24 00:48:06 [2025-04-24 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976037', 'tblTempUsageDetail_20' ) start [2025-04-24 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976037', 'tblTempUsageDetail_20' ) end [2025-04-24 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976037', 'tblTempVendorCDR_20' ) start [2025-04-24 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976037', 'tblTempVendorCDR_20' ) end [2025-04-24 00:48:19] Production.INFO: ProcessCDR(1,14976037,1,1,2) [2025-04-24 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976037', 'tblTempUsageDetail_20' ) start [2025-04-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976037', 'tblTempUsageDetail_20' ) end [2025-04-24 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:48:22] Production.INFO: ==13695== Releasing lock... [2025-04-24 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:49:05 [end_date_ymd] => 2025-04-24 00:49:05 [RateCDR] => 1 ) [2025-04-24 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:49:05' and `end` < '2025-04-24 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:49:17] Production.INFO: count ==405 [2025-04-24 00:49:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:49:05 - End Time 2025-04-24 00:49:05 [2025-04-24 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976042', 'tblTempUsageDetail_20' ) start [2025-04-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976042', 'tblTempUsageDetail_20' ) end [2025-04-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976042', 'tblTempVendorCDR_20' ) start [2025-04-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976042', 'tblTempVendorCDR_20' ) end [2025-04-24 00:49:17] Production.INFO: ProcessCDR(1,14976042,1,1,2) [2025-04-24 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976042', 'tblTempUsageDetail_20' ) start [2025-04-24 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976042', 'tblTempUsageDetail_20' ) end [2025-04-24 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:49:21] Production.INFO: ==13772== Releasing lock... [2025-04-24 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:50:06 [end_date_ymd] => 2025-04-24 00:50:06 [RateCDR] => 1 ) [2025-04-24 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:50:06' and `end` < '2025-04-24 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:50:19] Production.INFO: count ==398 [2025-04-24 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 21:50:06 - End Time 2025-04-24 00:50:06 [2025-04-24 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976048', 'tblTempUsageDetail_20' ) start [2025-04-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976048', 'tblTempUsageDetail_20' ) end [2025-04-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976048', 'tblTempVendorCDR_20' ) start [2025-04-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976048', 'tblTempVendorCDR_20' ) end [2025-04-24 00:50:19] Production.INFO: ProcessCDR(1,14976048,1,1,2) [2025-04-24 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976048', 'tblTempUsageDetail_20' ) start [2025-04-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976048', 'tblTempUsageDetail_20' ) end [2025-04-24 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:50:22] Production.INFO: ==13849== Releasing lock... [2025-04-24 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:50:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:51:05 [end_date_ymd] => 2025-04-24 00:51:05 [RateCDR] => 1 ) [2025-04-24 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:51:05' and `end` < '2025-04-24 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:51:18] Production.INFO: count ==396 [2025-04-24 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:51:05 - End Time 2025-04-24 00:51:05 [2025-04-24 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976053', 'tblTempUsageDetail_20' ) start [2025-04-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976053', 'tblTempUsageDetail_20' ) end [2025-04-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976053', 'tblTempVendorCDR_20' ) start [2025-04-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976053', 'tblTempVendorCDR_20' ) end [2025-04-24 00:51:18] Production.INFO: ProcessCDR(1,14976053,1,1,2) [2025-04-24 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976053', 'tblTempUsageDetail_20' ) start [2025-04-24 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976053', 'tblTempUsageDetail_20' ) end [2025-04-24 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:51:21] Production.INFO: ==13925== Releasing lock... [2025-04-24 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:52:05 [end_date_ymd] => 2025-04-24 00:52:05 [RateCDR] => 1 ) [2025-04-24 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:52:05' and `end` < '2025-04-24 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:52:18] Production.INFO: count ==390 [2025-04-24 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:52:05 - End Time 2025-04-24 00:52:05 [2025-04-24 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976058', 'tblTempUsageDetail_20' ) start [2025-04-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976058', 'tblTempUsageDetail_20' ) end [2025-04-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976058', 'tblTempVendorCDR_20' ) start [2025-04-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976058', 'tblTempVendorCDR_20' ) end [2025-04-24 00:52:18] Production.INFO: ProcessCDR(1,14976058,1,1,2) [2025-04-24 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976058', 'tblTempUsageDetail_20' ) start [2025-04-24 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976058', 'tblTempUsageDetail_20' ) end [2025-04-24 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:52:21] Production.INFO: ==14002== Releasing lock... [2025-04-24 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:53:04 [end_date_ymd] => 2025-04-24 00:53:04 [RateCDR] => 1 ) [2025-04-24 00: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-04-23 21:53:04' and `end` < '2025-04-24 00: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-04-24 00:53:17] Production.INFO: count ==388 [2025-04-24 00:53:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:53:04 - End Time 2025-04-24 00:53:04 [2025-04-24 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976063', 'tblTempUsageDetail_20' ) start [2025-04-24 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976063', 'tblTempUsageDetail_20' ) end [2025-04-24 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976063', 'tblTempVendorCDR_20' ) start [2025-04-24 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976063', 'tblTempVendorCDR_20' ) end [2025-04-24 00:53:17] Production.INFO: ProcessCDR(1,14976063,1,1,2) [2025-04-24 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976063', 'tblTempUsageDetail_20' ) start [2025-04-24 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976063', 'tblTempUsageDetail_20' ) end [2025-04-24 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:53:21] Production.INFO: ==14074== Releasing lock... [2025-04-24 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:54:05 [end_date_ymd] => 2025-04-24 00:54:05 [RateCDR] => 1 ) [2025-04-24 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:54:05' and `end` < '2025-04-24 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:54:18] Production.INFO: count ==386 [2025-04-24 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:54:05 - End Time 2025-04-24 00:54:05 [2025-04-24 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976068', 'tblTempUsageDetail_20' ) start [2025-04-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976068', 'tblTempUsageDetail_20' ) end [2025-04-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976068', 'tblTempVendorCDR_20' ) start [2025-04-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976068', 'tblTempVendorCDR_20' ) end [2025-04-24 00:54:18] Production.INFO: ProcessCDR(1,14976068,1,1,2) [2025-04-24 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976068', 'tblTempUsageDetail_20' ) start [2025-04-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976068', 'tblTempUsageDetail_20' ) end [2025-04-24 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:54:21] Production.INFO: ==14150== Releasing lock... [2025-04-24 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:55:06 [end_date_ymd] => 2025-04-24 00:55:06 [RateCDR] => 1 ) [2025-04-24 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:55:06' and `end` < '2025-04-24 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:55:18] Production.INFO: count ==387 [2025-04-24 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:55:06 - End Time 2025-04-24 00:55:06 [2025-04-24 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976073', 'tblTempUsageDetail_20' ) start [2025-04-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976073', 'tblTempUsageDetail_20' ) end [2025-04-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976073', 'tblTempVendorCDR_20' ) start [2025-04-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976073', 'tblTempVendorCDR_20' ) end [2025-04-24 00:55:18] Production.INFO: ProcessCDR(1,14976073,1,1,2) [2025-04-24 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976073', 'tblTempUsageDetail_20' ) start [2025-04-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976073', 'tblTempUsageDetail_20' ) end [2025-04-24 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:55:21] Production.INFO: ==14224== Releasing lock... [2025-04-24 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:56:05 [end_date_ymd] => 2025-04-24 00:56:05 [RateCDR] => 1 ) [2025-04-24 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:56:05' and `end` < '2025-04-24 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:56:17] Production.INFO: count ==387 [2025-04-24 00:56:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:56:05 - End Time 2025-04-24 00:56:05 [2025-04-24 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976078', 'tblTempUsageDetail_20' ) start [2025-04-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976078', 'tblTempUsageDetail_20' ) end [2025-04-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976078', 'tblTempVendorCDR_20' ) start [2025-04-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976078', 'tblTempVendorCDR_20' ) end [2025-04-24 00:56:17] Production.INFO: ProcessCDR(1,14976078,1,1,2) [2025-04-24 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976078', 'tblTempUsageDetail_20' ) start [2025-04-24 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976078', 'tblTempUsageDetail_20' ) end [2025-04-24 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:56:21] Production.INFO: ==14297== Releasing lock... [2025-04-24 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:57:06 [end_date_ymd] => 2025-04-24 00:57:06 [RateCDR] => 1 ) [2025-04-24 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:57:06' and `end` < '2025-04-24 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:57:18] Production.INFO: count ==387 [2025-04-24 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:57:06 - End Time 2025-04-24 00:57:06 [2025-04-24 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976083', 'tblTempUsageDetail_20' ) start [2025-04-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976083', 'tblTempUsageDetail_20' ) end [2025-04-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976083', 'tblTempVendorCDR_20' ) start [2025-04-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976083', 'tblTempVendorCDR_20' ) end [2025-04-24 00:57:18] Production.INFO: ProcessCDR(1,14976083,1,1,2) [2025-04-24 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976083', 'tblTempUsageDetail_20' ) start [2025-04-24 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976083', 'tblTempUsageDetail_20' ) end [2025-04-24 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:57:22] Production.INFO: ==14369== Releasing lock... [2025-04-24 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:58:04 [end_date_ymd] => 2025-04-24 00:58:04 [RateCDR] => 1 ) [2025-04-24 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:58:04' and `end` < '2025-04-24 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:58:17] Production.INFO: count ==388 [2025-04-24 00:58:17] Production.ERROR: pbx CDR StartTime 2025-04-23 21:58:04 - End Time 2025-04-24 00:58:04 [2025-04-24 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976088', 'tblTempUsageDetail_20' ) start [2025-04-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976088', 'tblTempUsageDetail_20' ) end [2025-04-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976088', 'tblTempVendorCDR_20' ) start [2025-04-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976088', 'tblTempVendorCDR_20' ) end [2025-04-24 00:58:17] Production.INFO: ProcessCDR(1,14976088,1,1,2) [2025-04-24 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976088', 'tblTempUsageDetail_20' ) start [2025-04-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976088', 'tblTempUsageDetail_20' ) end [2025-04-24 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:58:22] Production.INFO: ==14441== Releasing lock... [2025-04-24 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 21:59:05 [end_date_ymd] => 2025-04-24 00:59:05 [RateCDR] => 1 ) [2025-04-24 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 21:59:05' and `end` < '2025-04-24 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 00:59:18] Production.INFO: count ==389 [2025-04-24 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 21:59:05 - End Time 2025-04-24 00:59:05 [2025-04-24 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976093', 'tblTempUsageDetail_20' ) start [2025-04-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976093', 'tblTempUsageDetail_20' ) end [2025-04-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976093', 'tblTempVendorCDR_20' ) start [2025-04-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976093', 'tblTempVendorCDR_20' ) end [2025-04-24 00:59:18] Production.INFO: ProcessCDR(1,14976093,1,1,2) [2025-04-24 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976093', 'tblTempUsageDetail_20' ) start [2025-04-24 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976093', 'tblTempUsageDetail_20' ) end [2025-04-24 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 00:59:21] Production.INFO: ==14554== Releasing lock... [2025-04-24 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 00:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:00:05 [end_date_ymd] => 2025-04-24 01:00:05 [RateCDR] => 1 ) [2025-04-24 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:00:05' and `end` < '2025-04-24 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:00:18] Production.INFO: count ==387 [2025-04-24 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:00:05 - End Time 2025-04-24 01:00:05 [2025-04-24 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976099', 'tblTempUsageDetail_20' ) start [2025-04-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976099', 'tblTempUsageDetail_20' ) end [2025-04-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976099', 'tblTempVendorCDR_20' ) start [2025-04-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976099', 'tblTempVendorCDR_20' ) end [2025-04-24 01:00:18] Production.INFO: ProcessCDR(1,14976099,1,1,2) [2025-04-24 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976099', 'tblTempUsageDetail_20' ) start [2025-04-24 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976099', 'tblTempUsageDetail_20' ) end [2025-04-24 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:00:23] Production.INFO: ==14632== Releasing lock... [2025-04-24 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:01:05 [end_date_ymd] => 2025-04-24 01:01:05 [RateCDR] => 1 ) [2025-04-24 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:01:05' and `end` < '2025-04-24 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:01:18] Production.INFO: count ==385 [2025-04-24 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:01:05 - End Time 2025-04-24 01:01:05 [2025-04-24 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976104', 'tblTempUsageDetail_20' ) start [2025-04-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976104', 'tblTempUsageDetail_20' ) end [2025-04-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976104', 'tblTempVendorCDR_20' ) start [2025-04-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976104', 'tblTempVendorCDR_20' ) end [2025-04-24 01:01:18] Production.INFO: ProcessCDR(1,14976104,1,1,2) [2025-04-24 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976104', 'tblTempUsageDetail_20' ) start [2025-04-24 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976104', 'tblTempUsageDetail_20' ) end [2025-04-24 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:01:23] Production.INFO: ==14727== Releasing lock... [2025-04-24 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:01:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:02:04 [end_date_ymd] => 2025-04-24 01:02:04 [RateCDR] => 1 ) [2025-04-24 01:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:02:04' and `end` < '2025-04-24 01:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:02:17] Production.INFO: count ==388 [2025-04-24 01:02:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:02:04 - End Time 2025-04-24 01:02:04 [2025-04-24 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976109', 'tblTempUsageDetail_20' ) start [2025-04-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976109', 'tblTempUsageDetail_20' ) end [2025-04-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976109', 'tblTempVendorCDR_20' ) start [2025-04-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976109', 'tblTempVendorCDR_20' ) end [2025-04-24 01:02:17] Production.INFO: ProcessCDR(1,14976109,1,1,2) [2025-04-24 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976109', 'tblTempUsageDetail_20' ) start [2025-04-24 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976109', 'tblTempUsageDetail_20' ) end [2025-04-24 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:02:22] Production.INFO: ==14797== Releasing lock... [2025-04-24 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:03:05 [end_date_ymd] => 2025-04-24 01:03:05 [RateCDR] => 1 ) [2025-04-24 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:03:05' and `end` < '2025-04-24 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:03:17] Production.INFO: count ==386 [2025-04-24 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:03:05 - End Time 2025-04-24 01:03:05 [2025-04-24 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976114', 'tblTempUsageDetail_20' ) start [2025-04-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976114', 'tblTempUsageDetail_20' ) end [2025-04-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976114', 'tblTempVendorCDR_20' ) start [2025-04-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976114', 'tblTempVendorCDR_20' ) end [2025-04-24 01:03:18] Production.INFO: ProcessCDR(1,14976114,1,1,2) [2025-04-24 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976114', 'tblTempUsageDetail_20' ) start [2025-04-24 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976114', 'tblTempUsageDetail_20' ) end [2025-04-24 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:03:22] Production.INFO: ==14870== Releasing lock... [2025-04-24 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:04:05 [end_date_ymd] => 2025-04-24 01:04:05 [RateCDR] => 1 ) [2025-04-24 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:04:05' and `end` < '2025-04-24 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:04:17] Production.INFO: count ==385 [2025-04-24 01:04:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:04:05 - End Time 2025-04-24 01:04:05 [2025-04-24 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976119', 'tblTempUsageDetail_20' ) start [2025-04-24 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976119', 'tblTempUsageDetail_20' ) end [2025-04-24 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976119', 'tblTempVendorCDR_20' ) start [2025-04-24 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976119', 'tblTempVendorCDR_20' ) end [2025-04-24 01:04:17] Production.INFO: ProcessCDR(1,14976119,1,1,2) [2025-04-24 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976119', 'tblTempUsageDetail_20' ) start [2025-04-24 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976119', 'tblTempUsageDetail_20' ) end [2025-04-24 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:04:21] Production.INFO: ==14946== Releasing lock... [2025-04-24 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:05:05 [end_date_ymd] => 2025-04-24 01:05:05 [RateCDR] => 1 ) [2025-04-24 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:05:05' and `end` < '2025-04-24 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:05:17] Production.INFO: count ==385 [2025-04-24 01:05:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:05:05 - End Time 2025-04-24 01:05:05 [2025-04-24 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976124', 'tblTempUsageDetail_20' ) start [2025-04-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976124', 'tblTempUsageDetail_20' ) end [2025-04-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976124', 'tblTempVendorCDR_20' ) start [2025-04-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976124', 'tblTempVendorCDR_20' ) end [2025-04-24 01:05:17] Production.INFO: ProcessCDR(1,14976124,1,1,2) [2025-04-24 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976124', 'tblTempUsageDetail_20' ) start [2025-04-24 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976124', 'tblTempUsageDetail_20' ) end [2025-04-24 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:05:21] Production.INFO: ==15023== Releasing lock... [2025-04-24 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:06:05 [end_date_ymd] => 2025-04-24 01:06:05 [RateCDR] => 1 ) [2025-04-24 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:06:05' and `end` < '2025-04-24 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:06:18] Production.INFO: count ==384 [2025-04-24 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:06:05 - End Time 2025-04-24 01:06:05 [2025-04-24 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976129', 'tblTempUsageDetail_20' ) start [2025-04-24 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976129', 'tblTempUsageDetail_20' ) end [2025-04-24 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976129', 'tblTempVendorCDR_20' ) start [2025-04-24 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976129', 'tblTempVendorCDR_20' ) end [2025-04-24 01:06:18] Production.INFO: ProcessCDR(1,14976129,1,1,2) [2025-04-24 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976129', 'tblTempUsageDetail_20' ) start [2025-04-24 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976129', 'tblTempUsageDetail_20' ) end [2025-04-24 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:06:21] Production.INFO: ==15104== Releasing lock... [2025-04-24 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:07:05 [end_date_ymd] => 2025-04-24 01:07:05 [RateCDR] => 1 ) [2025-04-24 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:07:05' and `end` < '2025-04-24 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:07:17] Production.INFO: count ==383 [2025-04-24 01:07:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:07:05 - End Time 2025-04-24 01:07:05 [2025-04-24 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976134', 'tblTempUsageDetail_20' ) start [2025-04-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976134', 'tblTempUsageDetail_20' ) end [2025-04-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976134', 'tblTempVendorCDR_20' ) start [2025-04-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976134', 'tblTempVendorCDR_20' ) end [2025-04-24 01:07:17] Production.INFO: ProcessCDR(1,14976134,1,1,2) [2025-04-24 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976134', 'tblTempUsageDetail_20' ) start [2025-04-24 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976134', 'tblTempUsageDetail_20' ) end [2025-04-24 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:07:20] Production.INFO: ==15176== Releasing lock... [2025-04-24 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:07:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:08:05 [end_date_ymd] => 2025-04-24 01:08:05 [RateCDR] => 1 ) [2025-04-24 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:08:05' and `end` < '2025-04-24 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:08:18] Production.INFO: count ==382 [2025-04-24 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:08:05 - End Time 2025-04-24 01:08:05 [2025-04-24 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976139', 'tblTempUsageDetail_20' ) start [2025-04-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976139', 'tblTempUsageDetail_20' ) end [2025-04-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976139', 'tblTempVendorCDR_20' ) start [2025-04-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976139', 'tblTempVendorCDR_20' ) end [2025-04-24 01:08:18] Production.INFO: ProcessCDR(1,14976139,1,1,2) [2025-04-24 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976139', 'tblTempUsageDetail_20' ) start [2025-04-24 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976139', 'tblTempUsageDetail_20' ) end [2025-04-24 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:08:21] Production.INFO: ==15248== Releasing lock... [2025-04-24 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:09:04 [end_date_ymd] => 2025-04-24 01:09:04 [RateCDR] => 1 ) [2025-04-24 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:09:04' and `end` < '2025-04-24 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:09:17] Production.INFO: count ==378 [2025-04-24 01:09:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:09:04 - End Time 2025-04-24 01:09:04 [2025-04-24 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976144', 'tblTempUsageDetail_20' ) start [2025-04-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976144', 'tblTempUsageDetail_20' ) end [2025-04-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976144', 'tblTempVendorCDR_20' ) start [2025-04-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976144', 'tblTempVendorCDR_20' ) end [2025-04-24 01:09:17] Production.INFO: ProcessCDR(1,14976144,1,1,2) [2025-04-24 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976144', 'tblTempUsageDetail_20' ) start [2025-04-24 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976144', 'tblTempUsageDetail_20' ) end [2025-04-24 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:09:20] Production.INFO: ==15321== Releasing lock... [2025-04-24 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:09:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:10:06 [end_date_ymd] => 2025-04-24 01:10:06 [RateCDR] => 1 ) [2025-04-24 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:10:06' and `end` < '2025-04-24 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:10:19] Production.INFO: count ==378 [2025-04-24 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:10:06 - End Time 2025-04-24 01:10:06 [2025-04-24 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976149', 'tblTempUsageDetail_20' ) start [2025-04-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976149', 'tblTempUsageDetail_20' ) end [2025-04-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976149', 'tblTempVendorCDR_20' ) start [2025-04-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976149', 'tblTempVendorCDR_20' ) end [2025-04-24 01:10:19] Production.INFO: ProcessCDR(1,14976149,1,1,2) [2025-04-24 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976149', 'tblTempUsageDetail_20' ) start [2025-04-24 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976149', 'tblTempUsageDetail_20' ) end [2025-04-24 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:10:22] Production.INFO: ==15400== Releasing lock... [2025-04-24 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:11:06 [end_date_ymd] => 2025-04-24 01:11:06 [RateCDR] => 1 ) [2025-04-24 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:11:06' and `end` < '2025-04-24 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:11:18] Production.INFO: count ==377 [2025-04-24 01:11:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:11:06 - End Time 2025-04-24 01:11:06 [2025-04-24 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976155', 'tblTempUsageDetail_20' ) start [2025-04-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976155', 'tblTempUsageDetail_20' ) end [2025-04-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976155', 'tblTempVendorCDR_20' ) start [2025-04-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976155', 'tblTempVendorCDR_20' ) end [2025-04-24 01:11:19] Production.INFO: ProcessCDR(1,14976155,1,1,2) [2025-04-24 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976155', 'tblTempUsageDetail_20' ) start [2025-04-24 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976155', 'tblTempUsageDetail_20' ) end [2025-04-24 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:11:22] Production.INFO: ==15484== Releasing lock... [2025-04-24 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:12:05 [end_date_ymd] => 2025-04-24 01:12:05 [RateCDR] => 1 ) [2025-04-24 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:12:05' and `end` < '2025-04-24 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:12:18] Production.INFO: count ==375 [2025-04-24 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:12:05 - End Time 2025-04-24 01:12:05 [2025-04-24 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976160', 'tblTempUsageDetail_20' ) start [2025-04-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976160', 'tblTempUsageDetail_20' ) end [2025-04-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976160', 'tblTempVendorCDR_20' ) start [2025-04-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976160', 'tblTempVendorCDR_20' ) end [2025-04-24 01:12:18] Production.INFO: ProcessCDR(1,14976160,1,1,2) [2025-04-24 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976160', 'tblTempUsageDetail_20' ) start [2025-04-24 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976160', 'tblTempUsageDetail_20' ) end [2025-04-24 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:12:21] Production.INFO: ==15563== Releasing lock... [2025-04-24 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:13:05 [end_date_ymd] => 2025-04-24 01:13:05 [RateCDR] => 1 ) [2025-04-24 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:13:05' and `end` < '2025-04-24 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:13:18] Production.INFO: count ==371 [2025-04-24 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:13:05 - End Time 2025-04-24 01:13:05 [2025-04-24 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976165', 'tblTempUsageDetail_20' ) start [2025-04-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976165', 'tblTempUsageDetail_20' ) end [2025-04-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976165', 'tblTempVendorCDR_20' ) start [2025-04-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976165', 'tblTempVendorCDR_20' ) end [2025-04-24 01:13:18] Production.INFO: ProcessCDR(1,14976165,1,1,2) [2025-04-24 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976165', 'tblTempUsageDetail_20' ) start [2025-04-24 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976165', 'tblTempUsageDetail_20' ) end [2025-04-24 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:13:22] Production.INFO: ==15640== Releasing lock... [2025-04-24 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:14:05 [end_date_ymd] => 2025-04-24 01:14:05 [RateCDR] => 1 ) [2025-04-24 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:14:05' and `end` < '2025-04-24 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:14:18] Production.INFO: count ==370 [2025-04-24 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:14:05 - End Time 2025-04-24 01:14:05 [2025-04-24 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976170', 'tblTempUsageDetail_20' ) start [2025-04-24 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976170', 'tblTempUsageDetail_20' ) end [2025-04-24 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976170', 'tblTempVendorCDR_20' ) start [2025-04-24 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976170', 'tblTempVendorCDR_20' ) end [2025-04-24 01:14:18] Production.INFO: ProcessCDR(1,14976170,1,1,2) [2025-04-24 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976170', 'tblTempUsageDetail_20' ) start [2025-04-24 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976170', 'tblTempUsageDetail_20' ) end [2025-04-24 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:14:21] Production.INFO: ==15726== Releasing lock... [2025-04-24 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:15:05 [end_date_ymd] => 2025-04-24 01:15:05 [RateCDR] => 1 ) [2025-04-24 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:15:05' and `end` < '2025-04-24 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:15:18] Production.INFO: count ==370 [2025-04-24 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:15:05 - End Time 2025-04-24 01:15:05 [2025-04-24 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976175', 'tblTempUsageDetail_20' ) start [2025-04-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976175', 'tblTempUsageDetail_20' ) end [2025-04-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976175', 'tblTempVendorCDR_20' ) start [2025-04-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976175', 'tblTempVendorCDR_20' ) end [2025-04-24 01:15:18] Production.INFO: ProcessCDR(1,14976175,1,1,2) [2025-04-24 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976175', 'tblTempUsageDetail_20' ) start [2025-04-24 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976175', 'tblTempUsageDetail_20' ) end [2025-04-24 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:15:22] Production.INFO: ==15842== Releasing lock... [2025-04-24 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:16:04 [end_date_ymd] => 2025-04-24 01:16:04 [RateCDR] => 1 ) [2025-04-24 01: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-04-23 22:16:04' and `end` < '2025-04-24 01: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-04-24 01:16:17] Production.INFO: count ==368 [2025-04-24 01:16:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:16:04 - End Time 2025-04-24 01:16:04 [2025-04-24 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976180', 'tblTempUsageDetail_20' ) start [2025-04-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976180', 'tblTempUsageDetail_20' ) end [2025-04-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976180', 'tblTempVendorCDR_20' ) start [2025-04-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976180', 'tblTempVendorCDR_20' ) end [2025-04-24 01:16:17] Production.INFO: ProcessCDR(1,14976180,1,1,2) [2025-04-24 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976180', 'tblTempUsageDetail_20' ) start [2025-04-24 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976180', 'tblTempUsageDetail_20' ) end [2025-04-24 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:16:21] Production.INFO: ==15919== Releasing lock... [2025-04-24 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:17:05 [end_date_ymd] => 2025-04-24 01:17:05 [RateCDR] => 1 ) [2025-04-24 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:17:05' and `end` < '2025-04-24 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:17:18] Production.INFO: count ==370 [2025-04-24 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:17:05 - End Time 2025-04-24 01:17:05 [2025-04-24 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976185', 'tblTempUsageDetail_20' ) start [2025-04-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976185', 'tblTempUsageDetail_20' ) end [2025-04-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976185', 'tblTempVendorCDR_20' ) start [2025-04-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976185', 'tblTempVendorCDR_20' ) end [2025-04-24 01:17:18] Production.INFO: ProcessCDR(1,14976185,1,1,2) [2025-04-24 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976185', 'tblTempUsageDetail_20' ) start [2025-04-24 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976185', 'tblTempUsageDetail_20' ) end [2025-04-24 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:17:21] Production.INFO: ==15998== Releasing lock... [2025-04-24 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:18:05 [end_date_ymd] => 2025-04-24 01:18:05 [RateCDR] => 1 ) [2025-04-24 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:18:05' and `end` < '2025-04-24 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:18:18] Production.INFO: count ==368 [2025-04-24 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:18:05 - End Time 2025-04-24 01:18:05 [2025-04-24 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976190', 'tblTempUsageDetail_20' ) start [2025-04-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976190', 'tblTempUsageDetail_20' ) end [2025-04-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976190', 'tblTempVendorCDR_20' ) start [2025-04-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976190', 'tblTempVendorCDR_20' ) end [2025-04-24 01:18:18] Production.INFO: ProcessCDR(1,14976190,1,1,2) [2025-04-24 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976190', 'tblTempUsageDetail_20' ) start [2025-04-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976190', 'tblTempUsageDetail_20' ) end [2025-04-24 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:18:21] Production.INFO: ==16086== Releasing lock... [2025-04-24 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:19:05 [end_date_ymd] => 2025-04-24 01:19:05 [RateCDR] => 1 ) [2025-04-24 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:19:05' and `end` < '2025-04-24 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:19:18] Production.INFO: count ==365 [2025-04-24 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:19:05 - End Time 2025-04-24 01:19:05 [2025-04-24 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976195', 'tblTempUsageDetail_20' ) start [2025-04-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976195', 'tblTempUsageDetail_20' ) end [2025-04-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976195', 'tblTempVendorCDR_20' ) start [2025-04-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976195', 'tblTempVendorCDR_20' ) end [2025-04-24 01:19:18] Production.INFO: ProcessCDR(1,14976195,1,1,2) [2025-04-24 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976195', 'tblTempUsageDetail_20' ) start [2025-04-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976195', 'tblTempUsageDetail_20' ) end [2025-04-24 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:19:21] Production.INFO: ==16180== Releasing lock... [2025-04-24 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:20:06 [end_date_ymd] => 2025-04-24 01:20:06 [RateCDR] => 1 ) [2025-04-24 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:20:06' and `end` < '2025-04-24 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:20:19] Production.INFO: count ==372 [2025-04-24 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:20:06 - End Time 2025-04-24 01:20:06 [2025-04-24 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976200', 'tblTempUsageDetail_20' ) start [2025-04-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976200', 'tblTempUsageDetail_20' ) end [2025-04-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976200', 'tblTempVendorCDR_20' ) start [2025-04-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976200', 'tblTempVendorCDR_20' ) end [2025-04-24 01:20:19] Production.INFO: ProcessCDR(1,14976200,1,1,2) [2025-04-24 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976200', 'tblTempUsageDetail_20' ) start [2025-04-24 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976200', 'tblTempUsageDetail_20' ) end [2025-04-24 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:20:23] Production.INFO: ==16257== Releasing lock... [2025-04-24 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:21:05 [end_date_ymd] => 2025-04-24 01:21:05 [RateCDR] => 1 ) [2025-04-24 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:21:05' and `end` < '2025-04-24 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:21:17] Production.INFO: count ==367 [2025-04-24 01:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:21:05 - End Time 2025-04-24 01:21:05 [2025-04-24 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976206', 'tblTempUsageDetail_20' ) start [2025-04-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976206', 'tblTempUsageDetail_20' ) end [2025-04-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976206', 'tblTempVendorCDR_20' ) start [2025-04-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976206', 'tblTempVendorCDR_20' ) end [2025-04-24 01:21:17] Production.INFO: ProcessCDR(1,14976206,1,1,2) [2025-04-24 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976206', 'tblTempUsageDetail_20' ) start [2025-04-24 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976206', 'tblTempUsageDetail_20' ) end [2025-04-24 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:21:21] Production.INFO: ==16345== Releasing lock... [2025-04-24 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:22:06 [end_date_ymd] => 2025-04-24 01:22:06 [RateCDR] => 1 ) [2025-04-24 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:22:06' and `end` < '2025-04-24 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:22:19] Production.INFO: count ==364 [2025-04-24 01:22:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:22:06 - End Time 2025-04-24 01:22:06 [2025-04-24 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976211', 'tblTempUsageDetail_20' ) start [2025-04-24 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976211', 'tblTempUsageDetail_20' ) end [2025-04-24 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976211', 'tblTempVendorCDR_20' ) start [2025-04-24 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976211', 'tblTempVendorCDR_20' ) end [2025-04-24 01:22:19] Production.INFO: ProcessCDR(1,14976211,1,1,2) [2025-04-24 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976211', 'tblTempUsageDetail_20' ) start [2025-04-24 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976211', 'tblTempUsageDetail_20' ) end [2025-04-24 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:22:22] Production.INFO: ==16423== Releasing lock... [2025-04-24 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:22:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:23:05 [end_date_ymd] => 2025-04-24 01:23:05 [RateCDR] => 1 ) [2025-04-24 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:23:05' and `end` < '2025-04-24 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:23:17] Production.INFO: count ==358 [2025-04-24 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:23:05 - End Time 2025-04-24 01:23:05 [2025-04-24 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976216', 'tblTempUsageDetail_20' ) start [2025-04-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976216', 'tblTempUsageDetail_20' ) end [2025-04-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976216', 'tblTempVendorCDR_20' ) start [2025-04-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976216', 'tblTempVendorCDR_20' ) end [2025-04-24 01:23:18] Production.INFO: ProcessCDR(1,14976216,1,1,2) [2025-04-24 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976216', 'tblTempUsageDetail_20' ) start [2025-04-24 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976216', 'tblTempUsageDetail_20' ) end [2025-04-24 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:23:21] Production.INFO: ==16502== Releasing lock... [2025-04-24 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:24:06 [end_date_ymd] => 2025-04-24 01:24:06 [RateCDR] => 1 ) [2025-04-24 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:24:06' and `end` < '2025-04-24 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:24:18] Production.INFO: count ==351 [2025-04-24 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:24:06 - End Time 2025-04-24 01:24:06 [2025-04-24 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976221', 'tblTempUsageDetail_20' ) start [2025-04-24 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976221', 'tblTempUsageDetail_20' ) end [2025-04-24 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976221', 'tblTempVendorCDR_20' ) start [2025-04-24 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976221', 'tblTempVendorCDR_20' ) end [2025-04-24 01:24:19] Production.INFO: ProcessCDR(1,14976221,1,1,2) [2025-04-24 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976221', 'tblTempUsageDetail_20' ) start [2025-04-24 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976221', 'tblTempUsageDetail_20' ) end [2025-04-24 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:24:22] Production.INFO: ==16583== Releasing lock... [2025-04-24 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:25:05 [end_date_ymd] => 2025-04-24 01:25:05 [RateCDR] => 1 ) [2025-04-24 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:25:05' and `end` < '2025-04-24 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:25:17] Production.INFO: count ==346 [2025-04-24 01:25:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:25:05 - End Time 2025-04-24 01:25:05 [2025-04-24 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976226', 'tblTempUsageDetail_20' ) start [2025-04-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976226', 'tblTempUsageDetail_20' ) end [2025-04-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976226', 'tblTempVendorCDR_20' ) start [2025-04-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976226', 'tblTempVendorCDR_20' ) end [2025-04-24 01:25:17] Production.INFO: ProcessCDR(1,14976226,1,1,2) [2025-04-24 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976226', 'tblTempUsageDetail_20' ) start [2025-04-24 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976226', 'tblTempUsageDetail_20' ) end [2025-04-24 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:25:21] Production.INFO: ==16672== Releasing lock... [2025-04-24 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:26:05 [end_date_ymd] => 2025-04-24 01:26:05 [RateCDR] => 1 ) [2025-04-24 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:26:05' and `end` < '2025-04-24 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:26:18] Production.INFO: count ==344 [2025-04-24 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:26:05 - End Time 2025-04-24 01:26:05 [2025-04-24 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976231', 'tblTempUsageDetail_20' ) start [2025-04-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976231', 'tblTempUsageDetail_20' ) end [2025-04-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976231', 'tblTempVendorCDR_20' ) start [2025-04-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976231', 'tblTempVendorCDR_20' ) end [2025-04-24 01:26:18] Production.INFO: ProcessCDR(1,14976231,1,1,2) [2025-04-24 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976231', 'tblTempUsageDetail_20' ) start [2025-04-24 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976231', 'tblTempUsageDetail_20' ) end [2025-04-24 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:26:21] Production.INFO: ==16747== Releasing lock... [2025-04-24 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:27:05 [end_date_ymd] => 2025-04-24 01:27:05 [RateCDR] => 1 ) [2025-04-24 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:27:05' and `end` < '2025-04-24 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:27:18] Production.INFO: count ==344 [2025-04-24 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:27:05 - End Time 2025-04-24 01:27:05 [2025-04-24 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976236', 'tblTempUsageDetail_20' ) start [2025-04-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976236', 'tblTempUsageDetail_20' ) end [2025-04-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976236', 'tblTempVendorCDR_20' ) start [2025-04-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976236', 'tblTempVendorCDR_20' ) end [2025-04-24 01:27:18] Production.INFO: ProcessCDR(1,14976236,1,1,2) [2025-04-24 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976236', 'tblTempUsageDetail_20' ) start [2025-04-24 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976236', 'tblTempUsageDetail_20' ) end [2025-04-24 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:27:21] Production.INFO: ==16825== Releasing lock... [2025-04-24 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:28:05 [end_date_ymd] => 2025-04-24 01:28:05 [RateCDR] => 1 ) [2025-04-24 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:28:05' and `end` < '2025-04-24 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:28:18] Production.INFO: count ==340 [2025-04-24 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:28:05 - End Time 2025-04-24 01:28:05 [2025-04-24 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976241', 'tblTempUsageDetail_20' ) start [2025-04-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976241', 'tblTempUsageDetail_20' ) end [2025-04-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976241', 'tblTempVendorCDR_20' ) start [2025-04-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976241', 'tblTempVendorCDR_20' ) end [2025-04-24 01:28:18] Production.INFO: ProcessCDR(1,14976241,1,1,2) [2025-04-24 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976241', 'tblTempUsageDetail_20' ) start [2025-04-24 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976241', 'tblTempUsageDetail_20' ) end [2025-04-24 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:28:22] Production.INFO: ==16903== Releasing lock... [2025-04-24 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:28:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:29:05 [end_date_ymd] => 2025-04-24 01:29:05 [RateCDR] => 1 ) [2025-04-24 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:29:05' and `end` < '2025-04-24 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:29:18] Production.INFO: count ==341 [2025-04-24 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:29:05 - End Time 2025-04-24 01:29:05 [2025-04-24 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976246', 'tblTempUsageDetail_20' ) start [2025-04-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976246', 'tblTempUsageDetail_20' ) end [2025-04-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976246', 'tblTempVendorCDR_20' ) start [2025-04-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976246', 'tblTempVendorCDR_20' ) end [2025-04-24 01:29:18] Production.INFO: ProcessCDR(1,14976246,1,1,2) [2025-04-24 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976246', 'tblTempUsageDetail_20' ) start [2025-04-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976246', 'tblTempUsageDetail_20' ) end [2025-04-24 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:29:21] Production.INFO: ==16987== Releasing lock... [2025-04-24 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:30:06 [end_date_ymd] => 2025-04-24 01:30:06 [RateCDR] => 1 ) [2025-04-24 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:30:06' and `end` < '2025-04-24 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:30:18] Production.INFO: count ==345 [2025-04-24 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:30:06 - End Time 2025-04-24 01:30:06 [2025-04-24 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976252', 'tblTempUsageDetail_20' ) start [2025-04-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976252', 'tblTempUsageDetail_20' ) end [2025-04-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976252', 'tblTempVendorCDR_20' ) start [2025-04-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976252', 'tblTempVendorCDR_20' ) end [2025-04-24 01:30:19] Production.INFO: ProcessCDR(1,14976252,1,1,2) [2025-04-24 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976252', 'tblTempUsageDetail_20' ) start [2025-04-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976252', 'tblTempUsageDetail_20' ) end [2025-04-24 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:30:22] Production.INFO: ==17104== Releasing lock... [2025-04-24 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:31:04 [end_date_ymd] => 2025-04-24 01:31:04 [RateCDR] => 1 ) [2025-04-24 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:31:04' and `end` < '2025-04-24 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:31:17] Production.INFO: count ==342 [2025-04-24 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:31:04 - End Time 2025-04-24 01:31:04 [2025-04-24 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976257', 'tblTempUsageDetail_20' ) start [2025-04-24 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976257', 'tblTempUsageDetail_20' ) end [2025-04-24 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976257', 'tblTempVendorCDR_20' ) start [2025-04-24 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976257', 'tblTempVendorCDR_20' ) end [2025-04-24 01:31:17] Production.INFO: ProcessCDR(1,14976257,1,1,2) [2025-04-24 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976257', 'tblTempUsageDetail_20' ) start [2025-04-24 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976257', 'tblTempUsageDetail_20' ) end [2025-04-24 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:31:20] Production.INFO: ==17189== Releasing lock... [2025-04-24 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:31:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:32:05 [end_date_ymd] => 2025-04-24 01:32:05 [RateCDR] => 1 ) [2025-04-24 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:32:05' and `end` < '2025-04-24 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:32:18] Production.INFO: count ==341 [2025-04-24 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:32:05 - End Time 2025-04-24 01:32:05 [2025-04-24 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976262', 'tblTempUsageDetail_20' ) start [2025-04-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976262', 'tblTempUsageDetail_20' ) end [2025-04-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976262', 'tblTempVendorCDR_20' ) start [2025-04-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976262', 'tblTempVendorCDR_20' ) end [2025-04-24 01:32:18] Production.INFO: ProcessCDR(1,14976262,1,1,2) [2025-04-24 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976262', 'tblTempUsageDetail_20' ) start [2025-04-24 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976262', 'tblTempUsageDetail_20' ) end [2025-04-24 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:32:22] Production.INFO: ==17262== Releasing lock... [2025-04-24 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:32:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:33:05 [end_date_ymd] => 2025-04-24 01:33:05 [RateCDR] => 1 ) [2025-04-24 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:33:05' and `end` < '2025-04-24 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:33:18] Production.INFO: count ==342 [2025-04-24 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:33:05 - End Time 2025-04-24 01:33:05 [2025-04-24 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976267', 'tblTempUsageDetail_20' ) start [2025-04-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976267', 'tblTempUsageDetail_20' ) end [2025-04-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976267', 'tblTempVendorCDR_20' ) start [2025-04-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976267', 'tblTempVendorCDR_20' ) end [2025-04-24 01:33:18] Production.INFO: ProcessCDR(1,14976267,1,1,2) [2025-04-24 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976267', 'tblTempUsageDetail_20' ) start [2025-04-24 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976267', 'tblTempUsageDetail_20' ) end [2025-04-24 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:33:22] Production.INFO: ==17343== Releasing lock... [2025-04-24 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:34:05 [end_date_ymd] => 2025-04-24 01:34:05 [RateCDR] => 1 ) [2025-04-24 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:34:05' and `end` < '2025-04-24 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:34:17] Production.INFO: count ==341 [2025-04-24 01:34:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:34:05 - End Time 2025-04-24 01:34:05 [2025-04-24 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976272', 'tblTempUsageDetail_20' ) start [2025-04-24 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976272', 'tblTempUsageDetail_20' ) end [2025-04-24 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976272', 'tblTempVendorCDR_20' ) start [2025-04-24 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976272', 'tblTempVendorCDR_20' ) end [2025-04-24 01:34:17] Production.INFO: ProcessCDR(1,14976272,1,1,2) [2025-04-24 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976272', 'tblTempUsageDetail_20' ) start [2025-04-24 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976272', 'tblTempUsageDetail_20' ) end [2025-04-24 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:34:21] Production.INFO: ==17420== Releasing lock... [2025-04-24 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:34:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:35:05 [end_date_ymd] => 2025-04-24 01:35:05 [RateCDR] => 1 ) [2025-04-24 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:35:05' and `end` < '2025-04-24 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:35:18] Production.INFO: count ==337 [2025-04-24 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:35:05 - End Time 2025-04-24 01:35:05 [2025-04-24 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976277', 'tblTempUsageDetail_20' ) start [2025-04-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976277', 'tblTempUsageDetail_20' ) end [2025-04-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976277', 'tblTempVendorCDR_20' ) start [2025-04-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976277', 'tblTempVendorCDR_20' ) end [2025-04-24 01:35:18] Production.INFO: ProcessCDR(1,14976277,1,1,2) [2025-04-24 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976277', 'tblTempUsageDetail_20' ) start [2025-04-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976277', 'tblTempUsageDetail_20' ) end [2025-04-24 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:35:22] Production.INFO: ==17496== Releasing lock... [2025-04-24 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:35:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:36:05 [end_date_ymd] => 2025-04-24 01:36:05 [RateCDR] => 1 ) [2025-04-24 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:36:05' and `end` < '2025-04-24 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:36:18] Production.INFO: count ==336 [2025-04-24 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:36:05 - End Time 2025-04-24 01:36:05 [2025-04-24 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976282', 'tblTempUsageDetail_20' ) start [2025-04-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976282', 'tblTempUsageDetail_20' ) end [2025-04-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976282', 'tblTempVendorCDR_20' ) start [2025-04-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976282', 'tblTempVendorCDR_20' ) end [2025-04-24 01:36:18] Production.INFO: ProcessCDR(1,14976282,1,1,2) [2025-04-24 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976282', 'tblTempUsageDetail_20' ) start [2025-04-24 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976282', 'tblTempUsageDetail_20' ) end [2025-04-24 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:36:21] Production.INFO: ==17577== Releasing lock... [2025-04-24 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:37:05 [end_date_ymd] => 2025-04-24 01:37:05 [RateCDR] => 1 ) [2025-04-24 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:37:05' and `end` < '2025-04-24 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:37:18] Production.INFO: count ==335 [2025-04-24 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:37:05 - End Time 2025-04-24 01:37:05 [2025-04-24 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976287', 'tblTempUsageDetail_20' ) start [2025-04-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976287', 'tblTempUsageDetail_20' ) end [2025-04-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976287', 'tblTempVendorCDR_20' ) start [2025-04-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976287', 'tblTempVendorCDR_20' ) end [2025-04-24 01:37:18] Production.INFO: ProcessCDR(1,14976287,1,1,2) [2025-04-24 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976287', 'tblTempUsageDetail_20' ) start [2025-04-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976287', 'tblTempUsageDetail_20' ) end [2025-04-24 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:37:21] Production.INFO: ==17659== Releasing lock... [2025-04-24 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:38:05 [end_date_ymd] => 2025-04-24 01:38:05 [RateCDR] => 1 ) [2025-04-24 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:38:05' and `end` < '2025-04-24 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:38:18] Production.INFO: count ==336 [2025-04-24 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:38:05 - End Time 2025-04-24 01:38:05 [2025-04-24 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976292', 'tblTempUsageDetail_20' ) start [2025-04-24 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976292', 'tblTempUsageDetail_20' ) end [2025-04-24 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976292', 'tblTempVendorCDR_20' ) start [2025-04-24 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976292', 'tblTempVendorCDR_20' ) end [2025-04-24 01:38:18] Production.INFO: ProcessCDR(1,14976292,1,1,2) [2025-04-24 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976292', 'tblTempUsageDetail_20' ) start [2025-04-24 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976292', 'tblTempUsageDetail_20' ) end [2025-04-24 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:38:23] Production.INFO: ==17740== Releasing lock... [2025-04-24 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:39:05 [end_date_ymd] => 2025-04-24 01:39:05 [RateCDR] => 1 ) [2025-04-24 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:39:05' and `end` < '2025-04-24 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:39:18] Production.INFO: count ==334 [2025-04-24 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:39:05 - End Time 2025-04-24 01:39:05 [2025-04-24 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976297', 'tblTempUsageDetail_20' ) start [2025-04-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976297', 'tblTempUsageDetail_20' ) end [2025-04-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976297', 'tblTempVendorCDR_20' ) start [2025-04-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976297', 'tblTempVendorCDR_20' ) end [2025-04-24 01:39:18] Production.INFO: ProcessCDR(1,14976297,1,1,2) [2025-04-24 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976297', 'tblTempUsageDetail_20' ) start [2025-04-24 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976297', 'tblTempUsageDetail_20' ) end [2025-04-24 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:39:21] Production.INFO: ==17819== Releasing lock... [2025-04-24 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:39:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:40:05 [end_date_ymd] => 2025-04-24 01:40:05 [RateCDR] => 1 ) [2025-04-24 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:40:05' and `end` < '2025-04-24 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:40:18] Production.INFO: count ==340 [2025-04-24 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:40:05 - End Time 2025-04-24 01:40:05 [2025-04-24 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976302', 'tblTempUsageDetail_20' ) start [2025-04-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976302', 'tblTempUsageDetail_20' ) end [2025-04-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976302', 'tblTempVendorCDR_20' ) start [2025-04-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976302', 'tblTempVendorCDR_20' ) end [2025-04-24 01:40:18] Production.INFO: ProcessCDR(1,14976302,1,1,2) [2025-04-24 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976302', 'tblTempUsageDetail_20' ) start [2025-04-24 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976302', 'tblTempUsageDetail_20' ) end [2025-04-24 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:40:22] Production.INFO: ==17894== Releasing lock... [2025-04-24 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:41:06 [end_date_ymd] => 2025-04-24 01:41:06 [RateCDR] => 1 ) [2025-04-24 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:41:06' and `end` < '2025-04-24 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:41:18] Production.INFO: count ==349 [2025-04-24 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:41:06 - End Time 2025-04-24 01:41:06 [2025-04-24 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976308', 'tblTempUsageDetail_20' ) start [2025-04-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976308', 'tblTempUsageDetail_20' ) end [2025-04-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976308', 'tblTempVendorCDR_20' ) start [2025-04-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976308', 'tblTempVendorCDR_20' ) end [2025-04-24 01:41:18] Production.INFO: ProcessCDR(1,14976308,1,1,2) [2025-04-24 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976308', 'tblTempUsageDetail_20' ) start [2025-04-24 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976308', 'tblTempUsageDetail_20' ) end [2025-04-24 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:41:22] Production.INFO: ==17973== Releasing lock... [2025-04-24 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:42:05 [end_date_ymd] => 2025-04-24 01:42:05 [RateCDR] => 1 ) [2025-04-24 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:42:05' and `end` < '2025-04-24 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:42:18] Production.INFO: count ==351 [2025-04-24 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:42:05 - End Time 2025-04-24 01:42:05 [2025-04-24 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976313', 'tblTempUsageDetail_20' ) start [2025-04-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976313', 'tblTempUsageDetail_20' ) end [2025-04-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976313', 'tblTempVendorCDR_20' ) start [2025-04-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976313', 'tblTempVendorCDR_20' ) end [2025-04-24 01:42:18] Production.INFO: ProcessCDR(1,14976313,1,1,2) [2025-04-24 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976313', 'tblTempUsageDetail_20' ) start [2025-04-24 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976313', 'tblTempUsageDetail_20' ) end [2025-04-24 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:42:23] Production.INFO: ==18054== Releasing lock... [2025-04-24 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:42:23] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:43:05 [end_date_ymd] => 2025-04-24 01:43:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 22:43:05' and `end` < '2025-04-24 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-04-24 01:43:17] Production.INFO: count ==350 [2025-04-24 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:43:05 - End Time 2025-04-24 01:43:05 [2025-04-24 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976318', 'tblTempUsageDetail_20' ) start [2025-04-24 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976318', 'tblTempUsageDetail_20' ) end [2025-04-24 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976318', 'tblTempVendorCDR_20' ) start [2025-04-24 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976318', 'tblTempVendorCDR_20' ) end [2025-04-24 01:43:18] Production.INFO: ProcessCDR(1,14976318,1,1,2) [2025-04-24 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976318', 'tblTempUsageDetail_20' ) start [2025-04-24 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976318', 'tblTempUsageDetail_20' ) end [2025-04-24 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:43:21] Production.INFO: ==18130== Releasing lock... [2025-04-24 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:44:06 [end_date_ymd] => 2025-04-24 01:44:06 [RateCDR] => 1 ) [2025-04-24 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:44:06' and `end` < '2025-04-24 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:44:18] Production.INFO: count ==349 [2025-04-24 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:44:06 - End Time 2025-04-24 01:44:06 [2025-04-24 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976323', 'tblTempUsageDetail_20' ) start [2025-04-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976323', 'tblTempUsageDetail_20' ) end [2025-04-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976323', 'tblTempVendorCDR_20' ) start [2025-04-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976323', 'tblTempVendorCDR_20' ) end [2025-04-24 01:44:18] Production.INFO: ProcessCDR(1,14976323,1,1,2) [2025-04-24 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976323', 'tblTempUsageDetail_20' ) start [2025-04-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976323', 'tblTempUsageDetail_20' ) end [2025-04-24 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:44:22] Production.INFO: ==18211== Releasing lock... [2025-04-24 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:44:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:45:05 [end_date_ymd] => 2025-04-24 01:45:05 [RateCDR] => 1 ) [2025-04-24 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:45:05' and `end` < '2025-04-24 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:45:18] Production.INFO: count ==348 [2025-04-24 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:45:05 - End Time 2025-04-24 01:45:05 [2025-04-24 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976328', 'tblTempUsageDetail_20' ) start [2025-04-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976328', 'tblTempUsageDetail_20' ) end [2025-04-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976328', 'tblTempVendorCDR_20' ) start [2025-04-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976328', 'tblTempVendorCDR_20' ) end [2025-04-24 01:45:18] Production.INFO: ProcessCDR(1,14976328,1,1,2) [2025-04-24 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976328', 'tblTempUsageDetail_20' ) start [2025-04-24 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976328', 'tblTempUsageDetail_20' ) end [2025-04-24 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:45:22] Production.INFO: ==18293== Releasing lock... [2025-04-24 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:45:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:46:06 [end_date_ymd] => 2025-04-24 01:46:06 [RateCDR] => 1 ) [2025-04-24 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:46:06' and `end` < '2025-04-24 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:46:18] Production.INFO: count ==346 [2025-04-24 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:46:06 - End Time 2025-04-24 01:46:06 [2025-04-24 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976333', 'tblTempUsageDetail_20' ) start [2025-04-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976333', 'tblTempUsageDetail_20' ) end [2025-04-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976333', 'tblTempVendorCDR_20' ) start [2025-04-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976333', 'tblTempVendorCDR_20' ) end [2025-04-24 01:46:18] Production.INFO: ProcessCDR(1,14976333,1,1,2) [2025-04-24 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976333', 'tblTempUsageDetail_20' ) start [2025-04-24 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976333', 'tblTempUsageDetail_20' ) end [2025-04-24 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:46:22] Production.INFO: ==18406== Releasing lock... [2025-04-24 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:47:05 [end_date_ymd] => 2025-04-24 01:47:05 [RateCDR] => 1 ) [2025-04-24 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:47:05' and `end` < '2025-04-24 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:47:18] Production.INFO: count ==343 [2025-04-24 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:47:05 - End Time 2025-04-24 01:47:05 [2025-04-24 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976338', 'tblTempUsageDetail_20' ) start [2025-04-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976338', 'tblTempUsageDetail_20' ) end [2025-04-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976338', 'tblTempVendorCDR_20' ) start [2025-04-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976338', 'tblTempVendorCDR_20' ) end [2025-04-24 01:47:18] Production.INFO: ProcessCDR(1,14976338,1,1,2) [2025-04-24 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976338', 'tblTempUsageDetail_20' ) start [2025-04-24 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976338', 'tblTempUsageDetail_20' ) end [2025-04-24 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:47:21] Production.INFO: ==18485== Releasing lock... [2025-04-24 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:48:06 [end_date_ymd] => 2025-04-24 01:48:06 [RateCDR] => 1 ) [2025-04-24 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:48:06' and `end` < '2025-04-24 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:48:18] Production.INFO: count ==339 [2025-04-24 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:48:06 - End Time 2025-04-24 01:48:06 [2025-04-24 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976343', 'tblTempUsageDetail_20' ) start [2025-04-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976343', 'tblTempUsageDetail_20' ) end [2025-04-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976343', 'tblTempVendorCDR_20' ) start [2025-04-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976343', 'tblTempVendorCDR_20' ) end [2025-04-24 01:48:18] Production.INFO: ProcessCDR(1,14976343,1,1,2) [2025-04-24 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976343', 'tblTempUsageDetail_20' ) start [2025-04-24 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976343', 'tblTempUsageDetail_20' ) end [2025-04-24 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:48:22] Production.INFO: ==18565== Releasing lock... [2025-04-24 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:49:05 [end_date_ymd] => 2025-04-24 01:49:05 [RateCDR] => 1 ) [2025-04-24 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:49:05' and `end` < '2025-04-24 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:49:18] Production.INFO: count ==335 [2025-04-24 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:49:05 - End Time 2025-04-24 01:49:05 [2025-04-24 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976348', 'tblTempUsageDetail_20' ) start [2025-04-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976348', 'tblTempUsageDetail_20' ) end [2025-04-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976348', 'tblTempVendorCDR_20' ) start [2025-04-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976348', 'tblTempVendorCDR_20' ) end [2025-04-24 01:49:18] Production.INFO: ProcessCDR(1,14976348,1,1,2) [2025-04-24 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976348', 'tblTempUsageDetail_20' ) start [2025-04-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976348', 'tblTempUsageDetail_20' ) end [2025-04-24 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:49:21] Production.INFO: ==18643== Releasing lock... [2025-04-24 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:50:05 [end_date_ymd] => 2025-04-24 01:50:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 22:50:05' and `end` < '2025-04-24 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-04-24 01:50:18] Production.INFO: count ==340 [2025-04-24 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:50:05 - End Time 2025-04-24 01:50:05 [2025-04-24 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976353', 'tblTempUsageDetail_20' ) start [2025-04-24 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976353', 'tblTempUsageDetail_20' ) end [2025-04-24 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976353', 'tblTempVendorCDR_20' ) start [2025-04-24 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976353', 'tblTempVendorCDR_20' ) end [2025-04-24 01:50:18] Production.INFO: ProcessCDR(1,14976353,1,1,2) [2025-04-24 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976353', 'tblTempUsageDetail_20' ) start [2025-04-24 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976353', 'tblTempUsageDetail_20' ) end [2025-04-24 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:50:22] Production.INFO: ==18720== Releasing lock... [2025-04-24 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:50:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:51:05 [end_date_ymd] => 2025-04-24 01:51:05 [RateCDR] => 1 ) [2025-04-24 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:51:05' and `end` < '2025-04-24 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:51:17] Production.INFO: count ==344 [2025-04-24 01:51:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:51:05 - End Time 2025-04-24 01:51:05 [2025-04-24 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976359', 'tblTempUsageDetail_20' ) start [2025-04-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976359', 'tblTempUsageDetail_20' ) end [2025-04-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976359', 'tblTempVendorCDR_20' ) start [2025-04-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976359', 'tblTempVendorCDR_20' ) end [2025-04-24 01:51:17] Production.INFO: ProcessCDR(1,14976359,1,1,2) [2025-04-24 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976359', 'tblTempUsageDetail_20' ) start [2025-04-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976359', 'tblTempUsageDetail_20' ) end [2025-04-24 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:51:21] Production.INFO: ==18807== Releasing lock... [2025-04-24 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:52:05 [end_date_ymd] => 2025-04-24 01:52:05 [RateCDR] => 1 ) [2025-04-24 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:52:05' and `end` < '2025-04-24 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:52:18] Production.INFO: count ==344 [2025-04-24 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:52:05 - End Time 2025-04-24 01:52:05 [2025-04-24 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976364', 'tblTempUsageDetail_20' ) start [2025-04-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976364', 'tblTempUsageDetail_20' ) end [2025-04-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976364', 'tblTempVendorCDR_20' ) start [2025-04-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976364', 'tblTempVendorCDR_20' ) end [2025-04-24 01:52:18] Production.INFO: ProcessCDR(1,14976364,1,1,2) [2025-04-24 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976364', 'tblTempUsageDetail_20' ) start [2025-04-24 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976364', 'tblTempUsageDetail_20' ) end [2025-04-24 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:52:23] Production.INFO: ==18885== Releasing lock... [2025-04-24 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:52:23] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:53:05 [end_date_ymd] => 2025-04-24 01:53:05 [RateCDR] => 1 ) [2025-04-24 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:53:05' and `end` < '2025-04-24 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:53:18] Production.INFO: count ==345 [2025-04-24 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:53:05 - End Time 2025-04-24 01:53:05 [2025-04-24 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976369', 'tblTempUsageDetail_20' ) start [2025-04-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976369', 'tblTempUsageDetail_20' ) end [2025-04-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976369', 'tblTempVendorCDR_20' ) start [2025-04-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976369', 'tblTempVendorCDR_20' ) end [2025-04-24 01:53:18] Production.INFO: ProcessCDR(1,14976369,1,1,2) [2025-04-24 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976369', 'tblTempUsageDetail_20' ) start [2025-04-24 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976369', 'tblTempUsageDetail_20' ) end [2025-04-24 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:53:23] Production.INFO: ==18965== Releasing lock... [2025-04-24 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:53:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:54:06 [end_date_ymd] => 2025-04-24 01:54:06 [RateCDR] => 1 ) [2025-04-24 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:54:06' and `end` < '2025-04-24 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:54:18] Production.INFO: count ==344 [2025-04-24 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:54:06 - End Time 2025-04-24 01:54:06 [2025-04-24 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976374', 'tblTempUsageDetail_20' ) start [2025-04-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976374', 'tblTempUsageDetail_20' ) end [2025-04-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976374', 'tblTempVendorCDR_20' ) start [2025-04-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976374', 'tblTempVendorCDR_20' ) end [2025-04-24 01:54:18] Production.INFO: ProcessCDR(1,14976374,1,1,2) [2025-04-24 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976374', 'tblTempUsageDetail_20' ) start [2025-04-24 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976374', 'tblTempUsageDetail_20' ) end [2025-04-24 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:54:22] Production.INFO: ==19046== Releasing lock... [2025-04-24 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:55:06 [end_date_ymd] => 2025-04-24 01:55:06 [RateCDR] => 1 ) [2025-04-24 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:55:06' and `end` < '2025-04-24 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:55:18] Production.INFO: count ==343 [2025-04-24 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-23 22:55:06 - End Time 2025-04-24 01:55:06 [2025-04-24 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976379', 'tblTempUsageDetail_20' ) start [2025-04-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976379', 'tblTempUsageDetail_20' ) end [2025-04-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976379', 'tblTempVendorCDR_20' ) start [2025-04-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976379', 'tblTempVendorCDR_20' ) end [2025-04-24 01:55:19] Production.INFO: ProcessCDR(1,14976379,1,1,2) [2025-04-24 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976379', 'tblTempUsageDetail_20' ) start [2025-04-24 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976379', 'tblTempUsageDetail_20' ) end [2025-04-24 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:55:22] Production.INFO: ==19130== Releasing lock... [2025-04-24 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:56:05 [end_date_ymd] => 2025-04-24 01:56:05 [RateCDR] => 1 ) [2025-04-24 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:56:05' and `end` < '2025-04-24 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:56:18] Production.INFO: count ==343 [2025-04-24 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:56:05 - End Time 2025-04-24 01:56:05 [2025-04-24 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976384', 'tblTempUsageDetail_20' ) start [2025-04-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976384', 'tblTempUsageDetail_20' ) end [2025-04-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976384', 'tblTempVendorCDR_20' ) start [2025-04-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976384', 'tblTempVendorCDR_20' ) end [2025-04-24 01:56:18] Production.INFO: ProcessCDR(1,14976384,1,1,2) [2025-04-24 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976384', 'tblTempUsageDetail_20' ) start [2025-04-24 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976384', 'tblTempUsageDetail_20' ) end [2025-04-24 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:56:21] Production.INFO: ==19206== Releasing lock... [2025-04-24 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:57:05 [end_date_ymd] => 2025-04-24 01:57:05 [RateCDR] => 1 ) [2025-04-24 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:57:05' and `end` < '2025-04-24 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:57:18] Production.INFO: count ==343 [2025-04-24 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:57:05 - End Time 2025-04-24 01:57:05 [2025-04-24 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976389', 'tblTempUsageDetail_20' ) start [2025-04-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976389', 'tblTempUsageDetail_20' ) end [2025-04-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976389', 'tblTempVendorCDR_20' ) start [2025-04-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976389', 'tblTempVendorCDR_20' ) end [2025-04-24 01:57:18] Production.INFO: ProcessCDR(1,14976389,1,1,2) [2025-04-24 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976389', 'tblTempUsageDetail_20' ) start [2025-04-24 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976389', 'tblTempUsageDetail_20' ) end [2025-04-24 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:57:22] Production.INFO: ==19281== Releasing lock... [2025-04-24 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:58:05 [end_date_ymd] => 2025-04-24 01:58:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 22:58:05' and `end` < '2025-04-24 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-04-24 01:58:17] Production.INFO: count ==341 [2025-04-24 01:58:17] Production.ERROR: pbx CDR StartTime 2025-04-23 22:58:05 - End Time 2025-04-24 01:58:05 [2025-04-24 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976394', 'tblTempUsageDetail_20' ) start [2025-04-24 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976394', 'tblTempUsageDetail_20' ) end [2025-04-24 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976394', 'tblTempVendorCDR_20' ) start [2025-04-24 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976394', 'tblTempVendorCDR_20' ) end [2025-04-24 01:58:17] Production.INFO: ProcessCDR(1,14976394,1,1,2) [2025-04-24 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976394', 'tblTempUsageDetail_20' ) start [2025-04-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976394', 'tblTempUsageDetail_20' ) end [2025-04-24 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:58:21] Production.INFO: ==19358== Releasing lock... [2025-04-24 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:58:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 22:59:05 [end_date_ymd] => 2025-04-24 01:59:05 [RateCDR] => 1 ) [2025-04-24 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 22:59:05' and `end` < '2025-04-24 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 01:59:18] Production.INFO: count ==340 [2025-04-24 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 22:59:05 - End Time 2025-04-24 01:59:05 [2025-04-24 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976399', 'tblTempUsageDetail_20' ) start [2025-04-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976399', 'tblTempUsageDetail_20' ) end [2025-04-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976399', 'tblTempVendorCDR_20' ) start [2025-04-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976399', 'tblTempVendorCDR_20' ) end [2025-04-24 01:59:18] Production.INFO: ProcessCDR(1,14976399,1,1,2) [2025-04-24 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976399', 'tblTempUsageDetail_20' ) start [2025-04-24 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976399', 'tblTempUsageDetail_20' ) end [2025-04-24 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 01:59:21] Production.INFO: ==19441== Releasing lock... [2025-04-24 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 01:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:00:06 [end_date_ymd] => 2025-04-24 02:00:06 [RateCDR] => 1 ) [2025-04-24 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:00:06' and `end` < '2025-04-24 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:00:18] Production.INFO: count ==348 [2025-04-24 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:00:06 - End Time 2025-04-24 02:00:06 [2025-04-24 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976405', 'tblTempUsageDetail_20' ) start [2025-04-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976405', 'tblTempUsageDetail_20' ) end [2025-04-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976405', 'tblTempVendorCDR_20' ) start [2025-04-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976405', 'tblTempVendorCDR_20' ) end [2025-04-24 02:00:18] Production.INFO: ProcessCDR(1,14976405,1,1,2) [2025-04-24 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976405', 'tblTempUsageDetail_20' ) start [2025-04-24 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976405', 'tblTempUsageDetail_20' ) end [2025-04-24 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:00:22] Production.INFO: ==19517== Releasing lock... [2025-04-24 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:01:06 [end_date_ymd] => 2025-04-24 02:01:06 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:01:06' and `end` < '2025-04-24 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-04-24 02:01:18] Production.INFO: count ==355 [2025-04-24 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:01:06 - End Time 2025-04-24 02:01:06 [2025-04-24 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976410', 'tblTempUsageDetail_20' ) start [2025-04-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976410', 'tblTempUsageDetail_20' ) end [2025-04-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976410', 'tblTempVendorCDR_20' ) start [2025-04-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976410', 'tblTempVendorCDR_20' ) end [2025-04-24 02:01:18] Production.INFO: ProcessCDR(1,14976410,1,1,2) [2025-04-24 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976410', 'tblTempUsageDetail_20' ) start [2025-04-24 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976410', 'tblTempUsageDetail_20' ) end [2025-04-24 02:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:01:24] Production.INFO: ==19649== Releasing lock... [2025-04-24 02:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:01:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:02:05 [end_date_ymd] => 2025-04-24 02:02:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:02:05' and `end` < '2025-04-24 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-04-24 02:02:17] Production.INFO: count ==354 [2025-04-24 02:02:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:02:05 - End Time 2025-04-24 02:02:05 [2025-04-24 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976415', 'tblTempUsageDetail_20' ) start [2025-04-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976415', 'tblTempUsageDetail_20' ) end [2025-04-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976415', 'tblTempVendorCDR_20' ) start [2025-04-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976415', 'tblTempVendorCDR_20' ) end [2025-04-24 02:02:17] Production.INFO: ProcessCDR(1,14976415,1,1,2) [2025-04-24 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976415', 'tblTempUsageDetail_20' ) start [2025-04-24 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976415', 'tblTempUsageDetail_20' ) end [2025-04-24 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:02:21] Production.INFO: ==19810== Releasing lock... [2025-04-24 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:03:05 [end_date_ymd] => 2025-04-24 02:03:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:03:05' and `end` < '2025-04-24 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:03:18] Production.INFO: count ==353 [2025-04-24 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:03:05 - End Time 2025-04-24 02:03:05 [2025-04-24 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976420', 'tblTempUsageDetail_20' ) start [2025-04-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976420', 'tblTempUsageDetail_20' ) end [2025-04-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976420', 'tblTempVendorCDR_20' ) start [2025-04-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976420', 'tblTempVendorCDR_20' ) end [2025-04-24 02:03:18] Production.INFO: ProcessCDR(1,14976420,1,1,2) [2025-04-24 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976420', 'tblTempUsageDetail_20' ) start [2025-04-24 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976420', 'tblTempUsageDetail_20' ) end [2025-04-24 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:03:21] Production.INFO: ==19891== Releasing lock... [2025-04-24 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:04:06 [end_date_ymd] => 2025-04-24 02:04:06 [RateCDR] => 1 ) [2025-04-24 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:04:06' and `end` < '2025-04-24 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:04:18] Production.INFO: count ==352 [2025-04-24 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:04:06 - End Time 2025-04-24 02:04:06 [2025-04-24 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976425', 'tblTempUsageDetail_20' ) start [2025-04-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976425', 'tblTempUsageDetail_20' ) end [2025-04-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976425', 'tblTempVendorCDR_20' ) start [2025-04-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976425', 'tblTempVendorCDR_20' ) end [2025-04-24 02:04:18] Production.INFO: ProcessCDR(1,14976425,1,1,2) [2025-04-24 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976425', 'tblTempUsageDetail_20' ) start [2025-04-24 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976425', 'tblTempUsageDetail_20' ) end [2025-04-24 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:04:22] Production.INFO: ==19974== Releasing lock... [2025-04-24 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:04:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:05:05 [end_date_ymd] => 2025-04-24 02:05:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:05:05' and `end` < '2025-04-24 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-04-24 02:05:18] Production.INFO: count ==351 [2025-04-24 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:05:05 - End Time 2025-04-24 02:05:05 [2025-04-24 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976430', 'tblTempUsageDetail_20' ) start [2025-04-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976430', 'tblTempUsageDetail_20' ) end [2025-04-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976430', 'tblTempVendorCDR_20' ) start [2025-04-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976430', 'tblTempVendorCDR_20' ) end [2025-04-24 02:05:18] Production.INFO: ProcessCDR(1,14976430,1,1,2) [2025-04-24 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976430', 'tblTempUsageDetail_20' ) start [2025-04-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976430', 'tblTempUsageDetail_20' ) end [2025-04-24 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:05:21] Production.INFO: ==20053== Releasing lock... [2025-04-24 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:06:05 [end_date_ymd] => 2025-04-24 02:06:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:06:05' and `end` < '2025-04-24 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-04-24 02:06:18] Production.INFO: count ==351 [2025-04-24 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:06:05 - End Time 2025-04-24 02:06:05 [2025-04-24 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976435', 'tblTempUsageDetail_20' ) start [2025-04-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976435', 'tblTempUsageDetail_20' ) end [2025-04-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976435', 'tblTempVendorCDR_20' ) start [2025-04-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976435', 'tblTempVendorCDR_20' ) end [2025-04-24 02:06:18] Production.INFO: ProcessCDR(1,14976435,1,1,2) [2025-04-24 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976435', 'tblTempUsageDetail_20' ) start [2025-04-24 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976435', 'tblTempUsageDetail_20' ) end [2025-04-24 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:06:21] Production.INFO: ==20130== Releasing lock... [2025-04-24 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:07:05 [end_date_ymd] => 2025-04-24 02:07:05 [RateCDR] => 1 ) [2025-04-24 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:07:05' and `end` < '2025-04-24 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:07:17] Production.INFO: count ==350 [2025-04-24 02:07:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:07:05 - End Time 2025-04-24 02:07:05 [2025-04-24 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976440', 'tblTempUsageDetail_20' ) start [2025-04-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976440', 'tblTempUsageDetail_20' ) end [2025-04-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976440', 'tblTempVendorCDR_20' ) start [2025-04-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976440', 'tblTempVendorCDR_20' ) end [2025-04-24 02:07:17] Production.INFO: ProcessCDR(1,14976440,1,1,2) [2025-04-24 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976440', 'tblTempUsageDetail_20' ) start [2025-04-24 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976440', 'tblTempUsageDetail_20' ) end [2025-04-24 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:07:21] Production.INFO: ==20209== Releasing lock... [2025-04-24 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:08:05 [end_date_ymd] => 2025-04-24 02:08:05 [RateCDR] => 1 ) [2025-04-24 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:08:05' and `end` < '2025-04-24 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-04-24 02:08:18] Production.INFO: count ==347 [2025-04-24 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:08:05 - End Time 2025-04-24 02:08:05 [2025-04-24 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976445', 'tblTempUsageDetail_20' ) start [2025-04-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976445', 'tblTempUsageDetail_20' ) end [2025-04-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976445', 'tblTempVendorCDR_20' ) start [2025-04-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976445', 'tblTempVendorCDR_20' ) end [2025-04-24 02:08:18] Production.INFO: ProcessCDR(1,14976445,1,1,2) [2025-04-24 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976445', 'tblTempUsageDetail_20' ) start [2025-04-24 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976445', 'tblTempUsageDetail_20' ) end [2025-04-24 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:08:21] Production.INFO: ==20288== Releasing lock... [2025-04-24 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:09:05 [end_date_ymd] => 2025-04-24 02:09:05 [RateCDR] => 1 ) [2025-04-24 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:09:05' and `end` < '2025-04-24 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:09:17] Production.INFO: count ==347 [2025-04-24 02:09:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:09:05 - End Time 2025-04-24 02:09:05 [2025-04-24 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976450', 'tblTempUsageDetail_20' ) start [2025-04-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976450', 'tblTempUsageDetail_20' ) end [2025-04-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976450', 'tblTempVendorCDR_20' ) start [2025-04-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976450', 'tblTempVendorCDR_20' ) end [2025-04-24 02:09:17] Production.INFO: ProcessCDR(1,14976450,1,1,2) [2025-04-24 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976450', 'tblTempUsageDetail_20' ) start [2025-04-24 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976450', 'tblTempUsageDetail_20' ) end [2025-04-24 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:09:21] Production.INFO: ==20371== Releasing lock... [2025-04-24 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:09:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:10:06 [end_date_ymd] => 2025-04-24 02:10:06 [RateCDR] => 1 ) [2025-04-24 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:10:06' and `end` < '2025-04-24 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:10:18] Production.INFO: count ==355 [2025-04-24 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:10:06 - End Time 2025-04-24 02:10:06 [2025-04-24 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976456', 'tblTempUsageDetail_20' ) start [2025-04-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976456', 'tblTempUsageDetail_20' ) end [2025-04-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976456', 'tblTempVendorCDR_20' ) start [2025-04-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976456', 'tblTempVendorCDR_20' ) end [2025-04-24 02:10:19] Production.INFO: ProcessCDR(1,14976456,1,1,2) [2025-04-24 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976456', 'tblTempUsageDetail_20' ) start [2025-04-24 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976456', 'tblTempUsageDetail_20' ) end [2025-04-24 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:10:24] Production.INFO: ==20452== Releasing lock... [2025-04-24 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:10:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:11:05 [end_date_ymd] => 2025-04-24 02:11:05 [RateCDR] => 1 ) [2025-04-24 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:11:05' and `end` < '2025-04-24 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:11:17] Production.INFO: count ==354 [2025-04-24 02:11:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:11:05 - End Time 2025-04-24 02:11:05 [2025-04-24 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976461', 'tblTempUsageDetail_20' ) start [2025-04-24 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976461', 'tblTempUsageDetail_20' ) end [2025-04-24 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976461', 'tblTempVendorCDR_20' ) start [2025-04-24 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976461', 'tblTempVendorCDR_20' ) end [2025-04-24 02:11:17] Production.INFO: ProcessCDR(1,14976461,1,1,2) [2025-04-24 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976461', 'tblTempUsageDetail_20' ) start [2025-04-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976461', 'tblTempUsageDetail_20' ) end [2025-04-24 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:11:22] Production.INFO: ==20538== Releasing lock... [2025-04-24 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:12:05 [end_date_ymd] => 2025-04-24 02:12:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:12:05' and `end` < '2025-04-24 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-04-24 02:12:18] Production.INFO: count ==356 [2025-04-24 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:12:05 - End Time 2025-04-24 02:12:05 [2025-04-24 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976466', 'tblTempUsageDetail_20' ) start [2025-04-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976466', 'tblTempUsageDetail_20' ) end [2025-04-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976466', 'tblTempVendorCDR_20' ) start [2025-04-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976466', 'tblTempVendorCDR_20' ) end [2025-04-24 02:12:18] Production.INFO: ProcessCDR(1,14976466,1,1,2) [2025-04-24 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976466', 'tblTempUsageDetail_20' ) start [2025-04-24 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976466', 'tblTempUsageDetail_20' ) end [2025-04-24 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:12:21] Production.INFO: ==20613== Releasing lock... [2025-04-24 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:12:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:13:05 [end_date_ymd] => 2025-04-24 02:13:05 [RateCDR] => 1 ) [2025-04-24 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:13:05' and `end` < '2025-04-24 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:13:18] Production.INFO: count ==357 [2025-04-24 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:13:05 - End Time 2025-04-24 02:13:05 [2025-04-24 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976471', 'tblTempUsageDetail_20' ) start [2025-04-24 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976471', 'tblTempUsageDetail_20' ) end [2025-04-24 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976471', 'tblTempVendorCDR_20' ) start [2025-04-24 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976471', 'tblTempVendorCDR_20' ) end [2025-04-24 02:13:18] Production.INFO: ProcessCDR(1,14976471,1,1,2) [2025-04-24 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976471', 'tblTempUsageDetail_20' ) start [2025-04-24 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976471', 'tblTempUsageDetail_20' ) end [2025-04-24 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:13:21] Production.INFO: ==20691== Releasing lock... [2025-04-24 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:14:05 [end_date_ymd] => 2025-04-24 02:14:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:14:05' and `end` < '2025-04-24 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-04-24 02:14:17] Production.INFO: count ==363 [2025-04-24 02:14:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:14:05 - End Time 2025-04-24 02:14:05 [2025-04-24 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976476', 'tblTempUsageDetail_20' ) start [2025-04-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976476', 'tblTempUsageDetail_20' ) end [2025-04-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976476', 'tblTempVendorCDR_20' ) start [2025-04-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976476', 'tblTempVendorCDR_20' ) end [2025-04-24 02:14:17] Production.INFO: ProcessCDR(1,14976476,1,1,2) [2025-04-24 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976476', 'tblTempUsageDetail_20' ) start [2025-04-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976476', 'tblTempUsageDetail_20' ) end [2025-04-24 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:14:21] Production.INFO: ==20769== Releasing lock... [2025-04-24 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:15:06 [end_date_ymd] => 2025-04-24 02:15:06 [RateCDR] => 1 ) [2025-04-24 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:15:06' and `end` < '2025-04-24 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:15:18] Production.INFO: count ==364 [2025-04-24 02:15:19] Production.ERROR: pbx CDR StartTime 2025-04-23 23:15:06 - End Time 2025-04-24 02:15:06 [2025-04-24 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976481', 'tblTempUsageDetail_20' ) start [2025-04-24 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976481', 'tblTempUsageDetail_20' ) end [2025-04-24 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976481', 'tblTempVendorCDR_20' ) start [2025-04-24 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976481', 'tblTempVendorCDR_20' ) end [2025-04-24 02:15:19] Production.INFO: ProcessCDR(1,14976481,1,1,2) [2025-04-24 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976481', 'tblTempUsageDetail_20' ) start [2025-04-24 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976481', 'tblTempUsageDetail_20' ) end [2025-04-24 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:15:22] Production.INFO: ==20849== Releasing lock... [2025-04-24 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:15:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:16:05 [end_date_ymd] => 2025-04-24 02:16:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:16:05' and `end` < '2025-04-24 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-04-24 02:16:17] Production.INFO: count ==362 [2025-04-24 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:16:05 - End Time 2025-04-24 02:16:05 [2025-04-24 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976486', 'tblTempUsageDetail_20' ) start [2025-04-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976486', 'tblTempUsageDetail_20' ) end [2025-04-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976486', 'tblTempVendorCDR_20' ) start [2025-04-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976486', 'tblTempVendorCDR_20' ) end [2025-04-24 02:16:17] Production.INFO: ProcessCDR(1,14976486,1,1,2) [2025-04-24 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976486', 'tblTempUsageDetail_20' ) start [2025-04-24 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976486', 'tblTempUsageDetail_20' ) end [2025-04-24 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:16:21] Production.INFO: ==20931== Releasing lock... [2025-04-24 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:16:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:17:05 [end_date_ymd] => 2025-04-24 02:17:05 [RateCDR] => 1 ) [2025-04-24 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:17:05' and `end` < '2025-04-24 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:17:18] Production.INFO: count ==366 [2025-04-24 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:17:05 - End Time 2025-04-24 02:17:05 [2025-04-24 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976491', 'tblTempUsageDetail_20' ) start [2025-04-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976491', 'tblTempUsageDetail_20' ) end [2025-04-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976491', 'tblTempVendorCDR_20' ) start [2025-04-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976491', 'tblTempVendorCDR_20' ) end [2025-04-24 02:17:18] Production.INFO: ProcessCDR(1,14976491,1,1,2) [2025-04-24 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976491', 'tblTempUsageDetail_20' ) start [2025-04-24 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976491', 'tblTempUsageDetail_20' ) end [2025-04-24 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:17:21] Production.INFO: ==21048== Releasing lock... [2025-04-24 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:17:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:18:05 [end_date_ymd] => 2025-04-24 02:18:05 [RateCDR] => 1 ) [2025-04-24 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:18:05' and `end` < '2025-04-24 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:18:17] Production.INFO: count ==361 [2025-04-24 02:18:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:18:05 - End Time 2025-04-24 02:18:05 [2025-04-24 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976496', 'tblTempUsageDetail_20' ) start [2025-04-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976496', 'tblTempUsageDetail_20' ) end [2025-04-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976496', 'tblTempVendorCDR_20' ) start [2025-04-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976496', 'tblTempVendorCDR_20' ) end [2025-04-24 02:18:17] Production.INFO: ProcessCDR(1,14976496,1,1,2) [2025-04-24 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976496', 'tblTempUsageDetail_20' ) start [2025-04-24 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976496', 'tblTempUsageDetail_20' ) end [2025-04-24 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:18:21] Production.INFO: ==21126== Releasing lock... [2025-04-24 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:19:05 [end_date_ymd] => 2025-04-24 02:19:05 [RateCDR] => 1 ) [2025-04-24 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:19:05' and `end` < '2025-04-24 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:19:18] Production.INFO: count ==358 [2025-04-24 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:19:05 - End Time 2025-04-24 02:19:05 [2025-04-24 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976501', 'tblTempUsageDetail_20' ) start [2025-04-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976501', 'tblTempUsageDetail_20' ) end [2025-04-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976501', 'tblTempVendorCDR_20' ) start [2025-04-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976501', 'tblTempVendorCDR_20' ) end [2025-04-24 02:19:18] Production.INFO: ProcessCDR(1,14976501,1,1,2) [2025-04-24 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976501', 'tblTempUsageDetail_20' ) start [2025-04-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976501', 'tblTempUsageDetail_20' ) end [2025-04-24 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:19:22] Production.INFO: ==21205== Releasing lock... [2025-04-24 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:19:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:20:06 [end_date_ymd] => 2025-04-24 02:20:06 [RateCDR] => 1 ) [2025-04-24 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:20:06' and `end` < '2025-04-24 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:20:18] Production.INFO: count ==361 [2025-04-24 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 23:20:06 - End Time 2025-04-24 02:20:06 [2025-04-24 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976506', 'tblTempUsageDetail_20' ) start [2025-04-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976506', 'tblTempUsageDetail_20' ) end [2025-04-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976506', 'tblTempVendorCDR_20' ) start [2025-04-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976506', 'tblTempVendorCDR_20' ) end [2025-04-24 02:20:19] Production.INFO: ProcessCDR(1,14976506,1,1,2) [2025-04-24 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976506', 'tblTempUsageDetail_20' ) start [2025-04-24 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976506', 'tblTempUsageDetail_20' ) end [2025-04-24 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:20:22] Production.INFO: ==21280== Releasing lock... [2025-04-24 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:21:04 [end_date_ymd] => 2025-04-24 02:21:04 [RateCDR] => 1 ) [2025-04-24 02: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-04-23 23:21:04' and `end` < '2025-04-24 02: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-04-24 02:21:17] Production.INFO: count ==372 [2025-04-24 02:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:21:04 - End Time 2025-04-24 02:21:04 [2025-04-24 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976512', 'tblTempUsageDetail_20' ) start [2025-04-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976512', 'tblTempUsageDetail_20' ) end [2025-04-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976512', 'tblTempVendorCDR_20' ) start [2025-04-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976512', 'tblTempVendorCDR_20' ) end [2025-04-24 02:21:17] Production.INFO: ProcessCDR(1,14976512,1,1,2) [2025-04-24 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976512', 'tblTempUsageDetail_20' ) start [2025-04-24 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976512', 'tblTempUsageDetail_20' ) end [2025-04-24 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:21:20] Production.INFO: ==21355== Releasing lock... [2025-04-24 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:22:06 [end_date_ymd] => 2025-04-24 02:22:06 [RateCDR] => 1 ) [2025-04-24 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:22:06' and `end` < '2025-04-24 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:22:18] Production.INFO: count ==375 [2025-04-24 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:22:06 - End Time 2025-04-24 02:22:06 [2025-04-24 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976517', 'tblTempUsageDetail_20' ) start [2025-04-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976517', 'tblTempUsageDetail_20' ) end [2025-04-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976517', 'tblTempVendorCDR_20' ) start [2025-04-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976517', 'tblTempVendorCDR_20' ) end [2025-04-24 02:22:18] Production.INFO: ProcessCDR(1,14976517,1,1,2) [2025-04-24 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976517', 'tblTempUsageDetail_20' ) start [2025-04-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976517', 'tblTempUsageDetail_20' ) end [2025-04-24 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:22:21] Production.INFO: ==21447== Releasing lock... [2025-04-24 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:22:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:23:05 [end_date_ymd] => 2025-04-24 02:23:05 [RateCDR] => 1 ) [2025-04-24 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:23:05' and `end` < '2025-04-24 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:23:17] Production.INFO: count ==376 [2025-04-24 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:23:05 - End Time 2025-04-24 02:23:05 [2025-04-24 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976522', 'tblTempUsageDetail_20' ) start [2025-04-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976522', 'tblTempUsageDetail_20' ) end [2025-04-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976522', 'tblTempVendorCDR_20' ) start [2025-04-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976522', 'tblTempVendorCDR_20' ) end [2025-04-24 02:23:18] Production.INFO: ProcessCDR(1,14976522,1,1,2) [2025-04-24 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976522', 'tblTempUsageDetail_20' ) start [2025-04-24 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976522', 'tblTempUsageDetail_20' ) end [2025-04-24 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:23:22] Production.INFO: ==21533== Releasing lock... [2025-04-24 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:23:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:24:05 [end_date_ymd] => 2025-04-24 02:24:05 [RateCDR] => 1 ) [2025-04-24 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:24:05' and `end` < '2025-04-24 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:24:18] Production.INFO: count ==373 [2025-04-24 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:24:05 - End Time 2025-04-24 02:24:05 [2025-04-24 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976527', 'tblTempUsageDetail_20' ) start [2025-04-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976527', 'tblTempUsageDetail_20' ) end [2025-04-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976527', 'tblTempVendorCDR_20' ) start [2025-04-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976527', 'tblTempVendorCDR_20' ) end [2025-04-24 02:24:18] Production.INFO: ProcessCDR(1,14976527,1,1,2) [2025-04-24 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976527', 'tblTempUsageDetail_20' ) start [2025-04-24 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976527', 'tblTempUsageDetail_20' ) end [2025-04-24 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:24:21] Production.INFO: ==21612== Releasing lock... [2025-04-24 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:25:05 [end_date_ymd] => 2025-04-24 02:25:05 [RateCDR] => 1 ) [2025-04-24 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:25:05' and `end` < '2025-04-24 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:25:17] Production.INFO: count ==374 [2025-04-24 02:25:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:25:05 - End Time 2025-04-24 02:25:05 [2025-04-24 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976532', 'tblTempUsageDetail_20' ) start [2025-04-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976532', 'tblTempUsageDetail_20' ) end [2025-04-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976532', 'tblTempVendorCDR_20' ) start [2025-04-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976532', 'tblTempVendorCDR_20' ) end [2025-04-24 02:25:17] Production.INFO: ProcessCDR(1,14976532,1,1,2) [2025-04-24 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976532', 'tblTempUsageDetail_20' ) start [2025-04-24 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976532', 'tblTempUsageDetail_20' ) end [2025-04-24 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:25:22] Production.INFO: ==21687== Releasing lock... [2025-04-24 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:26:05 [end_date_ymd] => 2025-04-24 02:26:05 [RateCDR] => 1 ) [2025-04-24 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:26:05' and `end` < '2025-04-24 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:26:18] Production.INFO: count ==373 [2025-04-24 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:26:05 - End Time 2025-04-24 02:26:05 [2025-04-24 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976537', 'tblTempUsageDetail_20' ) start [2025-04-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976537', 'tblTempUsageDetail_20' ) end [2025-04-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976537', 'tblTempVendorCDR_20' ) start [2025-04-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976537', 'tblTempVendorCDR_20' ) end [2025-04-24 02:26:18] Production.INFO: ProcessCDR(1,14976537,1,1,2) [2025-04-24 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976537', 'tblTempUsageDetail_20' ) start [2025-04-24 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976537', 'tblTempUsageDetail_20' ) end [2025-04-24 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:26:21] Production.INFO: ==21764== Releasing lock... [2025-04-24 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:27:06 [end_date_ymd] => 2025-04-24 02:27:06 [RateCDR] => 1 ) [2025-04-24 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:27:06' and `end` < '2025-04-24 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:27:18] Production.INFO: count ==373 [2025-04-24 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:27:06 - End Time 2025-04-24 02:27:06 [2025-04-24 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976542', 'tblTempUsageDetail_20' ) start [2025-04-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976542', 'tblTempUsageDetail_20' ) end [2025-04-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976542', 'tblTempVendorCDR_20' ) start [2025-04-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976542', 'tblTempVendorCDR_20' ) end [2025-04-24 02:27:18] Production.INFO: ProcessCDR(1,14976542,1,1,2) [2025-04-24 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976542', 'tblTempUsageDetail_20' ) start [2025-04-24 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976542', 'tblTempUsageDetail_20' ) end [2025-04-24 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:27:21] Production.INFO: ==21837== Releasing lock... [2025-04-24 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:28:05 [end_date_ymd] => 2025-04-24 02:28:05 [RateCDR] => 1 ) [2025-04-24 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:28:05' and `end` < '2025-04-24 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:28:18] Production.INFO: count ==369 [2025-04-24 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:28:05 - End Time 2025-04-24 02:28:05 [2025-04-24 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976547', 'tblTempUsageDetail_20' ) start [2025-04-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976547', 'tblTempUsageDetail_20' ) end [2025-04-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976547', 'tblTempVendorCDR_20' ) start [2025-04-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976547', 'tblTempVendorCDR_20' ) end [2025-04-24 02:28:18] Production.INFO: ProcessCDR(1,14976547,1,1,2) [2025-04-24 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976547', 'tblTempUsageDetail_20' ) start [2025-04-24 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976547', 'tblTempUsageDetail_20' ) end [2025-04-24 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:28:21] Production.INFO: ==21911== Releasing lock... [2025-04-24 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:29:05 [end_date_ymd] => 2025-04-24 02:29:05 [RateCDR] => 1 ) [2025-04-24 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:29:05' and `end` < '2025-04-24 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:29:18] Production.INFO: count ==365 [2025-04-24 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:29:05 - End Time 2025-04-24 02:29:05 [2025-04-24 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976552', 'tblTempUsageDetail_20' ) start [2025-04-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976552', 'tblTempUsageDetail_20' ) end [2025-04-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976552', 'tblTempVendorCDR_20' ) start [2025-04-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976552', 'tblTempVendorCDR_20' ) end [2025-04-24 02:29:18] Production.INFO: ProcessCDR(1,14976552,1,1,2) [2025-04-24 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976552', 'tblTempUsageDetail_20' ) start [2025-04-24 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976552', 'tblTempUsageDetail_20' ) end [2025-04-24 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:29:21] Production.INFO: ==21991== Releasing lock... [2025-04-24 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:29:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:30:06 [end_date_ymd] => 2025-04-24 02:30:06 [RateCDR] => 1 ) [2025-04-24 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:30:06' and `end` < '2025-04-24 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:30:18] Production.INFO: count ==382 [2025-04-24 02:30:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:30:06 - End Time 2025-04-24 02:30:06 [2025-04-24 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976558', 'tblTempUsageDetail_20' ) start [2025-04-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976558', 'tblTempUsageDetail_20' ) end [2025-04-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976558', 'tblTempVendorCDR_20' ) start [2025-04-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976558', 'tblTempVendorCDR_20' ) end [2025-04-24 02:30:18] Production.INFO: ProcessCDR(1,14976558,1,1,2) [2025-04-24 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976558', 'tblTempUsageDetail_20' ) start [2025-04-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976558', 'tblTempUsageDetail_20' ) end [2025-04-24 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:30:22] Production.INFO: ==22065== Releasing lock... [2025-04-24 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:31:05 [end_date_ymd] => 2025-04-24 02:31:05 [RateCDR] => 1 ) [2025-04-24 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:31:05' and `end` < '2025-04-24 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:31:17] Production.INFO: count ==380 [2025-04-24 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:31:05 - End Time 2025-04-24 02:31:05 [2025-04-24 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976563', 'tblTempUsageDetail_20' ) start [2025-04-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976563', 'tblTempUsageDetail_20' ) end [2025-04-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976563', 'tblTempVendorCDR_20' ) start [2025-04-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976563', 'tblTempVendorCDR_20' ) end [2025-04-24 02:31:18] Production.INFO: ProcessCDR(1,14976563,1,1,2) [2025-04-24 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976563', 'tblTempUsageDetail_20' ) start [2025-04-24 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976563', 'tblTempUsageDetail_20' ) end [2025-04-24 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:31:21] Production.INFO: ==22141== Releasing lock... [2025-04-24 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:32:05 [end_date_ymd] => 2025-04-24 02:32:05 [RateCDR] => 1 ) [2025-04-24 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:32:05' and `end` < '2025-04-24 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:32:17] Production.INFO: count ==376 [2025-04-24 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:32:05 - End Time 2025-04-24 02:32:05 [2025-04-24 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976568', 'tblTempUsageDetail_20' ) start [2025-04-24 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976568', 'tblTempUsageDetail_20' ) end [2025-04-24 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976568', 'tblTempVendorCDR_20' ) start [2025-04-24 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976568', 'tblTempVendorCDR_20' ) end [2025-04-24 02:32:18] Production.INFO: ProcessCDR(1,14976568,1,1,2) [2025-04-24 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976568', 'tblTempUsageDetail_20' ) start [2025-04-24 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976568', 'tblTempUsageDetail_20' ) end [2025-04-24 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:32:21] Production.INFO: ==22254== Releasing lock... [2025-04-24 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:32:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:33:05 [end_date_ymd] => 2025-04-24 02:33:05 [RateCDR] => 1 ) [2025-04-24 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:33:05' and `end` < '2025-04-24 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:33:18] Production.INFO: count ==368 [2025-04-24 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:33:05 - End Time 2025-04-24 02:33:05 [2025-04-24 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976573', 'tblTempUsageDetail_20' ) start [2025-04-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976573', 'tblTempUsageDetail_20' ) end [2025-04-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976573', 'tblTempVendorCDR_20' ) start [2025-04-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976573', 'tblTempVendorCDR_20' ) end [2025-04-24 02:33:18] Production.INFO: ProcessCDR(1,14976573,1,1,2) [2025-04-24 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976573', 'tblTempUsageDetail_20' ) start [2025-04-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976573', 'tblTempUsageDetail_20' ) end [2025-04-24 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:33:22] Production.INFO: ==22326== Releasing lock... [2025-04-24 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:34:06 [end_date_ymd] => 2025-04-24 02:34:06 [RateCDR] => 1 ) [2025-04-24 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:34:06' and `end` < '2025-04-24 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:34:19] Production.INFO: count ==363 [2025-04-24 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-23 23:34:06 - End Time 2025-04-24 02:34:06 [2025-04-24 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976578', 'tblTempUsageDetail_20' ) start [2025-04-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976578', 'tblTempUsageDetail_20' ) end [2025-04-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976578', 'tblTempVendorCDR_20' ) start [2025-04-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976578', 'tblTempVendorCDR_20' ) end [2025-04-24 02:34:19] Production.INFO: ProcessCDR(1,14976578,1,1,2) [2025-04-24 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976578', 'tblTempUsageDetail_20' ) start [2025-04-24 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976578', 'tblTempUsageDetail_20' ) end [2025-04-24 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:34:23] Production.INFO: ==22408== Releasing lock... [2025-04-24 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:35:05 [end_date_ymd] => 2025-04-24 02:35:05 [RateCDR] => 1 ) [2025-04-24 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:35:05' and `end` < '2025-04-24 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:35:18] Production.INFO: count ==362 [2025-04-24 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:35:05 - End Time 2025-04-24 02:35:05 [2025-04-24 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976583', 'tblTempUsageDetail_20' ) start [2025-04-24 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976583', 'tblTempUsageDetail_20' ) end [2025-04-24 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976583', 'tblTempVendorCDR_20' ) start [2025-04-24 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976583', 'tblTempVendorCDR_20' ) end [2025-04-24 02:35:18] Production.INFO: ProcessCDR(1,14976583,1,1,2) [2025-04-24 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976583', 'tblTempUsageDetail_20' ) start [2025-04-24 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976583', 'tblTempUsageDetail_20' ) end [2025-04-24 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:35:22] Production.INFO: ==22487== Releasing lock... [2025-04-24 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:36:06 [end_date_ymd] => 2025-04-24 02:36:06 [RateCDR] => 1 ) [2025-04-24 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:36:06' and `end` < '2025-04-24 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:36:18] Production.INFO: count ==362 [2025-04-24 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:36:06 - End Time 2025-04-24 02:36:06 [2025-04-24 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976588', 'tblTempUsageDetail_20' ) start [2025-04-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976588', 'tblTempUsageDetail_20' ) end [2025-04-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976588', 'tblTempVendorCDR_20' ) start [2025-04-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976588', 'tblTempVendorCDR_20' ) end [2025-04-24 02:36:18] Production.INFO: ProcessCDR(1,14976588,1,1,2) [2025-04-24 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976588', 'tblTempUsageDetail_20' ) start [2025-04-24 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976588', 'tblTempUsageDetail_20' ) end [2025-04-24 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:36:22] Production.INFO: ==22567== Releasing lock... [2025-04-24 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:37:05 [end_date_ymd] => 2025-04-24 02:37:05 [RateCDR] => 1 ) [2025-04-24 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:37:05' and `end` < '2025-04-24 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:37:18] Production.INFO: count ==364 [2025-04-24 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:37:05 - End Time 2025-04-24 02:37:05 [2025-04-24 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976593', 'tblTempUsageDetail_20' ) start [2025-04-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976593', 'tblTempUsageDetail_20' ) end [2025-04-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976593', 'tblTempVendorCDR_20' ) start [2025-04-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976593', 'tblTempVendorCDR_20' ) end [2025-04-24 02:37:18] Production.INFO: ProcessCDR(1,14976593,1,1,2) [2025-04-24 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976593', 'tblTempUsageDetail_20' ) start [2025-04-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976593', 'tblTempUsageDetail_20' ) end [2025-04-24 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:37:21] Production.INFO: ==22643== Releasing lock... [2025-04-24 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:38:05 [end_date_ymd] => 2025-04-24 02:38:05 [RateCDR] => 1 ) [2025-04-24 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:38:05' and `end` < '2025-04-24 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:38:17] Production.INFO: count ==364 [2025-04-24 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:38:05 - End Time 2025-04-24 02:38:05 [2025-04-24 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976598', 'tblTempUsageDetail_20' ) start [2025-04-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976598', 'tblTempUsageDetail_20' ) end [2025-04-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976598', 'tblTempVendorCDR_20' ) start [2025-04-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976598', 'tblTempVendorCDR_20' ) end [2025-04-24 02:38:18] Production.INFO: ProcessCDR(1,14976598,1,1,2) [2025-04-24 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976598', 'tblTempUsageDetail_20' ) start [2025-04-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976598', 'tblTempUsageDetail_20' ) end [2025-04-24 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:38:21] Production.INFO: ==22722== Releasing lock... [2025-04-24 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:39:04 [end_date_ymd] => 2025-04-24 02:39:04 [RateCDR] => 1 ) [2025-04-24 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:39:04' and `end` < '2025-04-24 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:39:17] Production.INFO: count ==363 [2025-04-24 02:39:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:39:04 - End Time 2025-04-24 02:39:04 [2025-04-24 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976603', 'tblTempUsageDetail_20' ) start [2025-04-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976603', 'tblTempUsageDetail_20' ) end [2025-04-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976603', 'tblTempVendorCDR_20' ) start [2025-04-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976603', 'tblTempVendorCDR_20' ) end [2025-04-24 02:39:17] Production.INFO: ProcessCDR(1,14976603,1,1,2) [2025-04-24 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976603', 'tblTempUsageDetail_20' ) start [2025-04-24 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976603', 'tblTempUsageDetail_20' ) end [2025-04-24 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:39:20] Production.INFO: ==22802== Releasing lock... [2025-04-24 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:39:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:40:06 [end_date_ymd] => 2025-04-24 02:40:06 [RateCDR] => 1 ) [2025-04-24 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:40:06' and `end` < '2025-04-24 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:40:18] Production.INFO: count ==369 [2025-04-24 02:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:40:06 - End Time 2025-04-24 02:40:06 [2025-04-24 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976608', 'tblTempUsageDetail_20' ) start [2025-04-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976608', 'tblTempUsageDetail_20' ) end [2025-04-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976608', 'tblTempVendorCDR_20' ) start [2025-04-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976608', 'tblTempVendorCDR_20' ) end [2025-04-24 02:40:18] Production.INFO: ProcessCDR(1,14976608,1,1,2) [2025-04-24 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976608', 'tblTempUsageDetail_20' ) start [2025-04-24 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976608', 'tblTempUsageDetail_20' ) end [2025-04-24 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:40:22] Production.INFO: ==22875== Releasing lock... [2025-04-24 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:40:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:41:05 [end_date_ymd] => 2025-04-24 02:41:05 [RateCDR] => 1 ) [2025-04-24 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:41:05' and `end` < '2025-04-24 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:41:18] Production.INFO: count ==374 [2025-04-24 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:41:05 - End Time 2025-04-24 02:41:05 [2025-04-24 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976614', 'tblTempUsageDetail_20' ) start [2025-04-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976614', 'tblTempUsageDetail_20' ) end [2025-04-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976614', 'tblTempVendorCDR_20' ) start [2025-04-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976614', 'tblTempVendorCDR_20' ) end [2025-04-24 02:41:18] Production.INFO: ProcessCDR(1,14976614,1,1,2) [2025-04-24 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976614', 'tblTempUsageDetail_20' ) start [2025-04-24 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976614', 'tblTempUsageDetail_20' ) end [2025-04-24 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:41:21] Production.INFO: ==22960== Releasing lock... [2025-04-24 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:42:05 [end_date_ymd] => 2025-04-24 02:42:05 [RateCDR] => 1 ) [2025-04-24 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:42:05' and `end` < '2025-04-24 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:42:17] Production.INFO: count ==372 [2025-04-24 02:42:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:42:05 - End Time 2025-04-24 02:42:05 [2025-04-24 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976619', 'tblTempUsageDetail_20' ) start [2025-04-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976619', 'tblTempUsageDetail_20' ) end [2025-04-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976619', 'tblTempVendorCDR_20' ) start [2025-04-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976619', 'tblTempVendorCDR_20' ) end [2025-04-24 02:42:17] Production.INFO: ProcessCDR(1,14976619,1,1,2) [2025-04-24 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976619', 'tblTempUsageDetail_20' ) start [2025-04-24 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976619', 'tblTempUsageDetail_20' ) end [2025-04-24 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:42:21] Production.INFO: ==23047== Releasing lock... [2025-04-24 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:43:05 [end_date_ymd] => 2025-04-24 02:43:05 [RateCDR] => 1 ) [2025-04-24 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:43:05' and `end` < '2025-04-24 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:43:17] Production.INFO: count ==370 [2025-04-24 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:43:05 - End Time 2025-04-24 02:43:05 [2025-04-24 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976624', 'tblTempUsageDetail_20' ) start [2025-04-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976624', 'tblTempUsageDetail_20' ) end [2025-04-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976624', 'tblTempVendorCDR_20' ) start [2025-04-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976624', 'tblTempVendorCDR_20' ) end [2025-04-24 02:43:18] Production.INFO: ProcessCDR(1,14976624,1,1,2) [2025-04-24 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976624', 'tblTempUsageDetail_20' ) start [2025-04-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976624', 'tblTempUsageDetail_20' ) end [2025-04-24 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:43:21] Production.INFO: ==23134== Releasing lock... [2025-04-24 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:43:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:44:05 [end_date_ymd] => 2025-04-24 02:44:05 [RateCDR] => 1 ) [2025-04-24 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:44:05' and `end` < '2025-04-24 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:44:18] Production.INFO: count ==368 [2025-04-24 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:44:05 - End Time 2025-04-24 02:44:05 [2025-04-24 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976629', 'tblTempUsageDetail_20' ) start [2025-04-24 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976629', 'tblTempUsageDetail_20' ) end [2025-04-24 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976629', 'tblTempVendorCDR_20' ) start [2025-04-24 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976629', 'tblTempVendorCDR_20' ) end [2025-04-24 02:44:18] Production.INFO: ProcessCDR(1,14976629,1,1,2) [2025-04-24 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976629', 'tblTempUsageDetail_20' ) start [2025-04-24 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976629', 'tblTempUsageDetail_20' ) end [2025-04-24 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:44:21] Production.INFO: ==23223== Releasing lock... [2025-04-24 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:45:05 [end_date_ymd] => 2025-04-24 02:45:05 [RateCDR] => 1 ) [2025-04-24 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:45:05' and `end` < '2025-04-24 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:45:18] Production.INFO: count ==365 [2025-04-24 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:45:05 - End Time 2025-04-24 02:45:05 [2025-04-24 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976634', 'tblTempUsageDetail_20' ) start [2025-04-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976634', 'tblTempUsageDetail_20' ) end [2025-04-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976634', 'tblTempVendorCDR_20' ) start [2025-04-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976634', 'tblTempVendorCDR_20' ) end [2025-04-24 02:45:18] Production.INFO: ProcessCDR(1,14976634,1,1,2) [2025-04-24 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976634', 'tblTempUsageDetail_20' ) start [2025-04-24 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976634', 'tblTempUsageDetail_20' ) end [2025-04-24 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:45:21] Production.INFO: ==23310== Releasing lock... [2025-04-24 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:46:05 [end_date_ymd] => 2025-04-24 02:46:05 [RateCDR] => 1 ) [2025-04-24 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:46:05' and `end` < '2025-04-24 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:46:17] Production.INFO: count ==362 [2025-04-24 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:46:05 - End Time 2025-04-24 02:46:05 [2025-04-24 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976639', 'tblTempUsageDetail_20' ) start [2025-04-24 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976639', 'tblTempUsageDetail_20' ) end [2025-04-24 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976639', 'tblTempVendorCDR_20' ) start [2025-04-24 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976639', 'tblTempVendorCDR_20' ) end [2025-04-24 02:46:18] Production.INFO: ProcessCDR(1,14976639,1,1,2) [2025-04-24 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976639', 'tblTempUsageDetail_20' ) start [2025-04-24 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976639', 'tblTempUsageDetail_20' ) end [2025-04-24 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:46:21] Production.INFO: ==23398== Releasing lock... [2025-04-24 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:47:05 [end_date_ymd] => 2025-04-24 02:47:05 [RateCDR] => 1 ) [2025-04-24 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:47:05' and `end` < '2025-04-24 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-04-24 02:47:17] Production.INFO: count ==361 [2025-04-24 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:47:05 - End Time 2025-04-24 02:47:05 [2025-04-24 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976644', 'tblTempUsageDetail_20' ) start [2025-04-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976644', 'tblTempUsageDetail_20' ) end [2025-04-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976644', 'tblTempVendorCDR_20' ) start [2025-04-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976644', 'tblTempVendorCDR_20' ) end [2025-04-24 02:47:18] Production.INFO: ProcessCDR(1,14976644,1,1,2) [2025-04-24 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976644', 'tblTempUsageDetail_20' ) start [2025-04-24 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976644', 'tblTempUsageDetail_20' ) end [2025-04-24 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:47:21] Production.INFO: ==23481== Releasing lock... [2025-04-24 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:48:05 [end_date_ymd] => 2025-04-24 02:48:05 [RateCDR] => 1 ) [2025-04-24 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:48:05' and `end` < '2025-04-24 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:48:18] Production.INFO: count ==359 [2025-04-24 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:48:05 - End Time 2025-04-24 02:48:05 [2025-04-24 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976649', 'tblTempUsageDetail_20' ) start [2025-04-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976649', 'tblTempUsageDetail_20' ) end [2025-04-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976649', 'tblTempVendorCDR_20' ) start [2025-04-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976649', 'tblTempVendorCDR_20' ) end [2025-04-24 02:48:18] Production.INFO: ProcessCDR(1,14976649,1,1,2) [2025-04-24 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976649', 'tblTempUsageDetail_20' ) start [2025-04-24 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976649', 'tblTempUsageDetail_20' ) end [2025-04-24 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:48:21] Production.INFO: ==23595== Releasing lock... [2025-04-24 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:49:05 [end_date_ymd] => 2025-04-24 02:49:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:49:05' and `end` < '2025-04-24 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-04-24 02:49:17] Production.INFO: count ==358 [2025-04-24 02:49:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:49:05 - End Time 2025-04-24 02:49:05 [2025-04-24 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976654', 'tblTempUsageDetail_20' ) start [2025-04-24 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976654', 'tblTempUsageDetail_20' ) end [2025-04-24 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976654', 'tblTempVendorCDR_20' ) start [2025-04-24 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976654', 'tblTempVendorCDR_20' ) end [2025-04-24 02:49:17] Production.INFO: ProcessCDR(1,14976654,1,1,2) [2025-04-24 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976654', 'tblTempUsageDetail_20' ) start [2025-04-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976654', 'tblTempUsageDetail_20' ) end [2025-04-24 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:49:21] Production.INFO: ==23670== Releasing lock... [2025-04-24 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:50:05 [end_date_ymd] => 2025-04-24 02:50:05 [RateCDR] => 1 ) [2025-04-24 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:50:05' and `end` < '2025-04-24 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:50:18] Production.INFO: count ==365 [2025-04-24 02:50:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:50:05 - End Time 2025-04-24 02:50:05 [2025-04-24 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976659', 'tblTempUsageDetail_20' ) start [2025-04-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976659', 'tblTempUsageDetail_20' ) end [2025-04-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976659', 'tblTempVendorCDR_20' ) start [2025-04-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976659', 'tblTempVendorCDR_20' ) end [2025-04-24 02:50:18] Production.INFO: ProcessCDR(1,14976659,1,1,2) [2025-04-24 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976659', 'tblTempUsageDetail_20' ) start [2025-04-24 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976659', 'tblTempUsageDetail_20' ) end [2025-04-24 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:50:21] Production.INFO: ==23753== Releasing lock... [2025-04-24 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:50:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:51:05 [end_date_ymd] => 2025-04-24 02:51:05 [RateCDR] => 1 ) [2025-04-24 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:51:05' and `end` < '2025-04-24 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:51:17] Production.INFO: count ==376 [2025-04-24 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:51:05 - End Time 2025-04-24 02:51:05 [2025-04-24 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976665', 'tblTempUsageDetail_20' ) start [2025-04-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976665', 'tblTempUsageDetail_20' ) end [2025-04-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976665', 'tblTempVendorCDR_20' ) start [2025-04-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976665', 'tblTempVendorCDR_20' ) end [2025-04-24 02:51:18] Production.INFO: ProcessCDR(1,14976665,1,1,2) [2025-04-24 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976665', 'tblTempUsageDetail_20' ) start [2025-04-24 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976665', 'tblTempUsageDetail_20' ) end [2025-04-24 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:51:21] Production.INFO: ==23827== Releasing lock... [2025-04-24 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:52:05 [end_date_ymd] => 2025-04-24 02:52:05 [RateCDR] => 1 ) [2025-04-24 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:52:05' and `end` < '2025-04-24 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:52:18] Production.INFO: count ==390 [2025-04-24 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:52:05 - End Time 2025-04-24 02:52:05 [2025-04-24 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976670', 'tblTempUsageDetail_20' ) start [2025-04-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976670', 'tblTempUsageDetail_20' ) end [2025-04-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976670', 'tblTempVendorCDR_20' ) start [2025-04-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976670', 'tblTempVendorCDR_20' ) end [2025-04-24 02:52:18] Production.INFO: ProcessCDR(1,14976670,1,1,2) [2025-04-24 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976670', 'tblTempUsageDetail_20' ) start [2025-04-24 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976670', 'tblTempUsageDetail_20' ) end [2025-04-24 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:52:22] Production.INFO: ==23902== Releasing lock... [2025-04-24 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:53:05 [end_date_ymd] => 2025-04-24 02:53:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:53:05' and `end` < '2025-04-24 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:53:17] Production.INFO: count ==386 [2025-04-24 02:53:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:53:05 - End Time 2025-04-24 02:53:05 [2025-04-24 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976675', 'tblTempUsageDetail_20' ) start [2025-04-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976675', 'tblTempUsageDetail_20' ) end [2025-04-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976675', 'tblTempVendorCDR_20' ) start [2025-04-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976675', 'tblTempVendorCDR_20' ) end [2025-04-24 02:53:17] Production.INFO: ProcessCDR(1,14976675,1,1,2) [2025-04-24 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976675', 'tblTempUsageDetail_20' ) start [2025-04-24 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976675', 'tblTempUsageDetail_20' ) end [2025-04-24 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:53:21] Production.INFO: ==23985== Releasing lock... [2025-04-24 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:54:05 [end_date_ymd] => 2025-04-24 02:54:05 [RateCDR] => 1 ) [2025-04-24 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:54:05' and `end` < '2025-04-24 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:54:18] Production.INFO: count ==385 [2025-04-24 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:54:05 - End Time 2025-04-24 02:54:05 [2025-04-24 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976680', 'tblTempUsageDetail_20' ) start [2025-04-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976680', 'tblTempUsageDetail_20' ) end [2025-04-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976680', 'tblTempVendorCDR_20' ) start [2025-04-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976680', 'tblTempVendorCDR_20' ) end [2025-04-24 02:54:18] Production.INFO: ProcessCDR(1,14976680,1,1,2) [2025-04-24 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976680', 'tblTempUsageDetail_20' ) start [2025-04-24 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976680', 'tblTempUsageDetail_20' ) end [2025-04-24 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:54:21] Production.INFO: ==24060== Releasing lock... [2025-04-24 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:55:06 [end_date_ymd] => 2025-04-24 02:55:06 [RateCDR] => 1 ) [2025-04-24 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:55:06' and `end` < '2025-04-24 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:55:18] Production.INFO: count ==383 [2025-04-24 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:55:06 - End Time 2025-04-24 02:55:06 [2025-04-24 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976685', 'tblTempUsageDetail_20' ) start [2025-04-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976685', 'tblTempUsageDetail_20' ) end [2025-04-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976685', 'tblTempVendorCDR_20' ) start [2025-04-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976685', 'tblTempVendorCDR_20' ) end [2025-04-24 02:55:18] Production.INFO: ProcessCDR(1,14976685,1,1,2) [2025-04-24 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976685', 'tblTempUsageDetail_20' ) start [2025-04-24 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976685', 'tblTempUsageDetail_20' ) end [2025-04-24 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:55:22] Production.INFO: ==24138== Releasing lock... [2025-04-24 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:56:05 [end_date_ymd] => 2025-04-24 02:56:05 [RateCDR] => 1 ) [2025-04-24 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-04-23 23:56:05' and `end` < '2025-04-24 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-04-24 02:56:17] Production.INFO: count ==381 [2025-04-24 02:56:17] Production.ERROR: pbx CDR StartTime 2025-04-23 23:56:05 - End Time 2025-04-24 02:56:05 [2025-04-24 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976690', 'tblTempUsageDetail_20' ) start [2025-04-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976690', 'tblTempUsageDetail_20' ) end [2025-04-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976690', 'tblTempVendorCDR_20' ) start [2025-04-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976690', 'tblTempVendorCDR_20' ) end [2025-04-24 02:56:17] Production.INFO: ProcessCDR(1,14976690,1,1,2) [2025-04-24 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976690', 'tblTempUsageDetail_20' ) start [2025-04-24 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976690', 'tblTempUsageDetail_20' ) end [2025-04-24 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:56:21] Production.INFO: ==24212== Releasing lock... [2025-04-24 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:57:05 [end_date_ymd] => 2025-04-24 02:57:05 [RateCDR] => 1 ) [2025-04-24 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:57:05' and `end` < '2025-04-24 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:57:18] Production.INFO: count ==381 [2025-04-24 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:57:05 - End Time 2025-04-24 02:57:05 [2025-04-24 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976695', 'tblTempUsageDetail_20' ) start [2025-04-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976695', 'tblTempUsageDetail_20' ) end [2025-04-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976695', 'tblTempVendorCDR_20' ) start [2025-04-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976695', 'tblTempVendorCDR_20' ) end [2025-04-24 02:57:18] Production.INFO: ProcessCDR(1,14976695,1,1,2) [2025-04-24 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976695', 'tblTempUsageDetail_20' ) start [2025-04-24 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976695', 'tblTempUsageDetail_20' ) end [2025-04-24 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:57:21] Production.INFO: ==24284== Releasing lock... [2025-04-24 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:58:05 [end_date_ymd] => 2025-04-24 02:58:05 [RateCDR] => 1 ) [2025-04-24 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:58:05' and `end` < '2025-04-24 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:58:18] Production.INFO: count ==390 [2025-04-24 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:58:05 - End Time 2025-04-24 02:58:05 [2025-04-24 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976700', 'tblTempUsageDetail_20' ) start [2025-04-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976700', 'tblTempUsageDetail_20' ) end [2025-04-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976700', 'tblTempVendorCDR_20' ) start [2025-04-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976700', 'tblTempVendorCDR_20' ) end [2025-04-24 02:58:18] Production.INFO: ProcessCDR(1,14976700,1,1,2) [2025-04-24 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976700', 'tblTempUsageDetail_20' ) start [2025-04-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976700', 'tblTempUsageDetail_20' ) end [2025-04-24 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:58:21] Production.INFO: ==24362== Releasing lock... [2025-04-24 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 23:59:05 [end_date_ymd] => 2025-04-24 02:59:05 [RateCDR] => 1 ) [2025-04-24 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 23:59:05' and `end` < '2025-04-24 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 02:59:18] Production.INFO: count ==389 [2025-04-24 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 23:59:05 - End Time 2025-04-24 02:59:05 [2025-04-24 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976705', 'tblTempUsageDetail_20' ) start [2025-04-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976705', 'tblTempUsageDetail_20' ) end [2025-04-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976705', 'tblTempVendorCDR_20' ) start [2025-04-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976705', 'tblTempVendorCDR_20' ) end [2025-04-24 02:59:18] Production.INFO: ProcessCDR(1,14976705,1,1,2) [2025-04-24 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 02:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976705', 'tblTempUsageDetail_20' ) start [2025-04-24 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976705', 'tblTempUsageDetail_20' ) end [2025-04-24 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 02:59:23] Production.INFO: ==24443== Releasing lock... [2025-04-24 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 02:59:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:00:06 [end_date_ymd] => 2025-04-24 03:00:06 [RateCDR] => 1 ) [2025-04-24 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:00:06' and `end` < '2025-04-24 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:00:18] Production.INFO: count ==400 [2025-04-24 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:00:06 - End Time 2025-04-24 03:00:06 [2025-04-24 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976710', 'tblTempUsageDetail_20' ) start [2025-04-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976710', 'tblTempUsageDetail_20' ) end [2025-04-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976710', 'tblTempVendorCDR_20' ) start [2025-04-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976710', 'tblTempVendorCDR_20' ) end [2025-04-24 03:00:19] Production.INFO: ProcessCDR(1,14976710,1,1,2) [2025-04-24 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976710', 'tblTempUsageDetail_20' ) start [2025-04-24 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976710', 'tblTempUsageDetail_20' ) end [2025-04-24 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:00:24] Production.INFO: ==24521== Releasing lock... [2025-04-24 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:00:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:01:05 [end_date_ymd] => 2025-04-24 03:01:05 [RateCDR] => 1 ) [2025-04-24 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:01:05' and `end` < '2025-04-24 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:01:17] Production.INFO: count ==401 [2025-04-24 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:01:05 - End Time 2025-04-24 03:01:05 [2025-04-24 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976716', 'tblTempUsageDetail_20' ) start [2025-04-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976716', 'tblTempUsageDetail_20' ) end [2025-04-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976716', 'tblTempVendorCDR_20' ) start [2025-04-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976716', 'tblTempVendorCDR_20' ) end [2025-04-24 03:01:18] Production.INFO: ProcessCDR(1,14976716,1,1,2) [2025-04-24 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976716', 'tblTempUsageDetail_20' ) start [2025-04-24 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976716', 'tblTempUsageDetail_20' ) end [2025-04-24 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:01:21] Production.INFO: ==24614== Releasing lock... [2025-04-24 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:02:05 [end_date_ymd] => 2025-04-24 03:02:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:02:05' and `end` < '2025-04-24 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-04-24 03:02:17] Production.INFO: count ==403 [2025-04-24 03:02:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:02:05 - End Time 2025-04-24 03:02:05 [2025-04-24 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976721', 'tblTempUsageDetail_20' ) start [2025-04-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976721', 'tblTempUsageDetail_20' ) end [2025-04-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976721', 'tblTempVendorCDR_20' ) start [2025-04-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976721', 'tblTempVendorCDR_20' ) end [2025-04-24 03:02:17] Production.INFO: ProcessCDR(1,14976721,1,1,2) [2025-04-24 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976721', 'tblTempUsageDetail_20' ) start [2025-04-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976721', 'tblTempUsageDetail_20' ) end [2025-04-24 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:02:21] Production.INFO: ==24767== Releasing lock... [2025-04-24 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:03:05 [end_date_ymd] => 2025-04-24 03:03:05 [RateCDR] => 1 ) [2025-04-24 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:03:05' and `end` < '2025-04-24 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:03:18] Production.INFO: count ==408 [2025-04-24 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:03:05 - End Time 2025-04-24 03:03:05 [2025-04-24 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976726', 'tblTempUsageDetail_20' ) start [2025-04-24 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976726', 'tblTempUsageDetail_20' ) end [2025-04-24 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976726', 'tblTempVendorCDR_20' ) start [2025-04-24 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976726', 'tblTempVendorCDR_20' ) end [2025-04-24 03:03:18] Production.INFO: ProcessCDR(1,14976726,1,1,2) [2025-04-24 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976726', 'tblTempUsageDetail_20' ) start [2025-04-24 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976726', 'tblTempUsageDetail_20' ) end [2025-04-24 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:03:21] Production.INFO: ==24889== Releasing lock... [2025-04-24 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:04:06 [end_date_ymd] => 2025-04-24 03:04:06 [RateCDR] => 1 ) [2025-04-24 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:04:06' and `end` < '2025-04-24 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:04:18] Production.INFO: count ==408 [2025-04-24 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:04:06 - End Time 2025-04-24 03:04:06 [2025-04-24 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976731', 'tblTempUsageDetail_20' ) start [2025-04-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976731', 'tblTempUsageDetail_20' ) end [2025-04-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976731', 'tblTempVendorCDR_20' ) start [2025-04-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976731', 'tblTempVendorCDR_20' ) end [2025-04-24 03:04:18] Production.INFO: ProcessCDR(1,14976731,1,1,2) [2025-04-24 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976731', 'tblTempUsageDetail_20' ) start [2025-04-24 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976731', 'tblTempUsageDetail_20' ) end [2025-04-24 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:04:22] Production.INFO: ==24964== Releasing lock... [2025-04-24 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:05:05 [end_date_ymd] => 2025-04-24 03:05:05 [RateCDR] => 1 ) [2025-04-24 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:05:05' and `end` < '2025-04-24 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:05:18] Production.INFO: count ==410 [2025-04-24 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:05:05 - End Time 2025-04-24 03:05:05 [2025-04-24 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976736', 'tblTempUsageDetail_20' ) start [2025-04-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976736', 'tblTempUsageDetail_20' ) end [2025-04-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976736', 'tblTempVendorCDR_20' ) start [2025-04-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976736', 'tblTempVendorCDR_20' ) end [2025-04-24 03:05:18] Production.INFO: ProcessCDR(1,14976736,1,1,2) [2025-04-24 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976736', 'tblTempUsageDetail_20' ) start [2025-04-24 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976736', 'tblTempUsageDetail_20' ) end [2025-04-24 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:05:23] Production.INFO: ==25046== Releasing lock... [2025-04-24 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:05:23] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:06:05 [end_date_ymd] => 2025-04-24 03:06:05 [RateCDR] => 1 ) [2025-04-24 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:06:05' and `end` < '2025-04-24 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:06:18] Production.INFO: count ==408 [2025-04-24 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:06:05 - End Time 2025-04-24 03:06:05 [2025-04-24 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976741', 'tblTempUsageDetail_20' ) start [2025-04-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976741', 'tblTempUsageDetail_20' ) end [2025-04-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976741', 'tblTempVendorCDR_20' ) start [2025-04-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976741', 'tblTempVendorCDR_20' ) end [2025-04-24 03:06:18] Production.INFO: ProcessCDR(1,14976741,1,1,2) [2025-04-24 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976741', 'tblTempUsageDetail_20' ) start [2025-04-24 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976741', 'tblTempUsageDetail_20' ) end [2025-04-24 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:06:21] Production.INFO: ==25198== Releasing lock... [2025-04-24 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:07:04 [end_date_ymd] => 2025-04-24 03:07:04 [RateCDR] => 1 ) [2025-04-24 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:07:04' and `end` < '2025-04-24 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:07:17] Production.INFO: count ==408 [2025-04-24 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:07:04 - End Time 2025-04-24 03:07:04 [2025-04-24 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976746', 'tblTempUsageDetail_20' ) start [2025-04-24 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976746', 'tblTempUsageDetail_20' ) end [2025-04-24 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976746', 'tblTempVendorCDR_20' ) start [2025-04-24 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976746', 'tblTempVendorCDR_20' ) end [2025-04-24 03:07:17] Production.INFO: ProcessCDR(1,14976746,1,1,2) [2025-04-24 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976746', 'tblTempUsageDetail_20' ) start [2025-04-24 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976746', 'tblTempUsageDetail_20' ) end [2025-04-24 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:07:20] Production.INFO: ==25268== Releasing lock... [2025-04-24 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:07:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:08:05 [end_date_ymd] => 2025-04-24 03:08:05 [RateCDR] => 1 ) [2025-04-24 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:08:05' and `end` < '2025-04-24 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:08:18] Production.INFO: count ==412 [2025-04-24 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:08:05 - End Time 2025-04-24 03:08:05 [2025-04-24 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976751', 'tblTempUsageDetail_20' ) start [2025-04-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976751', 'tblTempUsageDetail_20' ) end [2025-04-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976751', 'tblTempVendorCDR_20' ) start [2025-04-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976751', 'tblTempVendorCDR_20' ) end [2025-04-24 03:08:18] Production.INFO: ProcessCDR(1,14976751,1,1,2) [2025-04-24 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976751', 'tblTempUsageDetail_20' ) start [2025-04-24 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976751', 'tblTempUsageDetail_20' ) end [2025-04-24 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:08:23] Production.INFO: ==25347== Releasing lock... [2025-04-24 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:08:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:09:05 [end_date_ymd] => 2025-04-24 03:09:05 [RateCDR] => 1 ) [2025-04-24 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:09:05' and `end` < '2025-04-24 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:09:18] Production.INFO: count ==423 [2025-04-24 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:09:05 - End Time 2025-04-24 03:09:05 [2025-04-24 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976756', 'tblTempUsageDetail_20' ) start [2025-04-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976756', 'tblTempUsageDetail_20' ) end [2025-04-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976756', 'tblTempVendorCDR_20' ) start [2025-04-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976756', 'tblTempVendorCDR_20' ) end [2025-04-24 03:09:18] Production.INFO: ProcessCDR(1,14976756,1,1,2) [2025-04-24 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976756', 'tblTempUsageDetail_20' ) start [2025-04-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976756', 'tblTempUsageDetail_20' ) end [2025-04-24 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:09:21] Production.INFO: ==25509== Releasing lock... [2025-04-24 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:10:06 [end_date_ymd] => 2025-04-24 03:10:06 [RateCDR] => 1 ) [2025-04-24 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:10:06' and `end` < '2025-04-24 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:10:19] Production.INFO: count ==422 [2025-04-24 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 00:10:06 - End Time 2025-04-24 03:10:06 [2025-04-24 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976762', 'tblTempUsageDetail_20' ) start [2025-04-24 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976762', 'tblTempUsageDetail_20' ) end [2025-04-24 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976762', 'tblTempVendorCDR_20' ) start [2025-04-24 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976762', 'tblTempVendorCDR_20' ) end [2025-04-24 03:10:19] Production.INFO: ProcessCDR(1,14976762,1,1,2) [2025-04-24 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976762', 'tblTempUsageDetail_20' ) start [2025-04-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976762', 'tblTempUsageDetail_20' ) end [2025-04-24 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:10:22] Production.INFO: ==25586== Releasing lock... [2025-04-24 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:11:06 [end_date_ymd] => 2025-04-24 03:11:06 [RateCDR] => 1 ) [2025-04-24 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:11:06' and `end` < '2025-04-24 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:11:18] Production.INFO: count ==422 [2025-04-24 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:11:06 - End Time 2025-04-24 03:11:06 [2025-04-24 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976767', 'tblTempUsageDetail_20' ) start [2025-04-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976767', 'tblTempUsageDetail_20' ) end [2025-04-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976767', 'tblTempVendorCDR_20' ) start [2025-04-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976767', 'tblTempVendorCDR_20' ) end [2025-04-24 03:11:18] Production.INFO: ProcessCDR(1,14976767,1,1,2) [2025-04-24 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976767', 'tblTempUsageDetail_20' ) start [2025-04-24 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976767', 'tblTempUsageDetail_20' ) end [2025-04-24 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:11:22] Production.INFO: ==25662== Releasing lock... [2025-04-24 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:12:05 [end_date_ymd] => 2025-04-24 03:12:05 [RateCDR] => 1 ) [2025-04-24 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:12:05' and `end` < '2025-04-24 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:12:18] Production.INFO: count ==422 [2025-04-24 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:12:05 - End Time 2025-04-24 03:12:05 [2025-04-24 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976772', 'tblTempUsageDetail_20' ) start [2025-04-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976772', 'tblTempUsageDetail_20' ) end [2025-04-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976772', 'tblTempVendorCDR_20' ) start [2025-04-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976772', 'tblTempVendorCDR_20' ) end [2025-04-24 03:12:18] Production.INFO: ProcessCDR(1,14976772,1,1,2) [2025-04-24 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976772', 'tblTempUsageDetail_20' ) start [2025-04-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976772', 'tblTempUsageDetail_20' ) end [2025-04-24 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:12:21] Production.INFO: ==25732== Releasing lock... [2025-04-24 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:13:05 [end_date_ymd] => 2025-04-24 03:13:05 [RateCDR] => 1 ) [2025-04-24 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:13:05' and `end` < '2025-04-24 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:13:18] Production.INFO: count ==421 [2025-04-24 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:13:05 - End Time 2025-04-24 03:13:05 [2025-04-24 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976777', 'tblTempUsageDetail_20' ) start [2025-04-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976777', 'tblTempUsageDetail_20' ) end [2025-04-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976777', 'tblTempVendorCDR_20' ) start [2025-04-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976777', 'tblTempVendorCDR_20' ) end [2025-04-24 03:13:18] Production.INFO: ProcessCDR(1,14976777,1,1,2) [2025-04-24 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976777', 'tblTempUsageDetail_20' ) start [2025-04-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976777', 'tblTempUsageDetail_20' ) end [2025-04-24 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:13:21] Production.INFO: ==25881== Releasing lock... [2025-04-24 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:14:05 [end_date_ymd] => 2025-04-24 03:14:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:14:05' and `end` < '2025-04-24 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-04-24 03:14:18] Production.INFO: count ==420 [2025-04-24 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:14:05 - End Time 2025-04-24 03:14:05 [2025-04-24 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976782', 'tblTempUsageDetail_20' ) start [2025-04-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976782', 'tblTempUsageDetail_20' ) end [2025-04-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976782', 'tblTempVendorCDR_20' ) start [2025-04-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976782', 'tblTempVendorCDR_20' ) end [2025-04-24 03:14:18] Production.INFO: ProcessCDR(1,14976782,1,1,2) [2025-04-24 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976782', 'tblTempUsageDetail_20' ) start [2025-04-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976782', 'tblTempUsageDetail_20' ) end [2025-04-24 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:14:21] Production.INFO: ==25954== Releasing lock... [2025-04-24 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:15:05 [end_date_ymd] => 2025-04-24 03:15:05 [RateCDR] => 1 ) [2025-04-24 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:15:05' and `end` < '2025-04-24 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:15:18] Production.INFO: count ==417 [2025-04-24 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:15:05 - End Time 2025-04-24 03:15:05 [2025-04-24 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976787', 'tblTempUsageDetail_20' ) start [2025-04-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976787', 'tblTempUsageDetail_20' ) end [2025-04-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976787', 'tblTempVendorCDR_20' ) start [2025-04-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976787', 'tblTempVendorCDR_20' ) end [2025-04-24 03:15:18] Production.INFO: ProcessCDR(1,14976787,1,1,2) [2025-04-24 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976787', 'tblTempUsageDetail_20' ) start [2025-04-24 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976787', 'tblTempUsageDetail_20' ) end [2025-04-24 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:15:21] Production.INFO: ==26027== Releasing lock... [2025-04-24 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:16:06 [end_date_ymd] => 2025-04-24 03:16:06 [RateCDR] => 1 ) [2025-04-24 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:16:06' and `end` < '2025-04-24 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:16:18] Production.INFO: count ==416 [2025-04-24 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:16:06 - End Time 2025-04-24 03:16:06 [2025-04-24 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976792', 'tblTempUsageDetail_20' ) start [2025-04-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976792', 'tblTempUsageDetail_20' ) end [2025-04-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976792', 'tblTempVendorCDR_20' ) start [2025-04-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976792', 'tblTempVendorCDR_20' ) end [2025-04-24 03:16:18] Production.INFO: ProcessCDR(1,14976792,1,1,2) [2025-04-24 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976792', 'tblTempUsageDetail_20' ) start [2025-04-24 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976792', 'tblTempUsageDetail_20' ) end [2025-04-24 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:16:22] Production.INFO: ==26100== Releasing lock... [2025-04-24 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:17:05 [end_date_ymd] => 2025-04-24 03:17:05 [RateCDR] => 1 ) [2025-04-24 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:17:05' and `end` < '2025-04-24 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:17:18] Production.INFO: count ==415 [2025-04-24 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:17:05 - End Time 2025-04-24 03:17:05 [2025-04-24 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976797', 'tblTempUsageDetail_20' ) start [2025-04-24 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976797', 'tblTempUsageDetail_20' ) end [2025-04-24 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976797', 'tblTempVendorCDR_20' ) start [2025-04-24 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976797', 'tblTempVendorCDR_20' ) end [2025-04-24 03:17:18] Production.INFO: ProcessCDR(1,14976797,1,1,2) [2025-04-24 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976797', 'tblTempUsageDetail_20' ) start [2025-04-24 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976797', 'tblTempUsageDetail_20' ) end [2025-04-24 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:17:21] Production.INFO: ==26255== Releasing lock... [2025-04-24 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:18:05 [end_date_ymd] => 2025-04-24 03:18:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:18:05' and `end` < '2025-04-24 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-04-24 03:18:18] Production.INFO: count ==408 [2025-04-24 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:18:05 - End Time 2025-04-24 03:18:05 [2025-04-24 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976802', 'tblTempUsageDetail_20' ) start [2025-04-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976802', 'tblTempUsageDetail_20' ) end [2025-04-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976802', 'tblTempVendorCDR_20' ) start [2025-04-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976802', 'tblTempVendorCDR_20' ) end [2025-04-24 03:18:18] Production.INFO: ProcessCDR(1,14976802,1,1,2) [2025-04-24 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976802', 'tblTempUsageDetail_20' ) start [2025-04-24 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976802', 'tblTempUsageDetail_20' ) end [2025-04-24 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:18:22] Production.INFO: ==26324== Releasing lock... [2025-04-24 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:19:05 [end_date_ymd] => 2025-04-24 03:19:05 [RateCDR] => 1 ) [2025-04-24 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:19:05' and `end` < '2025-04-24 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:19:17] Production.INFO: count ==405 [2025-04-24 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:19:05 - End Time 2025-04-24 03:19:05 [2025-04-24 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976807', 'tblTempUsageDetail_20' ) start [2025-04-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976807', 'tblTempUsageDetail_20' ) end [2025-04-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976807', 'tblTempVendorCDR_20' ) start [2025-04-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976807', 'tblTempVendorCDR_20' ) end [2025-04-24 03:19:18] Production.INFO: ProcessCDR(1,14976807,1,1,2) [2025-04-24 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976807', 'tblTempUsageDetail_20' ) start [2025-04-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976807', 'tblTempUsageDetail_20' ) end [2025-04-24 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:19:21] Production.INFO: ==26396== Releasing lock... [2025-04-24 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:20:06 [end_date_ymd] => 2025-04-24 03:20:06 [RateCDR] => 1 ) [2025-04-24 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:20:06' and `end` < '2025-04-24 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:20:19] Production.INFO: count ==392 [2025-04-24 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 00:20:06 - End Time 2025-04-24 03:20:06 [2025-04-24 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976813', 'tblTempUsageDetail_20' ) start [2025-04-24 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976813', 'tblTempUsageDetail_20' ) end [2025-04-24 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976813', 'tblTempVendorCDR_20' ) start [2025-04-24 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976813', 'tblTempVendorCDR_20' ) end [2025-04-24 03:20:19] Production.INFO: ProcessCDR(1,14976813,1,1,2) [2025-04-24 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976813', 'tblTempUsageDetail_20' ) start [2025-04-24 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976813', 'tblTempUsageDetail_20' ) end [2025-04-24 03:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:20:24] Production.INFO: ==26506== Releasing lock... [2025-04-24 03:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:20:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:21:05 [end_date_ymd] => 2025-04-24 03:21:05 [RateCDR] => 1 ) [2025-04-24 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:21:05' and `end` < '2025-04-24 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:21:17] Production.INFO: count ==385 [2025-04-24 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:21:05 - End Time 2025-04-24 03:21:05 [2025-04-24 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976818', 'tblTempUsageDetail_20' ) start [2025-04-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976818', 'tblTempUsageDetail_20' ) end [2025-04-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976818', 'tblTempVendorCDR_20' ) start [2025-04-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976818', 'tblTempVendorCDR_20' ) end [2025-04-24 03:21:17] Production.INFO: ProcessCDR(1,14976818,1,1,2) [2025-04-24 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976818', 'tblTempUsageDetail_20' ) start [2025-04-24 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976818', 'tblTempUsageDetail_20' ) end [2025-04-24 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:21:21] Production.INFO: ==26576== Releasing lock... [2025-04-24 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:22:06 [end_date_ymd] => 2025-04-24 03:22:06 [RateCDR] => 1 ) [2025-04-24 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:22:06' and `end` < '2025-04-24 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:22:18] Production.INFO: count ==384 [2025-04-24 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:22:06 - End Time 2025-04-24 03:22:06 [2025-04-24 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976823', 'tblTempUsageDetail_20' ) start [2025-04-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976823', 'tblTempUsageDetail_20' ) end [2025-04-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976823', 'tblTempVendorCDR_20' ) start [2025-04-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976823', 'tblTempVendorCDR_20' ) end [2025-04-24 03:22:18] Production.INFO: ProcessCDR(1,14976823,1,1,2) [2025-04-24 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976823', 'tblTempUsageDetail_20' ) start [2025-04-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976823', 'tblTempUsageDetail_20' ) end [2025-04-24 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:22:22] Production.INFO: ==26650== Releasing lock... [2025-04-24 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:23:05 [end_date_ymd] => 2025-04-24 03:23:05 [RateCDR] => 1 ) [2025-04-24 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:23:05' and `end` < '2025-04-24 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:23:17] Production.INFO: count ==384 [2025-04-24 03:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:23:05 - End Time 2025-04-24 03:23:05 [2025-04-24 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976828', 'tblTempUsageDetail_20' ) start [2025-04-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976828', 'tblTempUsageDetail_20' ) end [2025-04-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976828', 'tblTempVendorCDR_20' ) start [2025-04-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976828', 'tblTempVendorCDR_20' ) end [2025-04-24 03:23:17] Production.INFO: ProcessCDR(1,14976828,1,1,2) [2025-04-24 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976828', 'tblTempUsageDetail_20' ) start [2025-04-24 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976828', 'tblTempUsageDetail_20' ) end [2025-04-24 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:23:21] Production.INFO: ==26719== Releasing lock... [2025-04-24 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:24:05 [end_date_ymd] => 2025-04-24 03:24:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:24:05' and `end` < '2025-04-24 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-04-24 03:24:18] Production.INFO: count ==381 [2025-04-24 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:24:05 - End Time 2025-04-24 03:24:05 [2025-04-24 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976833', 'tblTempUsageDetail_20' ) start [2025-04-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976833', 'tblTempUsageDetail_20' ) end [2025-04-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976833', 'tblTempVendorCDR_20' ) start [2025-04-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976833', 'tblTempVendorCDR_20' ) end [2025-04-24 03:24:18] Production.INFO: ProcessCDR(1,14976833,1,1,2) [2025-04-24 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976833', 'tblTempUsageDetail_20' ) start [2025-04-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976833', 'tblTempUsageDetail_20' ) end [2025-04-24 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:24:21] Production.INFO: ==26795== Releasing lock... [2025-04-24 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:24:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:25:05 [end_date_ymd] => 2025-04-24 03:25:05 [RateCDR] => 1 ) [2025-04-24 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:25:05' and `end` < '2025-04-24 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:25:18] Production.INFO: count ==379 [2025-04-24 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:25:05 - End Time 2025-04-24 03:25:05 [2025-04-24 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976838', 'tblTempUsageDetail_20' ) start [2025-04-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976838', 'tblTempUsageDetail_20' ) end [2025-04-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976838', 'tblTempVendorCDR_20' ) start [2025-04-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976838', 'tblTempVendorCDR_20' ) end [2025-04-24 03:25:18] Production.INFO: ProcessCDR(1,14976838,1,1,2) [2025-04-24 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976838', 'tblTempUsageDetail_20' ) start [2025-04-24 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976838', 'tblTempUsageDetail_20' ) end [2025-04-24 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:25:22] Production.INFO: ==26866== Releasing lock... [2025-04-24 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:26:05 [end_date_ymd] => 2025-04-24 03:26:05 [RateCDR] => 1 ) [2025-04-24 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:26:05' and `end` < '2025-04-24 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:26:17] Production.INFO: count ==377 [2025-04-24 03:26:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:26:05 - End Time 2025-04-24 03:26:05 [2025-04-24 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976843', 'tblTempUsageDetail_20' ) start [2025-04-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976843', 'tblTempUsageDetail_20' ) end [2025-04-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976843', 'tblTempVendorCDR_20' ) start [2025-04-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976843', 'tblTempVendorCDR_20' ) end [2025-04-24 03:26:17] Production.INFO: ProcessCDR(1,14976843,1,1,2) [2025-04-24 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976843', 'tblTempUsageDetail_20' ) start [2025-04-24 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976843', 'tblTempUsageDetail_20' ) end [2025-04-24 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:26:21] Production.INFO: ==26934== Releasing lock... [2025-04-24 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:27:06 [end_date_ymd] => 2025-04-24 03:27:06 [RateCDR] => 1 ) [2025-04-24 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:27:06' and `end` < '2025-04-24 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:27:18] Production.INFO: count ==374 [2025-04-24 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:27:06 - End Time 2025-04-24 03:27:06 [2025-04-24 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976848', 'tblTempUsageDetail_20' ) start [2025-04-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976848', 'tblTempUsageDetail_20' ) end [2025-04-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976848', 'tblTempVendorCDR_20' ) start [2025-04-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976848', 'tblTempVendorCDR_20' ) end [2025-04-24 03:27:18] Production.INFO: ProcessCDR(1,14976848,1,1,2) [2025-04-24 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976848', 'tblTempUsageDetail_20' ) start [2025-04-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976848', 'tblTempUsageDetail_20' ) end [2025-04-24 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:27:21] Production.INFO: ==27006== Releasing lock... [2025-04-24 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:28:05 [end_date_ymd] => 2025-04-24 03:28:05 [RateCDR] => 1 ) [2025-04-24 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:28:05' and `end` < '2025-04-24 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:28:17] Production.INFO: count ==372 [2025-04-24 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:28:05 - End Time 2025-04-24 03:28:05 [2025-04-24 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976853', 'tblTempUsageDetail_20' ) start [2025-04-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976853', 'tblTempUsageDetail_20' ) end [2025-04-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976853', 'tblTempVendorCDR_20' ) start [2025-04-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976853', 'tblTempVendorCDR_20' ) end [2025-04-24 03:28:17] Production.INFO: ProcessCDR(1,14976853,1,1,2) [2025-04-24 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976853', 'tblTempUsageDetail_20' ) start [2025-04-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976853', 'tblTempUsageDetail_20' ) end [2025-04-24 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:28:21] Production.INFO: ==27078== Releasing lock... [2025-04-24 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:29:05 [end_date_ymd] => 2025-04-24 03:29:05 [RateCDR] => 1 ) [2025-04-24 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:29:05' and `end` < '2025-04-24 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:29:18] Production.INFO: count ==371 [2025-04-24 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:29:05 - End Time 2025-04-24 03:29:05 [2025-04-24 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976858', 'tblTempUsageDetail_20' ) start [2025-04-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976858', 'tblTempUsageDetail_20' ) end [2025-04-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976858', 'tblTempVendorCDR_20' ) start [2025-04-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976858', 'tblTempVendorCDR_20' ) end [2025-04-24 03:29:18] Production.INFO: ProcessCDR(1,14976858,1,1,2) [2025-04-24 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976858', 'tblTempUsageDetail_20' ) start [2025-04-24 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976858', 'tblTempUsageDetail_20' ) end [2025-04-24 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:29:21] Production.INFO: ==27149== Releasing lock... [2025-04-24 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:30:05 [end_date_ymd] => 2025-04-24 03:30:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:30:05' and `end` < '2025-04-24 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-04-24 03:30:18] Production.INFO: count ==366 [2025-04-24 03:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:30:05 - End Time 2025-04-24 03:30:05 [2025-04-24 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976864', 'tblTempUsageDetail_20' ) start [2025-04-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976864', 'tblTempUsageDetail_20' ) end [2025-04-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976864', 'tblTempVendorCDR_20' ) start [2025-04-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976864', 'tblTempVendorCDR_20' ) end [2025-04-24 03:30:18] Production.INFO: ProcessCDR(1,14976864,1,1,2) [2025-04-24 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976864', 'tblTempUsageDetail_20' ) start [2025-04-24 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976864', 'tblTempUsageDetail_20' ) end [2025-04-24 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:30:21] Production.INFO: ==27219== Releasing lock... [2025-04-24 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:30:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:31:06 [end_date_ymd] => 2025-04-24 03:31:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:31:06' and `end` < '2025-04-24 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-04-24 03:31:18] Production.INFO: count ==351 [2025-04-24 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:31:06 - End Time 2025-04-24 03:31:06 [2025-04-24 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976869', 'tblTempUsageDetail_20' ) start [2025-04-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976869', 'tblTempUsageDetail_20' ) end [2025-04-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976869', 'tblTempVendorCDR_20' ) start [2025-04-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976869', 'tblTempVendorCDR_20' ) end [2025-04-24 03:31:18] Production.INFO: ProcessCDR(1,14976869,1,1,2) [2025-04-24 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976869', 'tblTempUsageDetail_20' ) start [2025-04-24 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976869', 'tblTempUsageDetail_20' ) end [2025-04-24 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:31:21] Production.INFO: ==27295== Releasing lock... [2025-04-24 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:32:05 [end_date_ymd] => 2025-04-24 03:32:05 [RateCDR] => 1 ) [2025-04-24 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:32:05' and `end` < '2025-04-24 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:32:18] Production.INFO: count ==349 [2025-04-24 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:32:05 - End Time 2025-04-24 03:32:05 [2025-04-24 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976874', 'tblTempUsageDetail_20' ) start [2025-04-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976874', 'tblTempUsageDetail_20' ) end [2025-04-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976874', 'tblTempVendorCDR_20' ) start [2025-04-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976874', 'tblTempVendorCDR_20' ) end [2025-04-24 03:32:18] Production.INFO: ProcessCDR(1,14976874,1,1,2) [2025-04-24 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976874', 'tblTempUsageDetail_20' ) start [2025-04-24 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976874', 'tblTempUsageDetail_20' ) end [2025-04-24 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:32:21] Production.INFO: ==27368== Releasing lock... [2025-04-24 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:33:05 [end_date_ymd] => 2025-04-24 03:33:05 [RateCDR] => 1 ) [2025-04-24 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:33:05' and `end` < '2025-04-24 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:33:18] Production.INFO: count ==347 [2025-04-24 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:33:05 - End Time 2025-04-24 03:33:05 [2025-04-24 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976879', 'tblTempUsageDetail_20' ) start [2025-04-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976879', 'tblTempUsageDetail_20' ) end [2025-04-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976879', 'tblTempVendorCDR_20' ) start [2025-04-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976879', 'tblTempVendorCDR_20' ) end [2025-04-24 03:33:18] Production.INFO: ProcessCDR(1,14976879,1,1,2) [2025-04-24 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976879', 'tblTempUsageDetail_20' ) start [2025-04-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976879', 'tblTempUsageDetail_20' ) end [2025-04-24 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:33:22] Production.INFO: ==27438== Releasing lock... [2025-04-24 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:34:04 [end_date_ymd] => 2025-04-24 03:34:04 [RateCDR] => 1 ) [2025-04-24 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:34:04' and `end` < '2025-04-24 03:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:34:17] Production.INFO: count ==346 [2025-04-24 03:34:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:34:04 - End Time 2025-04-24 03:34:04 [2025-04-24 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976884', 'tblTempUsageDetail_20' ) start [2025-04-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976884', 'tblTempUsageDetail_20' ) end [2025-04-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976884', 'tblTempVendorCDR_20' ) start [2025-04-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976884', 'tblTempVendorCDR_20' ) end [2025-04-24 03:34:17] Production.INFO: ProcessCDR(1,14976884,1,1,2) [2025-04-24 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976884', 'tblTempUsageDetail_20' ) start [2025-04-24 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976884', 'tblTempUsageDetail_20' ) end [2025-04-24 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:34:22] Production.INFO: ==27509== Releasing lock... [2025-04-24 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:34:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:35:05 [end_date_ymd] => 2025-04-24 03:35:05 [RateCDR] => 1 ) [2025-04-24 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:35:05' and `end` < '2025-04-24 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:35:18] Production.INFO: count ==345 [2025-04-24 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:35:05 - End Time 2025-04-24 03:35:05 [2025-04-24 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976889', 'tblTempUsageDetail_20' ) start [2025-04-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976889', 'tblTempUsageDetail_20' ) end [2025-04-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976889', 'tblTempVendorCDR_20' ) start [2025-04-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976889', 'tblTempVendorCDR_20' ) end [2025-04-24 03:35:18] Production.INFO: ProcessCDR(1,14976889,1,1,2) [2025-04-24 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976889', 'tblTempUsageDetail_20' ) start [2025-04-24 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976889', 'tblTempUsageDetail_20' ) end [2025-04-24 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:35:21] Production.INFO: ==27654== Releasing lock... [2025-04-24 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:35:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:36:05 [end_date_ymd] => 2025-04-24 03:36:05 [RateCDR] => 1 ) [2025-04-24 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:36:05' and `end` < '2025-04-24 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:36:17] Production.INFO: count ==347 [2025-04-24 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:36:05 - End Time 2025-04-24 03:36:05 [2025-04-24 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976894', 'tblTempUsageDetail_20' ) start [2025-04-24 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976894', 'tblTempUsageDetail_20' ) end [2025-04-24 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976894', 'tblTempVendorCDR_20' ) start [2025-04-24 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976894', 'tblTempVendorCDR_20' ) end [2025-04-24 03:36:18] Production.INFO: ProcessCDR(1,14976894,1,1,2) [2025-04-24 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976894', 'tblTempUsageDetail_20' ) start [2025-04-24 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976894', 'tblTempUsageDetail_20' ) end [2025-04-24 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:36:21] Production.INFO: ==27768== Releasing lock... [2025-04-24 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:37:05 [end_date_ymd] => 2025-04-24 03:37:05 [RateCDR] => 1 ) [2025-04-24 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:37:05' and `end` < '2025-04-24 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:37:18] Production.INFO: count ==346 [2025-04-24 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:37:05 - End Time 2025-04-24 03:37:05 [2025-04-24 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976899', 'tblTempUsageDetail_20' ) start [2025-04-24 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976899', 'tblTempUsageDetail_20' ) end [2025-04-24 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976899', 'tblTempVendorCDR_20' ) start [2025-04-24 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976899', 'tblTempVendorCDR_20' ) end [2025-04-24 03:37:18] Production.INFO: ProcessCDR(1,14976899,1,1,2) [2025-04-24 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976899', 'tblTempUsageDetail_20' ) start [2025-04-24 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976899', 'tblTempUsageDetail_20' ) end [2025-04-24 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:37:21] Production.INFO: ==27843== Releasing lock... [2025-04-24 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:38:05 [end_date_ymd] => 2025-04-24 03:38:05 [RateCDR] => 1 ) [2025-04-24 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:38:05' and `end` < '2025-04-24 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:38:18] Production.INFO: count ==346 [2025-04-24 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:38:05 - End Time 2025-04-24 03:38:05 [2025-04-24 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976904', 'tblTempUsageDetail_20' ) start [2025-04-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976904', 'tblTempUsageDetail_20' ) end [2025-04-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976904', 'tblTempVendorCDR_20' ) start [2025-04-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976904', 'tblTempVendorCDR_20' ) end [2025-04-24 03:38:18] Production.INFO: ProcessCDR(1,14976904,1,1,2) [2025-04-24 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976904', 'tblTempUsageDetail_20' ) start [2025-04-24 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976904', 'tblTempUsageDetail_20' ) end [2025-04-24 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:38:21] Production.INFO: ==27953== Releasing lock... [2025-04-24 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:38:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:39:05 [end_date_ymd] => 2025-04-24 03:39:05 [RateCDR] => 1 ) [2025-04-24 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:39:05' and `end` < '2025-04-24 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:39:18] Production.INFO: count ==345 [2025-04-24 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:39:05 - End Time 2025-04-24 03:39:05 [2025-04-24 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976909', 'tblTempUsageDetail_20' ) start [2025-04-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976909', 'tblTempUsageDetail_20' ) end [2025-04-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976909', 'tblTempVendorCDR_20' ) start [2025-04-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976909', 'tblTempVendorCDR_20' ) end [2025-04-24 03:39:18] Production.INFO: ProcessCDR(1,14976909,1,1,2) [2025-04-24 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976909', 'tblTempUsageDetail_20' ) start [2025-04-24 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976909', 'tblTempUsageDetail_20' ) end [2025-04-24 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:39:21] Production.INFO: ==28027== Releasing lock... [2025-04-24 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:39:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:40:06 [end_date_ymd] => 2025-04-24 03:40:06 [RateCDR] => 1 ) [2025-04-24 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:40:06' and `end` < '2025-04-24 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:40:19] Production.INFO: count ==345 [2025-04-24 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 00:40:06 - End Time 2025-04-24 03:40:06 [2025-04-24 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976915', 'tblTempUsageDetail_20' ) start [2025-04-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976915', 'tblTempUsageDetail_20' ) end [2025-04-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976915', 'tblTempVendorCDR_20' ) start [2025-04-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976915', 'tblTempVendorCDR_20' ) end [2025-04-24 03:40:19] Production.INFO: ProcessCDR(1,14976915,1,1,2) [2025-04-24 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976915', 'tblTempUsageDetail_20' ) start [2025-04-24 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976915', 'tblTempUsageDetail_20' ) end [2025-04-24 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:40:22] Production.INFO: ==28102== Releasing lock... [2025-04-24 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:40:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:41:05 [end_date_ymd] => 2025-04-24 03:41:05 [RateCDR] => 1 ) [2025-04-24 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:41:05' and `end` < '2025-04-24 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:41:17] Production.INFO: count ==344 [2025-04-24 03:41:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:41:05 - End Time 2025-04-24 03:41:05 [2025-04-24 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976920', 'tblTempUsageDetail_20' ) start [2025-04-24 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976920', 'tblTempUsageDetail_20' ) end [2025-04-24 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976920', 'tblTempVendorCDR_20' ) start [2025-04-24 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976920', 'tblTempVendorCDR_20' ) end [2025-04-24 03:41:17] Production.INFO: ProcessCDR(1,14976920,1,1,2) [2025-04-24 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976920', 'tblTempUsageDetail_20' ) start [2025-04-24 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976920', 'tblTempUsageDetail_20' ) end [2025-04-24 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:41:20] Production.INFO: ==28172== Releasing lock... [2025-04-24 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:41:20] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:42:05 [end_date_ymd] => 2025-04-24 03:42:05 [RateCDR] => 1 ) [2025-04-24 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:42:05' and `end` < '2025-04-24 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:42:17] Production.INFO: count ==345 [2025-04-24 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:42:05 - End Time 2025-04-24 03:42:05 [2025-04-24 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976925', 'tblTempUsageDetail_20' ) start [2025-04-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976925', 'tblTempUsageDetail_20' ) end [2025-04-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976925', 'tblTempVendorCDR_20' ) start [2025-04-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976925', 'tblTempVendorCDR_20' ) end [2025-04-24 03:42:18] Production.INFO: ProcessCDR(1,14976925,1,1,2) [2025-04-24 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976925', 'tblTempUsageDetail_20' ) start [2025-04-24 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976925', 'tblTempUsageDetail_20' ) end [2025-04-24 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:42:21] Production.INFO: ==28242== Releasing lock... [2025-04-24 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:42:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:43:05 [end_date_ymd] => 2025-04-24 03:43:05 [RateCDR] => 1 ) [2025-04-24 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:43:05' and `end` < '2025-04-24 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:43:18] Production.INFO: count ==345 [2025-04-24 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:43:05 - End Time 2025-04-24 03:43:05 [2025-04-24 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976930', 'tblTempUsageDetail_20' ) start [2025-04-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976930', 'tblTempUsageDetail_20' ) end [2025-04-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976930', 'tblTempVendorCDR_20' ) start [2025-04-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976930', 'tblTempVendorCDR_20' ) end [2025-04-24 03:43:18] Production.INFO: ProcessCDR(1,14976930,1,1,2) [2025-04-24 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976930', 'tblTempUsageDetail_20' ) start [2025-04-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976930', 'tblTempUsageDetail_20' ) end [2025-04-24 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:43:21] Production.INFO: ==28318== Releasing lock... [2025-04-24 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:43:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:44:05 [end_date_ymd] => 2025-04-24 03:44:05 [RateCDR] => 1 ) [2025-04-24 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:44:05' and `end` < '2025-04-24 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:44:18] Production.INFO: count ==344 [2025-04-24 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:44:05 - End Time 2025-04-24 03:44:05 [2025-04-24 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976935', 'tblTempUsageDetail_20' ) start [2025-04-24 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976935', 'tblTempUsageDetail_20' ) end [2025-04-24 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976935', 'tblTempVendorCDR_20' ) start [2025-04-24 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976935', 'tblTempVendorCDR_20' ) end [2025-04-24 03:44:18] Production.INFO: ProcessCDR(1,14976935,1,1,2) [2025-04-24 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976935', 'tblTempUsageDetail_20' ) start [2025-04-24 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976935', 'tblTempUsageDetail_20' ) end [2025-04-24 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:44:21] Production.INFO: ==28398== Releasing lock... [2025-04-24 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:44:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:45:06 [end_date_ymd] => 2025-04-24 03:45:06 [RateCDR] => 1 ) [2025-04-24 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:45:06' and `end` < '2025-04-24 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:45:18] Production.INFO: count ==343 [2025-04-24 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:45:06 - End Time 2025-04-24 03:45:06 [2025-04-24 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976940', 'tblTempUsageDetail_20' ) start [2025-04-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976940', 'tblTempUsageDetail_20' ) end [2025-04-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976940', 'tblTempVendorCDR_20' ) start [2025-04-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976940', 'tblTempVendorCDR_20' ) end [2025-04-24 03:45:18] Production.INFO: ProcessCDR(1,14976940,1,1,2) [2025-04-24 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976940', 'tblTempUsageDetail_20' ) start [2025-04-24 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976940', 'tblTempUsageDetail_20' ) end [2025-04-24 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:45:22] Production.INFO: ==28469== Releasing lock... [2025-04-24 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:45:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:46:05 [end_date_ymd] => 2025-04-24 03:46:05 [RateCDR] => 1 ) [2025-04-24 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:46:05' and `end` < '2025-04-24 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:46:17] Production.INFO: count ==343 [2025-04-24 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:46:05 - End Time 2025-04-24 03:46:05 [2025-04-24 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976945', 'tblTempUsageDetail_20' ) start [2025-04-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976945', 'tblTempUsageDetail_20' ) end [2025-04-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976945', 'tblTempVendorCDR_20' ) start [2025-04-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976945', 'tblTempVendorCDR_20' ) end [2025-04-24 03:46:18] Production.INFO: ProcessCDR(1,14976945,1,1,2) [2025-04-24 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976945', 'tblTempUsageDetail_20' ) start [2025-04-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976945', 'tblTempUsageDetail_20' ) end [2025-04-24 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:46:21] Production.INFO: ==28540== Releasing lock... [2025-04-24 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:46:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:47:05 [end_date_ymd] => 2025-04-24 03:47:05 [RateCDR] => 1 ) [2025-04-24 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:47:05' and `end` < '2025-04-24 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:47:18] Production.INFO: count ==346 [2025-04-24 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:47:05 - End Time 2025-04-24 03:47:05 [2025-04-24 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976950', 'tblTempUsageDetail_20' ) start [2025-04-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976950', 'tblTempUsageDetail_20' ) end [2025-04-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976950', 'tblTempVendorCDR_20' ) start [2025-04-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976950', 'tblTempVendorCDR_20' ) end [2025-04-24 03:47:18] Production.INFO: ProcessCDR(1,14976950,1,1,2) [2025-04-24 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976950', 'tblTempUsageDetail_20' ) start [2025-04-24 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976950', 'tblTempUsageDetail_20' ) end [2025-04-24 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:47:21] Production.INFO: ==28613== Releasing lock... [2025-04-24 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:48:05 [end_date_ymd] => 2025-04-24 03:48:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:48:05' and `end` < '2025-04-24 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-04-24 03:48:17] Production.INFO: count ==346 [2025-04-24 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:48:05 - End Time 2025-04-24 03:48:05 [2025-04-24 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976955', 'tblTempUsageDetail_20' ) start [2025-04-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976955', 'tblTempUsageDetail_20' ) end [2025-04-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976955', 'tblTempVendorCDR_20' ) start [2025-04-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976955', 'tblTempVendorCDR_20' ) end [2025-04-24 03:48:18] Production.INFO: ProcessCDR(1,14976955,1,1,2) [2025-04-24 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976955', 'tblTempUsageDetail_20' ) start [2025-04-24 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976955', 'tblTempUsageDetail_20' ) end [2025-04-24 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:48:21] Production.INFO: ==28688== Releasing lock... [2025-04-24 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:49:05 [end_date_ymd] => 2025-04-24 03:49:05 [RateCDR] => 1 ) [2025-04-24 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:49:05' and `end` < '2025-04-24 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:49:18] Production.INFO: count ==347 [2025-04-24 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:49:05 - End Time 2025-04-24 03:49:05 [2025-04-24 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976960', 'tblTempUsageDetail_20' ) start [2025-04-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976960', 'tblTempUsageDetail_20' ) end [2025-04-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976960', 'tblTempVendorCDR_20' ) start [2025-04-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976960', 'tblTempVendorCDR_20' ) end [2025-04-24 03:49:18] Production.INFO: ProcessCDR(1,14976960,1,1,2) [2025-04-24 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976960', 'tblTempUsageDetail_20' ) start [2025-04-24 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976960', 'tblTempUsageDetail_20' ) end [2025-04-24 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:49:23] Production.INFO: ==28761== Releasing lock... [2025-04-24 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:49:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:50:05 [end_date_ymd] => 2025-04-24 03:50:05 [RateCDR] => 1 ) [2025-04-24 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:50:05' and `end` < '2025-04-24 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:50:19] Production.INFO: count ==357 [2025-04-24 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 00:50:05 - End Time 2025-04-24 03:50:05 [2025-04-24 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976966', 'tblTempUsageDetail_20' ) start [2025-04-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976966', 'tblTempUsageDetail_20' ) end [2025-04-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976966', 'tblTempVendorCDR_20' ) start [2025-04-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976966', 'tblTempVendorCDR_20' ) end [2025-04-24 03:50:19] Production.INFO: ProcessCDR(1,14976966,1,1,2) [2025-04-24 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976966', 'tblTempUsageDetail_20' ) start [2025-04-24 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976966', 'tblTempUsageDetail_20' ) end [2025-04-24 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:50:24] Production.INFO: ==28832== Releasing lock... [2025-04-24 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:50:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:51:06 [end_date_ymd] => 2025-04-24 03:51:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 00:51:06' and `end` < '2025-04-24 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-04-24 03:51:18] Production.INFO: count ==358 [2025-04-24 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:51:06 - End Time 2025-04-24 03:51:06 [2025-04-24 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976971', 'tblTempUsageDetail_20' ) start [2025-04-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976971', 'tblTempUsageDetail_20' ) end [2025-04-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976971', 'tblTempVendorCDR_20' ) start [2025-04-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976971', 'tblTempVendorCDR_20' ) end [2025-04-24 03:51:18] Production.INFO: ProcessCDR(1,14976971,1,1,2) [2025-04-24 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976971', 'tblTempUsageDetail_20' ) start [2025-04-24 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976971', 'tblTempUsageDetail_20' ) end [2025-04-24 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:51:22] Production.INFO: ==28946== Releasing lock... [2025-04-24 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:51:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:52:05 [end_date_ymd] => 2025-04-24 03:52:05 [RateCDR] => 1 ) [2025-04-24 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:52:05' and `end` < '2025-04-24 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:52:18] Production.INFO: count ==358 [2025-04-24 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:52:05 - End Time 2025-04-24 03:52:05 [2025-04-24 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976976', 'tblTempUsageDetail_20' ) start [2025-04-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976976', 'tblTempUsageDetail_20' ) end [2025-04-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976976', 'tblTempVendorCDR_20' ) start [2025-04-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976976', 'tblTempVendorCDR_20' ) end [2025-04-24 03:52:18] Production.INFO: ProcessCDR(1,14976976,1,1,2) [2025-04-24 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976976', 'tblTempUsageDetail_20' ) start [2025-04-24 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976976', 'tblTempUsageDetail_20' ) end [2025-04-24 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:52:21] Production.INFO: ==29017== Releasing lock... [2025-04-24 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:52:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:53:06 [end_date_ymd] => 2025-04-24 03:53:06 [RateCDR] => 1 ) [2025-04-24 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:53:06' and `end` < '2025-04-24 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:53:18] Production.INFO: count ==358 [2025-04-24 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:53:06 - End Time 2025-04-24 03:53:06 [2025-04-24 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976981', 'tblTempUsageDetail_20' ) start [2025-04-24 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976981', 'tblTempUsageDetail_20' ) end [2025-04-24 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976981', 'tblTempVendorCDR_20' ) start [2025-04-24 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976981', 'tblTempVendorCDR_20' ) end [2025-04-24 03:53:18] Production.INFO: ProcessCDR(1,14976981,1,1,2) [2025-04-24 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976981', 'tblTempUsageDetail_20' ) start [2025-04-24 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976981', 'tblTempUsageDetail_20' ) end [2025-04-24 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:53:21] Production.INFO: ==29089== Releasing lock... [2025-04-24 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:54:05 [end_date_ymd] => 2025-04-24 03:54:05 [RateCDR] => 1 ) [2025-04-24 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:54:05' and `end` < '2025-04-24 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:54:17] Production.INFO: count ==357 [2025-04-24 03:54:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:54:05 - End Time 2025-04-24 03:54:05 [2025-04-24 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976986', 'tblTempUsageDetail_20' ) start [2025-04-24 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976986', 'tblTempUsageDetail_20' ) end [2025-04-24 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976986', 'tblTempVendorCDR_20' ) start [2025-04-24 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976986', 'tblTempVendorCDR_20' ) end [2025-04-24 03:54:17] Production.INFO: ProcessCDR(1,14976986,1,1,2) [2025-04-24 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976986', 'tblTempUsageDetail_20' ) start [2025-04-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976986', 'tblTempUsageDetail_20' ) end [2025-04-24 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:54:21] Production.INFO: ==29170== Releasing lock... [2025-04-24 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:54:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:55:05 [end_date_ymd] => 2025-04-24 03:55:05 [RateCDR] => 1 ) [2025-04-24 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:55:05' and `end` < '2025-04-24 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:55:18] Production.INFO: count ==356 [2025-04-24 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:55:05 - End Time 2025-04-24 03:55:05 [2025-04-24 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976991', 'tblTempUsageDetail_20' ) start [2025-04-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976991', 'tblTempUsageDetail_20' ) end [2025-04-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976991', 'tblTempVendorCDR_20' ) start [2025-04-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976991', 'tblTempVendorCDR_20' ) end [2025-04-24 03:55:18] Production.INFO: ProcessCDR(1,14976991,1,1,2) [2025-04-24 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976991', 'tblTempUsageDetail_20' ) start [2025-04-24 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976991', 'tblTempUsageDetail_20' ) end [2025-04-24 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:55:21] Production.INFO: ==29246== Releasing lock... [2025-04-24 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:56:05 [end_date_ymd] => 2025-04-24 03:56:05 [RateCDR] => 1 ) [2025-04-24 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:56:05' and `end` < '2025-04-24 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:56:17] Production.INFO: count ==356 [2025-04-24 03:56:17] Production.ERROR: pbx CDR StartTime 2025-04-24 00:56:05 - End Time 2025-04-24 03:56:05 [2025-04-24 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976996', 'tblTempUsageDetail_20' ) start [2025-04-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14976996', 'tblTempUsageDetail_20' ) end [2025-04-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976996', 'tblTempVendorCDR_20' ) start [2025-04-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14976996', 'tblTempVendorCDR_20' ) end [2025-04-24 03:56:17] Production.INFO: ProcessCDR(1,14976996,1,1,2) [2025-04-24 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14976996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14976996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14976996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14976996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976996', 'tblTempUsageDetail_20' ) start [2025-04-24 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14976996', 'tblTempUsageDetail_20' ) end [2025-04-24 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:56:21] Production.INFO: ==29317== Releasing lock... [2025-04-24 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:56:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:57:05 [end_date_ymd] => 2025-04-24 03:57:05 [RateCDR] => 1 ) [2025-04-24 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:57:05' and `end` < '2025-04-24 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:57:18] Production.INFO: count ==355 [2025-04-24 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:57:05 - End Time 2025-04-24 03:57:05 [2025-04-24 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977001', 'tblTempUsageDetail_20' ) start [2025-04-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977001', 'tblTempUsageDetail_20' ) end [2025-04-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977001', 'tblTempVendorCDR_20' ) start [2025-04-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977001', 'tblTempVendorCDR_20' ) end [2025-04-24 03:57:18] Production.INFO: ProcessCDR(1,14977001,1,1,2) [2025-04-24 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977001', 'tblTempUsageDetail_20' ) start [2025-04-24 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977001', 'tblTempUsageDetail_20' ) end [2025-04-24 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:57:21] Production.INFO: ==29394== Releasing lock... [2025-04-24 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:58:05 [end_date_ymd] => 2025-04-24 03:58:05 [RateCDR] => 1 ) [2025-04-24 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:58:05' and `end` < '2025-04-24 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:58:18] Production.INFO: count ==354 [2025-04-24 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:58:05 - End Time 2025-04-24 03:58:05 [2025-04-24 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977006', 'tblTempUsageDetail_20' ) start [2025-04-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977006', 'tblTempUsageDetail_20' ) end [2025-04-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977006', 'tblTempVendorCDR_20' ) start [2025-04-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977006', 'tblTempVendorCDR_20' ) end [2025-04-24 03:58:18] Production.INFO: ProcessCDR(1,14977006,1,1,2) [2025-04-24 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977006', 'tblTempUsageDetail_20' ) start [2025-04-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977006', 'tblTempUsageDetail_20' ) end [2025-04-24 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:58:21] Production.INFO: ==29469== Releasing lock... [2025-04-24 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 00:59:05 [end_date_ymd] => 2025-04-24 03:59:05 [RateCDR] => 1 ) [2025-04-24 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 00:59:05' and `end` < '2025-04-24 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 03:59:18] Production.INFO: count ==353 [2025-04-24 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 00:59:05 - End Time 2025-04-24 03:59:05 [2025-04-24 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977011', 'tblTempUsageDetail_20' ) start [2025-04-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977011', 'tblTempUsageDetail_20' ) end [2025-04-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977011', 'tblTempVendorCDR_20' ) start [2025-04-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977011', 'tblTempVendorCDR_20' ) end [2025-04-24 03:59:18] Production.INFO: ProcessCDR(1,14977011,1,1,2) [2025-04-24 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977011', 'tblTempUsageDetail_20' ) start [2025-04-24 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977011', 'tblTempUsageDetail_20' ) end [2025-04-24 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 03:59:21] Production.INFO: ==29545== Releasing lock... [2025-04-24 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 03:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:00:06 [end_date_ymd] => 2025-04-24 04:00:06 [RateCDR] => 1 ) [2025-04-24 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:00:06' and `end` < '2025-04-24 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:00:19] Production.INFO: count ==352 [2025-04-24 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:00:06 - End Time 2025-04-24 04:00:06 [2025-04-24 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977017', 'tblTempUsageDetail_20' ) start [2025-04-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977017', 'tblTempUsageDetail_20' ) end [2025-04-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977017', 'tblTempVendorCDR_20' ) start [2025-04-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977017', 'tblTempVendorCDR_20' ) end [2025-04-24 04:00:19] Production.INFO: ProcessCDR(1,14977017,1,1,2) [2025-04-24 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977017', 'tblTempUsageDetail_20' ) start [2025-04-24 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977017', 'tblTempUsageDetail_20' ) end [2025-04-24 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:00:22] Production.INFO: ==29618== Releasing lock... [2025-04-24 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:01:05 [end_date_ymd] => 2025-04-24 04:01:05 [RateCDR] => 1 ) [2025-04-24 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:01:05' and `end` < '2025-04-24 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:01:17] Production.INFO: count ==347 [2025-04-24 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:01:05 - End Time 2025-04-24 04:01:05 [2025-04-24 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977023', 'tblTempUsageDetail_20' ) start [2025-04-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977023', 'tblTempUsageDetail_20' ) end [2025-04-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977023', 'tblTempVendorCDR_20' ) start [2025-04-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977023', 'tblTempVendorCDR_20' ) end [2025-04-24 04:01:18] Production.INFO: ProcessCDR(1,14977023,1,1,2) [2025-04-24 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977023', 'tblTempUsageDetail_20' ) start [2025-04-24 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977023', 'tblTempUsageDetail_20' ) end [2025-04-24 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:01:21] Production.INFO: ==29705== Releasing lock... [2025-04-24 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:01:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:02:05 [end_date_ymd] => 2025-04-24 04:02:05 [RateCDR] => 1 ) [2025-04-24 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:02:05' and `end` < '2025-04-24 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:02:18] Production.INFO: count ==343 [2025-04-24 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:02:05 - End Time 2025-04-24 04:02:05 [2025-04-24 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977025', 'tblTempUsageDetail_20' ) start [2025-04-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977025', 'tblTempUsageDetail_20' ) end [2025-04-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977025', 'tblTempVendorCDR_20' ) start [2025-04-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977025', 'tblTempVendorCDR_20' ) end [2025-04-24 04:02:18] Production.INFO: ProcessCDR(1,14977025,1,1,2) [2025-04-24 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977025', 'tblTempUsageDetail_20' ) start [2025-04-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977025', 'tblTempUsageDetail_20' ) end [2025-04-24 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:02:21] Production.INFO: ==29779== Releasing lock... [2025-04-24 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:03:05 [end_date_ymd] => 2025-04-24 04:03:05 [RateCDR] => 1 ) [2025-04-24 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:03:05' and `end` < '2025-04-24 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:03:18] Production.INFO: count ==341 [2025-04-24 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:03:05 - End Time 2025-04-24 04:03:05 [2025-04-24 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977033', 'tblTempUsageDetail_20' ) start [2025-04-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977033', 'tblTempUsageDetail_20' ) end [2025-04-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977033', 'tblTempVendorCDR_20' ) start [2025-04-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977033', 'tblTempVendorCDR_20' ) end [2025-04-24 04:03:18] Production.INFO: ProcessCDR(1,14977033,1,1,2) [2025-04-24 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977033', 'tblTempUsageDetail_20' ) start [2025-04-24 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977033', 'tblTempUsageDetail_20' ) end [2025-04-24 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:03:21] Production.INFO: ==29851== Releasing lock... [2025-04-24 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:04:06 [end_date_ymd] => 2025-04-24 04:04:06 [RateCDR] => 1 ) [2025-04-24 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:04:06' and `end` < '2025-04-24 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:04:18] Production.INFO: count ==341 [2025-04-24 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:04:06 - End Time 2025-04-24 04:04:06 [2025-04-24 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977038', 'tblTempUsageDetail_20' ) start [2025-04-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977038', 'tblTempUsageDetail_20' ) end [2025-04-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977038', 'tblTempVendorCDR_20' ) start [2025-04-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977038', 'tblTempVendorCDR_20' ) end [2025-04-24 04:04:18] Production.INFO: ProcessCDR(1,14977038,1,1,2) [2025-04-24 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977038', 'tblTempUsageDetail_20' ) start [2025-04-24 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977038', 'tblTempUsageDetail_20' ) end [2025-04-24 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:04:22] Production.INFO: ==29925== Releasing lock... [2025-04-24 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:05:05 [end_date_ymd] => 2025-04-24 04:05:05 [RateCDR] => 1 ) [2025-04-24 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:05:05' and `end` < '2025-04-24 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:05:18] Production.INFO: count ==339 [2025-04-24 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:05:05 - End Time 2025-04-24 04:05:05 [2025-04-24 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977043', 'tblTempUsageDetail_20' ) start [2025-04-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977043', 'tblTempUsageDetail_20' ) end [2025-04-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977043', 'tblTempVendorCDR_20' ) start [2025-04-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977043', 'tblTempVendorCDR_20' ) end [2025-04-24 04:05:18] Production.INFO: ProcessCDR(1,14977043,1,1,2) [2025-04-24 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977043', 'tblTempUsageDetail_20' ) start [2025-04-24 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977043', 'tblTempUsageDetail_20' ) end [2025-04-24 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:05:21] Production.INFO: ==29996== Releasing lock... [2025-04-24 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:05:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:06:05 [end_date_ymd] => 2025-04-24 04:06:05 [RateCDR] => 1 ) [2025-04-24 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:06:05' and `end` < '2025-04-24 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:06:18] Production.INFO: count ==339 [2025-04-24 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:06:05 - End Time 2025-04-24 04:06:05 [2025-04-24 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977048', 'tblTempUsageDetail_20' ) start [2025-04-24 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977048', 'tblTempUsageDetail_20' ) end [2025-04-24 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977048', 'tblTempVendorCDR_20' ) start [2025-04-24 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977048', 'tblTempVendorCDR_20' ) end [2025-04-24 04:06:18] Production.INFO: ProcessCDR(1,14977048,1,1,2) [2025-04-24 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977048', 'tblTempUsageDetail_20' ) start [2025-04-24 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977048', 'tblTempUsageDetail_20' ) end [2025-04-24 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:06:21] Production.INFO: ==30104== Releasing lock... [2025-04-24 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:06:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:07:05 [end_date_ymd] => 2025-04-24 04:07:05 [RateCDR] => 1 ) [2025-04-24 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:07:05' and `end` < '2025-04-24 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:07:17] Production.INFO: count ==337 [2025-04-24 04:07:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:07:05 - End Time 2025-04-24 04:07:05 [2025-04-24 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977053', 'tblTempUsageDetail_20' ) start [2025-04-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977053', 'tblTempUsageDetail_20' ) end [2025-04-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977053', 'tblTempVendorCDR_20' ) start [2025-04-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977053', 'tblTempVendorCDR_20' ) end [2025-04-24 04:07:17] Production.INFO: ProcessCDR(1,14977053,1,1,2) [2025-04-24 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977053', 'tblTempUsageDetail_20' ) start [2025-04-24 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977053', 'tblTempUsageDetail_20' ) end [2025-04-24 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:07:21] Production.INFO: ==30180== Releasing lock... [2025-04-24 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:07:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:08:05 [end_date_ymd] => 2025-04-24 04:08:05 [RateCDR] => 1 ) [2025-04-24 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:08:05' and `end` < '2025-04-24 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:08:18] Production.INFO: count ==336 [2025-04-24 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:08:05 - End Time 2025-04-24 04:08:05 [2025-04-24 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977058', 'tblTempUsageDetail_20' ) start [2025-04-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977058', 'tblTempUsageDetail_20' ) end [2025-04-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977058', 'tblTempVendorCDR_20' ) start [2025-04-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977058', 'tblTempVendorCDR_20' ) end [2025-04-24 04:08:18] Production.INFO: ProcessCDR(1,14977058,1,1,2) [2025-04-24 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977058', 'tblTempUsageDetail_20' ) start [2025-04-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977058', 'tblTempUsageDetail_20' ) end [2025-04-24 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:08:21] Production.INFO: ==30255== Releasing lock... [2025-04-24 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:09:05 [end_date_ymd] => 2025-04-24 04:09:05 [RateCDR] => 1 ) [2025-04-24 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:09:05' and `end` < '2025-04-24 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:09:18] Production.INFO: count ==336 [2025-04-24 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:09:05 - End Time 2025-04-24 04:09:05 [2025-04-24 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977063', 'tblTempUsageDetail_20' ) start [2025-04-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977063', 'tblTempUsageDetail_20' ) end [2025-04-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977063', 'tblTempVendorCDR_20' ) start [2025-04-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977063', 'tblTempVendorCDR_20' ) end [2025-04-24 04:09:18] Production.INFO: ProcessCDR(1,14977063,1,1,2) [2025-04-24 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977063', 'tblTempUsageDetail_20' ) start [2025-04-24 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977063', 'tblTempUsageDetail_20' ) end [2025-04-24 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:09:21] Production.INFO: ==30329== Releasing lock... [2025-04-24 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:09:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:10:06 [end_date_ymd] => 2025-04-24 04:10:06 [RateCDR] => 1 ) [2025-04-24 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:10:06' and `end` < '2025-04-24 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:10:19] Production.INFO: count ==334 [2025-04-24 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:10:06 - End Time 2025-04-24 04:10:06 [2025-04-24 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977069', 'tblTempUsageDetail_20' ) start [2025-04-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977069', 'tblTempUsageDetail_20' ) end [2025-04-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977069', 'tblTempVendorCDR_20' ) start [2025-04-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977069', 'tblTempVendorCDR_20' ) end [2025-04-24 04:10:19] Production.INFO: ProcessCDR(1,14977069,1,1,2) [2025-04-24 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977069', 'tblTempUsageDetail_20' ) start [2025-04-24 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977069', 'tblTempUsageDetail_20' ) end [2025-04-24 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:10:22] Production.INFO: ==30406== Releasing lock... [2025-04-24 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:10:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:11:05 [end_date_ymd] => 2025-04-24 04:11:05 [RateCDR] => 1 ) [2025-04-24 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:11:05' and `end` < '2025-04-24 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:11:17] Production.INFO: count ==334 [2025-04-24 04:11:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:11:05 - End Time 2025-04-24 04:11:05 [2025-04-24 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977074', 'tblTempUsageDetail_20' ) start [2025-04-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977074', 'tblTempUsageDetail_20' ) end [2025-04-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977074', 'tblTempVendorCDR_20' ) start [2025-04-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977074', 'tblTempVendorCDR_20' ) end [2025-04-24 04:11:17] Production.INFO: ProcessCDR(1,14977074,1,1,2) [2025-04-24 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977074', 'tblTempUsageDetail_20' ) start [2025-04-24 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977074', 'tblTempUsageDetail_20' ) end [2025-04-24 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:11:21] Production.INFO: ==30482== Releasing lock... [2025-04-24 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:11:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:12:05 [end_date_ymd] => 2025-04-24 04:12:05 [RateCDR] => 1 ) [2025-04-24 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:12:05' and `end` < '2025-04-24 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:12:18] Production.INFO: count ==334 [2025-04-24 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:12:05 - End Time 2025-04-24 04:12:05 [2025-04-24 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977079', 'tblTempUsageDetail_20' ) start [2025-04-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977079', 'tblTempUsageDetail_20' ) end [2025-04-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977079', 'tblTempVendorCDR_20' ) start [2025-04-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977079', 'tblTempVendorCDR_20' ) end [2025-04-24 04:12:18] Production.INFO: ProcessCDR(1,14977079,1,1,2) [2025-04-24 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977079', 'tblTempUsageDetail_20' ) start [2025-04-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977079', 'tblTempUsageDetail_20' ) end [2025-04-24 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:12:21] Production.INFO: ==30554== Releasing lock... [2025-04-24 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:12:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:13:05 [end_date_ymd] => 2025-04-24 04:13:05 [RateCDR] => 1 ) [2025-04-24 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:13:05' and `end` < '2025-04-24 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:13:17] Production.INFO: count ==335 [2025-04-24 04:13:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:13:05 - End Time 2025-04-24 04:13:05 [2025-04-24 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977084', 'tblTempUsageDetail_20' ) start [2025-04-24 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977084', 'tblTempUsageDetail_20' ) end [2025-04-24 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977084', 'tblTempVendorCDR_20' ) start [2025-04-24 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977084', 'tblTempVendorCDR_20' ) end [2025-04-24 04:13:17] Production.INFO: ProcessCDR(1,14977084,1,1,2) [2025-04-24 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977084', 'tblTempUsageDetail_20' ) start [2025-04-24 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977084', 'tblTempUsageDetail_20' ) end [2025-04-24 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:13:22] Production.INFO: ==30624== Releasing lock... [2025-04-24 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:14:05 [end_date_ymd] => 2025-04-24 04:14:05 [RateCDR] => 1 ) [2025-04-24 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:14:05' and `end` < '2025-04-24 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:14:18] Production.INFO: count ==335 [2025-04-24 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:14:05 - End Time 2025-04-24 04:14:05 [2025-04-24 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977089', 'tblTempUsageDetail_20' ) start [2025-04-24 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977089', 'tblTempUsageDetail_20' ) end [2025-04-24 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977089', 'tblTempVendorCDR_20' ) start [2025-04-24 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977089', 'tblTempVendorCDR_20' ) end [2025-04-24 04:14:18] Production.INFO: ProcessCDR(1,14977089,1,1,2) [2025-04-24 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977089', 'tblTempUsageDetail_20' ) start [2025-04-24 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977089', 'tblTempUsageDetail_20' ) end [2025-04-24 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:14:21] Production.INFO: ==30698== Releasing lock... [2025-04-24 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:14:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:15:05 [end_date_ymd] => 2025-04-24 04:15:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:15:05' and `end` < '2025-04-24 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-04-24 04:15:17] Production.INFO: count ==336 [2025-04-24 04:15:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:15:05 - End Time 2025-04-24 04:15:05 [2025-04-24 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977094', 'tblTempUsageDetail_20' ) start [2025-04-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977094', 'tblTempUsageDetail_20' ) end [2025-04-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977094', 'tblTempVendorCDR_20' ) start [2025-04-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977094', 'tblTempVendorCDR_20' ) end [2025-04-24 04:15:17] Production.INFO: ProcessCDR(1,14977094,1,1,2) [2025-04-24 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977094', 'tblTempUsageDetail_20' ) start [2025-04-24 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977094', 'tblTempUsageDetail_20' ) end [2025-04-24 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:15:22] Production.INFO: ==30790== Releasing lock... [2025-04-24 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:15:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:16:05 [end_date_ymd] => 2025-04-24 04:16:05 [RateCDR] => 1 ) [2025-04-24 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:16:05' and `end` < '2025-04-24 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:16:18] Production.INFO: count ==335 [2025-04-24 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:16:05 - End Time 2025-04-24 04:16:05 [2025-04-24 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977099', 'tblTempUsageDetail_20' ) start [2025-04-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977099', 'tblTempUsageDetail_20' ) end [2025-04-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977099', 'tblTempVendorCDR_20' ) start [2025-04-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977099', 'tblTempVendorCDR_20' ) end [2025-04-24 04:16:18] Production.INFO: ProcessCDR(1,14977099,1,1,2) [2025-04-24 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977099', 'tblTempUsageDetail_20' ) start [2025-04-24 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977099', 'tblTempUsageDetail_20' ) end [2025-04-24 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:16:21] Production.INFO: ==30863== Releasing lock... [2025-04-24 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:17:06 [end_date_ymd] => 2025-04-24 04:17:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:17:06' and `end` < '2025-04-24 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-04-24 04:17:18] Production.INFO: count ==334 [2025-04-24 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:17:06 - End Time 2025-04-24 04:17:06 [2025-04-24 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977104', 'tblTempUsageDetail_20' ) start [2025-04-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977104', 'tblTempUsageDetail_20' ) end [2025-04-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977104', 'tblTempVendorCDR_20' ) start [2025-04-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977104', 'tblTempVendorCDR_20' ) end [2025-04-24 04:17:18] Production.INFO: ProcessCDR(1,14977104,1,1,2) [2025-04-24 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977104', 'tblTempUsageDetail_20' ) start [2025-04-24 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977104', 'tblTempUsageDetail_20' ) end [2025-04-24 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:17:22] Production.INFO: ==30935== Releasing lock... [2025-04-24 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:18:05 [end_date_ymd] => 2025-04-24 04:18:05 [RateCDR] => 1 ) [2025-04-24 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:18:05' and `end` < '2025-04-24 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:18:17] Production.INFO: count ==335 [2025-04-24 04:18:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:18:05 - End Time 2025-04-24 04:18:05 [2025-04-24 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977109', 'tblTempUsageDetail_20' ) start [2025-04-24 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977109', 'tblTempUsageDetail_20' ) end [2025-04-24 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977109', 'tblTempVendorCDR_20' ) start [2025-04-24 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977109', 'tblTempVendorCDR_20' ) end [2025-04-24 04:18:18] Production.INFO: ProcessCDR(1,14977109,1,1,2) [2025-04-24 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977109', 'tblTempUsageDetail_20' ) start [2025-04-24 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977109', 'tblTempUsageDetail_20' ) end [2025-04-24 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:18:22] Production.INFO: ==31008== Releasing lock... [2025-04-24 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:18:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:19:06 [end_date_ymd] => 2025-04-24 04:19:06 [RateCDR] => 1 ) [2025-04-24 04:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:19:06' and `end` < '2025-04-24 04:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:19:18] Production.INFO: count ==334 [2025-04-24 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:19:06 - End Time 2025-04-24 04:19:06 [2025-04-24 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977114', 'tblTempUsageDetail_20' ) start [2025-04-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977114', 'tblTempUsageDetail_20' ) end [2025-04-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977114', 'tblTempVendorCDR_20' ) start [2025-04-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977114', 'tblTempVendorCDR_20' ) end [2025-04-24 04:19:18] Production.INFO: ProcessCDR(1,14977114,1,1,2) [2025-04-24 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977114', 'tblTempUsageDetail_20' ) start [2025-04-24 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977114', 'tblTempUsageDetail_20' ) end [2025-04-24 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:19:22] Production.INFO: ==31080== Releasing lock... [2025-04-24 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:20:06 [end_date_ymd] => 2025-04-24 04:20:06 [RateCDR] => 1 ) [2025-04-24 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:20:06' and `end` < '2025-04-24 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:20:18] Production.INFO: count ==324 [2025-04-24 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:20:06 - End Time 2025-04-24 04:20:06 [2025-04-24 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977120', 'tblTempUsageDetail_20' ) start [2025-04-24 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977120', 'tblTempUsageDetail_20' ) end [2025-04-24 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977120', 'tblTempVendorCDR_20' ) start [2025-04-24 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977120', 'tblTempVendorCDR_20' ) end [2025-04-24 04:20:18] Production.INFO: ProcessCDR(1,14977120,1,1,2) [2025-04-24 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977120', 'tblTempUsageDetail_20' ) start [2025-04-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977120', 'tblTempUsageDetail_20' ) end [2025-04-24 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:20:22] Production.INFO: ==31152== Releasing lock... [2025-04-24 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:21:05 [end_date_ymd] => 2025-04-24 04:21:05 [RateCDR] => 1 ) [2025-04-24 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:21:05' and `end` < '2025-04-24 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:21:18] Production.INFO: count ==323 [2025-04-24 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:21:05 - End Time 2025-04-24 04:21:05 [2025-04-24 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977125', 'tblTempUsageDetail_20' ) start [2025-04-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977125', 'tblTempUsageDetail_20' ) end [2025-04-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977125', 'tblTempVendorCDR_20' ) start [2025-04-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977125', 'tblTempVendorCDR_20' ) end [2025-04-24 04:21:18] Production.INFO: ProcessCDR(1,14977125,1,1,2) [2025-04-24 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977125', 'tblTempUsageDetail_20' ) start [2025-04-24 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977125', 'tblTempUsageDetail_20' ) end [2025-04-24 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:21:21] Production.INFO: ==31225== Releasing lock... [2025-04-24 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:22:05 [end_date_ymd] => 2025-04-24 04:22:05 [RateCDR] => 1 ) [2025-04-24 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:22:05' and `end` < '2025-04-24 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:22:17] Production.INFO: count ==322 [2025-04-24 04:22:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:22:05 - End Time 2025-04-24 04:22:05 [2025-04-24 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977130', 'tblTempUsageDetail_20' ) start [2025-04-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977130', 'tblTempUsageDetail_20' ) end [2025-04-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977130', 'tblTempVendorCDR_20' ) start [2025-04-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977130', 'tblTempVendorCDR_20' ) end [2025-04-24 04:22:17] Production.INFO: ProcessCDR(1,14977130,1,1,2) [2025-04-24 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977130', 'tblTempUsageDetail_20' ) start [2025-04-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977130', 'tblTempUsageDetail_20' ) end [2025-04-24 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:22:21] Production.INFO: ==31335== Releasing lock... [2025-04-24 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:23:05 [end_date_ymd] => 2025-04-24 04:23:05 [RateCDR] => 1 ) [2025-04-24 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:23:05' and `end` < '2025-04-24 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:23:18] Production.INFO: count ==322 [2025-04-24 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:23:05 - End Time 2025-04-24 04:23:05 [2025-04-24 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977135', 'tblTempUsageDetail_20' ) start [2025-04-24 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977135', 'tblTempUsageDetail_20' ) end [2025-04-24 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977135', 'tblTempVendorCDR_20' ) start [2025-04-24 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977135', 'tblTempVendorCDR_20' ) end [2025-04-24 04:23:18] Production.INFO: ProcessCDR(1,14977135,1,1,2) [2025-04-24 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977135', 'tblTempUsageDetail_20' ) start [2025-04-24 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977135', 'tblTempUsageDetail_20' ) end [2025-04-24 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:23:21] Production.INFO: ==31405== Releasing lock... [2025-04-24 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:24:05 [end_date_ymd] => 2025-04-24 04:24:05 [RateCDR] => 1 ) [2025-04-24 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:24:05' and `end` < '2025-04-24 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:24:17] Production.INFO: count ==321 [2025-04-24 04:24:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:24:05 - End Time 2025-04-24 04:24:05 [2025-04-24 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977140', 'tblTempUsageDetail_20' ) start [2025-04-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977140', 'tblTempUsageDetail_20' ) end [2025-04-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977140', 'tblTempVendorCDR_20' ) start [2025-04-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977140', 'tblTempVendorCDR_20' ) end [2025-04-24 04:24:18] Production.INFO: ProcessCDR(1,14977140,1,1,2) [2025-04-24 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977140', 'tblTempUsageDetail_20' ) start [2025-04-24 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977140', 'tblTempUsageDetail_20' ) end [2025-04-24 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:24:21] Production.INFO: ==31476== Releasing lock... [2025-04-24 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:25:05 [end_date_ymd] => 2025-04-24 04:25:05 [RateCDR] => 1 ) [2025-04-24 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:25:05' and `end` < '2025-04-24 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:25:17] Production.INFO: count ==320 [2025-04-24 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:25:05 - End Time 2025-04-24 04:25:05 [2025-04-24 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977145', 'tblTempUsageDetail_20' ) start [2025-04-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977145', 'tblTempUsageDetail_20' ) end [2025-04-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977145', 'tblTempVendorCDR_20' ) start [2025-04-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977145', 'tblTempVendorCDR_20' ) end [2025-04-24 04:25:18] Production.INFO: ProcessCDR(1,14977145,1,1,2) [2025-04-24 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977145', 'tblTempUsageDetail_20' ) start [2025-04-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977145', 'tblTempUsageDetail_20' ) end [2025-04-24 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:25:21] Production.INFO: ==31551== Releasing lock... [2025-04-24 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:26:05 [end_date_ymd] => 2025-04-24 04:26:05 [RateCDR] => 1 ) [2025-04-24 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:26:05' and `end` < '2025-04-24 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:26:17] Production.INFO: count ==320 [2025-04-24 04:26:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:26:05 - End Time 2025-04-24 04:26:05 [2025-04-24 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977150', 'tblTempUsageDetail_20' ) start [2025-04-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977150', 'tblTempUsageDetail_20' ) end [2025-04-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977150', 'tblTempVendorCDR_20' ) start [2025-04-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977150', 'tblTempVendorCDR_20' ) end [2025-04-24 04:26:17] Production.INFO: ProcessCDR(1,14977150,1,1,2) [2025-04-24 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977150', 'tblTempUsageDetail_20' ) start [2025-04-24 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977150', 'tblTempUsageDetail_20' ) end [2025-04-24 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:26:21] Production.INFO: ==31621== Releasing lock... [2025-04-24 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:27:06 [end_date_ymd] => 2025-04-24 04:27:06 [RateCDR] => 1 ) [2025-04-24 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:27:06' and `end` < '2025-04-24 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:27:18] Production.INFO: count ==320 [2025-04-24 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:27:06 - End Time 2025-04-24 04:27:06 [2025-04-24 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977155', 'tblTempUsageDetail_20' ) start [2025-04-24 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977155', 'tblTempUsageDetail_20' ) end [2025-04-24 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977155', 'tblTempVendorCDR_20' ) start [2025-04-24 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977155', 'tblTempVendorCDR_20' ) end [2025-04-24 04:27:18] Production.INFO: ProcessCDR(1,14977155,1,1,2) [2025-04-24 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977155', 'tblTempUsageDetail_20' ) start [2025-04-24 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977155', 'tblTempUsageDetail_20' ) end [2025-04-24 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:27:22] Production.INFO: ==31698== Releasing lock... [2025-04-24 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:28:04 [end_date_ymd] => 2025-04-24 04:28:04 [RateCDR] => 1 ) [2025-04-24 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:28:04' and `end` < '2025-04-24 04:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:28:17] Production.INFO: count ==320 [2025-04-24 04:28:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:28:04 - End Time 2025-04-24 04:28:04 [2025-04-24 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977160', 'tblTempUsageDetail_20' ) start [2025-04-24 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977160', 'tblTempUsageDetail_20' ) end [2025-04-24 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977160', 'tblTempVendorCDR_20' ) start [2025-04-24 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977160', 'tblTempVendorCDR_20' ) end [2025-04-24 04:28:17] Production.INFO: ProcessCDR(1,14977160,1,1,2) [2025-04-24 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977160', 'tblTempUsageDetail_20' ) start [2025-04-24 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977160', 'tblTempUsageDetail_20' ) end [2025-04-24 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:28:20] Production.INFO: ==31770== Releasing lock... [2025-04-24 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:29:05 [end_date_ymd] => 2025-04-24 04:29:05 [RateCDR] => 1 ) [2025-04-24 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:29:05' and `end` < '2025-04-24 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:29:17] Production.INFO: count ==319 [2025-04-24 04:29:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:29:05 - End Time 2025-04-24 04:29:05 [2025-04-24 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977165', 'tblTempUsageDetail_20' ) start [2025-04-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977165', 'tblTempUsageDetail_20' ) end [2025-04-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977165', 'tblTempVendorCDR_20' ) start [2025-04-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977165', 'tblTempVendorCDR_20' ) end [2025-04-24 04:29:17] Production.INFO: ProcessCDR(1,14977165,1,1,2) [2025-04-24 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977165', 'tblTempUsageDetail_20' ) start [2025-04-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977165', 'tblTempUsageDetail_20' ) end [2025-04-24 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:29:21] Production.INFO: ==31846== Releasing lock... [2025-04-24 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:30:07 [end_date_ymd] => 2025-04-24 04:30:07 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:30:07' and `end` < '2025-04-24 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-04-24 04:30:20] Production.INFO: count ==312 [2025-04-24 04:30:20] Production.ERROR: pbx CDR StartTime 2025-04-24 01:30:07 - End Time 2025-04-24 04:30:07 [2025-04-24 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977172', 'tblTempUsageDetail_20' ) start [2025-04-24 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977172', 'tblTempUsageDetail_20' ) end [2025-04-24 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977172', 'tblTempVendorCDR_20' ) start [2025-04-24 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977172', 'tblTempVendorCDR_20' ) end [2025-04-24 04:30:20] Production.INFO: ProcessCDR(1,14977172,1,1,2) [2025-04-24 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977172', 'tblTempUsageDetail_20' ) start [2025-04-24 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977172', 'tblTempUsageDetail_20' ) end [2025-04-24 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:30:23] Production.INFO: ==31920== Releasing lock... [2025-04-24 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:31:05 [end_date_ymd] => 2025-04-24 04:31:05 [RateCDR] => 1 ) [2025-04-24 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:31:05' and `end` < '2025-04-24 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:31:18] Production.INFO: count ==312 [2025-04-24 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:31:05 - End Time 2025-04-24 04:31:05 [2025-04-24 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977177', 'tblTempUsageDetail_20' ) start [2025-04-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977177', 'tblTempUsageDetail_20' ) end [2025-04-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977177', 'tblTempVendorCDR_20' ) start [2025-04-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977177', 'tblTempVendorCDR_20' ) end [2025-04-24 04:31:18] Production.INFO: ProcessCDR(1,14977177,1,1,2) [2025-04-24 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977177', 'tblTempUsageDetail_20' ) start [2025-04-24 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977177', 'tblTempUsageDetail_20' ) end [2025-04-24 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:31:21] Production.INFO: ==32009== Releasing lock... [2025-04-24 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:32:06 [end_date_ymd] => 2025-04-24 04:32:06 [RateCDR] => 1 ) [2025-04-24 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:32:06' and `end` < '2025-04-24 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:32:18] Production.INFO: count ==312 [2025-04-24 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:32:06 - End Time 2025-04-24 04:32:06 [2025-04-24 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977182', 'tblTempUsageDetail_20' ) start [2025-04-24 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977182', 'tblTempUsageDetail_20' ) end [2025-04-24 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977182', 'tblTempVendorCDR_20' ) start [2025-04-24 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977182', 'tblTempVendorCDR_20' ) end [2025-04-24 04:32:18] Production.INFO: ProcessCDR(1,14977182,1,1,2) [2025-04-24 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977182', 'tblTempUsageDetail_20' ) start [2025-04-24 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977182', 'tblTempUsageDetail_20' ) end [2025-04-24 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:32:22] Production.INFO: ==32081== Releasing lock... [2025-04-24 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:33:05 [end_date_ymd] => 2025-04-24 04:33:05 [RateCDR] => 1 ) [2025-04-24 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:33:05' and `end` < '2025-04-24 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:33:18] Production.INFO: count ==310 [2025-04-24 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:33:05 - End Time 2025-04-24 04:33:05 [2025-04-24 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977187', 'tblTempUsageDetail_20' ) start [2025-04-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977187', 'tblTempUsageDetail_20' ) end [2025-04-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977187', 'tblTempVendorCDR_20' ) start [2025-04-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977187', 'tblTempVendorCDR_20' ) end [2025-04-24 04:33:18] Production.INFO: ProcessCDR(1,14977187,1,1,2) [2025-04-24 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977187', 'tblTempUsageDetail_20' ) start [2025-04-24 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977187', 'tblTempUsageDetail_20' ) end [2025-04-24 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:33:22] Production.INFO: ==32150== Releasing lock... [2025-04-24 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:33:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:34:06 [end_date_ymd] => 2025-04-24 04:34:06 [RateCDR] => 1 ) [2025-04-24 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:34:06' and `end` < '2025-04-24 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:34:18] Production.INFO: count ==310 [2025-04-24 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:34:06 - End Time 2025-04-24 04:34:06 [2025-04-24 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977192', 'tblTempUsageDetail_20' ) start [2025-04-24 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977192', 'tblTempUsageDetail_20' ) end [2025-04-24 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977192', 'tblTempVendorCDR_20' ) start [2025-04-24 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977192', 'tblTempVendorCDR_20' ) end [2025-04-24 04:34:18] Production.INFO: ProcessCDR(1,14977192,1,1,2) [2025-04-24 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977192', 'tblTempUsageDetail_20' ) start [2025-04-24 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977192', 'tblTempUsageDetail_20' ) end [2025-04-24 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:34:22] Production.INFO: ==32221== Releasing lock... [2025-04-24 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:35:05 [end_date_ymd] => 2025-04-24 04:35:05 [RateCDR] => 1 ) [2025-04-24 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:35:05' and `end` < '2025-04-24 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:35:17] Production.INFO: count ==310 [2025-04-24 04:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:35:05 - End Time 2025-04-24 04:35:05 [2025-04-24 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977197', 'tblTempUsageDetail_20' ) start [2025-04-24 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977197', 'tblTempUsageDetail_20' ) end [2025-04-24 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977197', 'tblTempVendorCDR_20' ) start [2025-04-24 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977197', 'tblTempVendorCDR_20' ) end [2025-04-24 04:35:17] Production.INFO: ProcessCDR(1,14977197,1,1,2) [2025-04-24 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977197', 'tblTempUsageDetail_20' ) start [2025-04-24 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977197', 'tblTempUsageDetail_20' ) end [2025-04-24 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:35:21] Production.INFO: ==32293== Releasing lock... [2025-04-24 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:36:05 [end_date_ymd] => 2025-04-24 04:36:05 [RateCDR] => 1 ) [2025-04-24 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:36:05' and `end` < '2025-04-24 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:36:18] Production.INFO: count ==310 [2025-04-24 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:36:05 - End Time 2025-04-24 04:36:05 [2025-04-24 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977202', 'tblTempUsageDetail_20' ) start [2025-04-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977202', 'tblTempUsageDetail_20' ) end [2025-04-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977202', 'tblTempVendorCDR_20' ) start [2025-04-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977202', 'tblTempVendorCDR_20' ) end [2025-04-24 04:36:18] Production.INFO: ProcessCDR(1,14977202,1,1,2) [2025-04-24 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977202', 'tblTempUsageDetail_20' ) start [2025-04-24 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977202', 'tblTempUsageDetail_20' ) end [2025-04-24 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:36:21] Production.INFO: ==32365== Releasing lock... [2025-04-24 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:37:05 [end_date_ymd] => 2025-04-24 04:37:05 [RateCDR] => 1 ) [2025-04-24 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:37:05' and `end` < '2025-04-24 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:37:17] Production.INFO: count ==309 [2025-04-24 04:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:37:05 - End Time 2025-04-24 04:37:05 [2025-04-24 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977207', 'tblTempUsageDetail_20' ) start [2025-04-24 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977207', 'tblTempUsageDetail_20' ) end [2025-04-24 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977207', 'tblTempVendorCDR_20' ) start [2025-04-24 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977207', 'tblTempVendorCDR_20' ) end [2025-04-24 04:37:17] Production.INFO: ProcessCDR(1,14977207,1,1,2) [2025-04-24 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977207', 'tblTempUsageDetail_20' ) start [2025-04-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977207', 'tblTempUsageDetail_20' ) end [2025-04-24 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:37:21] Production.INFO: ==32473== Releasing lock... [2025-04-24 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:38:05 [end_date_ymd] => 2025-04-24 04:38:05 [RateCDR] => 1 ) [2025-04-24 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:38:05' and `end` < '2025-04-24 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:38:17] Production.INFO: count ==307 [2025-04-24 04:38:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:38:05 - End Time 2025-04-24 04:38:05 [2025-04-24 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977212', 'tblTempUsageDetail_20' ) start [2025-04-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977212', 'tblTempUsageDetail_20' ) end [2025-04-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977212', 'tblTempVendorCDR_20' ) start [2025-04-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977212', 'tblTempVendorCDR_20' ) end [2025-04-24 04:38:17] Production.INFO: ProcessCDR(1,14977212,1,1,2) [2025-04-24 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977212', 'tblTempUsageDetail_20' ) start [2025-04-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977212', 'tblTempUsageDetail_20' ) end [2025-04-24 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:38:21] Production.INFO: ==32546== Releasing lock... [2025-04-24 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:39:04 [end_date_ymd] => 2025-04-24 04:39:04 [RateCDR] => 1 ) [2025-04-24 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:39:04' and `end` < '2025-04-24 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:39:17] Production.INFO: count ==307 [2025-04-24 04:39:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:39:04 - End Time 2025-04-24 04:39:04 [2025-04-24 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977217', 'tblTempUsageDetail_20' ) start [2025-04-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977217', 'tblTempUsageDetail_20' ) end [2025-04-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977217', 'tblTempVendorCDR_20' ) start [2025-04-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977217', 'tblTempVendorCDR_20' ) end [2025-04-24 04:39:17] Production.INFO: ProcessCDR(1,14977217,1,1,2) [2025-04-24 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977217', 'tblTempUsageDetail_20' ) start [2025-04-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977217', 'tblTempUsageDetail_20' ) end [2025-04-24 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:39:20] Production.INFO: ==32621== Releasing lock... [2025-04-24 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:40:05 [end_date_ymd] => 2025-04-24 04:40:05 [RateCDR] => 1 ) [2025-04-24 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:40:05' and `end` < '2025-04-24 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:40:18] Production.INFO: count ==301 [2025-04-24 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:40:05 - End Time 2025-04-24 04:40:05 [2025-04-24 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977222', 'tblTempUsageDetail_20' ) start [2025-04-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977222', 'tblTempUsageDetail_20' ) end [2025-04-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977222', 'tblTempVendorCDR_20' ) start [2025-04-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977222', 'tblTempVendorCDR_20' ) end [2025-04-24 04:40:18] Production.INFO: ProcessCDR(1,14977222,1,1,2) [2025-04-24 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977222', 'tblTempUsageDetail_20' ) start [2025-04-24 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977222', 'tblTempUsageDetail_20' ) end [2025-04-24 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:40:21] Production.INFO: ==32693== Releasing lock... [2025-04-24 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:40:21] Production.INFO: 31 MB #Memory Used# [2025-04-24 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:41:06 [end_date_ymd] => 2025-04-24 04:41:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:41:06' and `end` < '2025-04-24 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-04-24 04:41:18] Production.INFO: count ==291 [2025-04-24 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:41:06 - End Time 2025-04-24 04:41:06 [2025-04-24 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977228', 'tblTempUsageDetail_20' ) start [2025-04-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977228', 'tblTempUsageDetail_20' ) end [2025-04-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977228', 'tblTempVendorCDR_20' ) start [2025-04-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977228', 'tblTempVendorCDR_20' ) end [2025-04-24 04:41:18] Production.INFO: ProcessCDR(1,14977228,1,1,2) [2025-04-24 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977228', 'tblTempUsageDetail_20' ) start [2025-04-24 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977228', 'tblTempUsageDetail_20' ) end [2025-04-24 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:41:22] Production.INFO: ==32765== Releasing lock... [2025-04-24 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:42:05 [end_date_ymd] => 2025-04-24 04:42:05 [RateCDR] => 1 ) [2025-04-24 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:42:05' and `end` < '2025-04-24 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:42:18] Production.INFO: count ==289 [2025-04-24 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:42:05 - End Time 2025-04-24 04:42:05 [2025-04-24 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977233', 'tblTempUsageDetail_20' ) start [2025-04-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977233', 'tblTempUsageDetail_20' ) end [2025-04-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977233', 'tblTempVendorCDR_20' ) start [2025-04-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977233', 'tblTempVendorCDR_20' ) end [2025-04-24 04:42:18] Production.INFO: ProcessCDR(1,14977233,1,1,2) [2025-04-24 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977233', 'tblTempUsageDetail_20' ) start [2025-04-24 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977233', 'tblTempUsageDetail_20' ) end [2025-04-24 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:42:21] Production.INFO: ==396== Releasing lock... [2025-04-24 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:43:06 [end_date_ymd] => 2025-04-24 04:43:06 [RateCDR] => 1 ) [2025-04-24 04:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:43:06' and `end` < '2025-04-24 04:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:43:18] Production.INFO: count ==291 [2025-04-24 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:43:06 - End Time 2025-04-24 04:43:06 [2025-04-24 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977238', 'tblTempUsageDetail_20' ) start [2025-04-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977238', 'tblTempUsageDetail_20' ) end [2025-04-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977238', 'tblTempVendorCDR_20' ) start [2025-04-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977238', 'tblTempVendorCDR_20' ) end [2025-04-24 04:43:18] Production.INFO: ProcessCDR(1,14977238,1,1,2) [2025-04-24 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977238', 'tblTempUsageDetail_20' ) start [2025-04-24 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977238', 'tblTempUsageDetail_20' ) end [2025-04-24 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:43:22] Production.INFO: ==477== Releasing lock... [2025-04-24 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:44:05 [end_date_ymd] => 2025-04-24 04:44:05 [RateCDR] => 1 ) [2025-04-24 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:44:05' and `end` < '2025-04-24 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:44:17] Production.INFO: count ==291 [2025-04-24 04:44:17] Production.ERROR: pbx CDR StartTime 2025-04-24 01:44:05 - End Time 2025-04-24 04:44:05 [2025-04-24 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977243', 'tblTempUsageDetail_20' ) start [2025-04-24 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977243', 'tblTempUsageDetail_20' ) end [2025-04-24 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977243', 'tblTempVendorCDR_20' ) start [2025-04-24 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977243', 'tblTempVendorCDR_20' ) end [2025-04-24 04:44:17] Production.INFO: ProcessCDR(1,14977243,1,1,2) [2025-04-24 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977243', 'tblTempUsageDetail_20' ) start [2025-04-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977243', 'tblTempUsageDetail_20' ) end [2025-04-24 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:44:21] Production.INFO: ==550== Releasing lock... [2025-04-24 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:45:05 [end_date_ymd] => 2025-04-24 04:45:05 [RateCDR] => 1 ) [2025-04-24 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:45:05' and `end` < '2025-04-24 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:45:18] Production.INFO: count ==291 [2025-04-24 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:45:05 - End Time 2025-04-24 04:45:05 [2025-04-24 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977248', 'tblTempUsageDetail_20' ) start [2025-04-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977248', 'tblTempUsageDetail_20' ) end [2025-04-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977248', 'tblTempVendorCDR_20' ) start [2025-04-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977248', 'tblTempVendorCDR_20' ) end [2025-04-24 04:45:18] Production.INFO: ProcessCDR(1,14977248,1,1,2) [2025-04-24 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977248', 'tblTempUsageDetail_20' ) start [2025-04-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977248', 'tblTempUsageDetail_20' ) end [2025-04-24 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:45:21] Production.INFO: ==627== Releasing lock... [2025-04-24 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:46:05 [end_date_ymd] => 2025-04-24 04:46:05 [RateCDR] => 1 ) [2025-04-24 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:46:05' and `end` < '2025-04-24 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:46:18] Production.INFO: count ==291 [2025-04-24 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:46:05 - End Time 2025-04-24 04:46:05 [2025-04-24 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977253', 'tblTempUsageDetail_20' ) start [2025-04-24 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977253', 'tblTempUsageDetail_20' ) end [2025-04-24 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977253', 'tblTempVendorCDR_20' ) start [2025-04-24 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977253', 'tblTempVendorCDR_20' ) end [2025-04-24 04:46:18] Production.INFO: ProcessCDR(1,14977253,1,1,2) [2025-04-24 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977253', 'tblTempUsageDetail_20' ) start [2025-04-24 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977253', 'tblTempUsageDetail_20' ) end [2025-04-24 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:46:21] Production.INFO: ==722== Releasing lock... [2025-04-24 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:47:06 [end_date_ymd] => 2025-04-24 04:47:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:47:06' and `end` < '2025-04-24 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-04-24 04:47:18] Production.INFO: count ==291 [2025-04-24 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:47:06 - End Time 2025-04-24 04:47:06 [2025-04-24 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977258', 'tblTempUsageDetail_20' ) start [2025-04-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977258', 'tblTempUsageDetail_20' ) end [2025-04-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977258', 'tblTempVendorCDR_20' ) start [2025-04-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977258', 'tblTempVendorCDR_20' ) end [2025-04-24 04:47:19] Production.INFO: ProcessCDR(1,14977258,1,1,2) [2025-04-24 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977258', 'tblTempUsageDetail_20' ) start [2025-04-24 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977258', 'tblTempUsageDetail_20' ) end [2025-04-24 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:47:22] Production.INFO: ==796== Releasing lock... [2025-04-24 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:48:05 [end_date_ymd] => 2025-04-24 04:48:05 [RateCDR] => 1 ) [2025-04-24 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:48:05' and `end` < '2025-04-24 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:48:20] Production.INFO: count ==291 [2025-04-24 04:48:20] Production.ERROR: pbx CDR StartTime 2025-04-24 01:48:05 - End Time 2025-04-24 04:48:05 [2025-04-24 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977263', 'tblTempUsageDetail_20' ) start [2025-04-24 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977263', 'tblTempUsageDetail_20' ) end [2025-04-24 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977263', 'tblTempVendorCDR_20' ) start [2025-04-24 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977263', 'tblTempVendorCDR_20' ) end [2025-04-24 04:48:20] Production.INFO: ProcessCDR(1,14977263,1,1,2) [2025-04-24 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977263', 'tblTempUsageDetail_20' ) start [2025-04-24 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977263', 'tblTempUsageDetail_20' ) end [2025-04-24 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:48:24] Production.INFO: ==870== Releasing lock... [2025-04-24 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:48:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:49:05 [end_date_ymd] => 2025-04-24 04:49:05 [RateCDR] => 1 ) [2025-04-24 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:49:05' and `end` < '2025-04-24 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:49:18] Production.INFO: count ==292 [2025-04-24 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:49:05 - End Time 2025-04-24 04:49:05 [2025-04-24 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977268', 'tblTempUsageDetail_20' ) start [2025-04-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977268', 'tblTempUsageDetail_20' ) end [2025-04-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977268', 'tblTempVendorCDR_20' ) start [2025-04-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977268', 'tblTempVendorCDR_20' ) end [2025-04-24 04:49:18] Production.INFO: ProcessCDR(1,14977268,1,1,2) [2025-04-24 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977268', 'tblTempUsageDetail_20' ) start [2025-04-24 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977268', 'tblTempUsageDetail_20' ) end [2025-04-24 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:49:22] Production.INFO: ==944== Releasing lock... [2025-04-24 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:50:05 [end_date_ymd] => 2025-04-24 04:50:05 [RateCDR] => 1 ) [2025-04-24 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:50:05' and `end` < '2025-04-24 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-04-24 04:50:18] Production.INFO: count ==285 [2025-04-24 04:50:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:50:05 - End Time 2025-04-24 04:50:05 [2025-04-24 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977273', 'tblTempUsageDetail_20' ) start [2025-04-24 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977273', 'tblTempUsageDetail_20' ) end [2025-04-24 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977273', 'tblTempVendorCDR_20' ) start [2025-04-24 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977273', 'tblTempVendorCDR_20' ) end [2025-04-24 04:50:18] Production.INFO: ProcessCDR(1,14977273,1,1,2) [2025-04-24 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977273', 'tblTempUsageDetail_20' ) start [2025-04-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977273', 'tblTempUsageDetail_20' ) end [2025-04-24 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:50:22] Production.INFO: ==1016== Releasing lock... [2025-04-24 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:51:05 [end_date_ymd] => 2025-04-24 04:51:05 [RateCDR] => 1 ) [2025-04-24 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:51:05' and `end` < '2025-04-24 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:51:18] Production.INFO: count ==276 [2025-04-24 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:51:05 - End Time 2025-04-24 04:51:05 [2025-04-24 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977279', 'tblTempUsageDetail_20' ) start [2025-04-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977279', 'tblTempUsageDetail_20' ) end [2025-04-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977279', 'tblTempVendorCDR_20' ) start [2025-04-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977279', 'tblTempVendorCDR_20' ) end [2025-04-24 04:51:18] Production.INFO: ProcessCDR(1,14977279,1,1,2) [2025-04-24 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977279', 'tblTempUsageDetail_20' ) start [2025-04-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977279', 'tblTempUsageDetail_20' ) end [2025-04-24 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:51:21] Production.INFO: ==1091== Releasing lock... [2025-04-24 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:52:04 [end_date_ymd] => 2025-04-24 04:52:04 [RateCDR] => 1 ) [2025-04-24 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:52:04' and `end` < '2025-04-24 04:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:52:18] Production.INFO: count ==274 [2025-04-24 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:52:04 - End Time 2025-04-24 04:52:04 [2025-04-24 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977284', 'tblTempUsageDetail_20' ) start [2025-04-24 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977284', 'tblTempUsageDetail_20' ) end [2025-04-24 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977284', 'tblTempVendorCDR_20' ) start [2025-04-24 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977284', 'tblTempVendorCDR_20' ) end [2025-04-24 04:52:18] Production.INFO: ProcessCDR(1,14977284,1,1,2) [2025-04-24 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977284', 'tblTempUsageDetail_20' ) start [2025-04-24 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977284', 'tblTempUsageDetail_20' ) end [2025-04-24 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:52:21] Production.INFO: ==1175== Releasing lock... [2025-04-24 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:53:05 [end_date_ymd] => 2025-04-24 04:53:05 [RateCDR] => 1 ) [2025-04-24 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:53:05' and `end` < '2025-04-24 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:53:18] Production.INFO: count ==272 [2025-04-24 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:53:05 - End Time 2025-04-24 04:53:05 [2025-04-24 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977289', 'tblTempUsageDetail_20' ) start [2025-04-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977289', 'tblTempUsageDetail_20' ) end [2025-04-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977289', 'tblTempVendorCDR_20' ) start [2025-04-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977289', 'tblTempVendorCDR_20' ) end [2025-04-24 04:53:18] Production.INFO: ProcessCDR(1,14977289,1,1,2) [2025-04-24 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977289', 'tblTempUsageDetail_20' ) start [2025-04-24 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977289', 'tblTempUsageDetail_20' ) end [2025-04-24 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:53:21] Production.INFO: ==1295== Releasing lock... [2025-04-24 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:54:06 [end_date_ymd] => 2025-04-24 04:54:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:54:06' and `end` < '2025-04-24 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-04-24 04:54:19] Production.INFO: count ==271 [2025-04-24 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:54:06 - End Time 2025-04-24 04:54:06 [2025-04-24 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977294', 'tblTempUsageDetail_20' ) start [2025-04-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977294', 'tblTempUsageDetail_20' ) end [2025-04-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977294', 'tblTempVendorCDR_20' ) start [2025-04-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977294', 'tblTempVendorCDR_20' ) end [2025-04-24 04:54:19] Production.INFO: ProcessCDR(1,14977294,1,1,2) [2025-04-24 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977294', 'tblTempUsageDetail_20' ) start [2025-04-24 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977294', 'tblTempUsageDetail_20' ) end [2025-04-24 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:54:22] Production.INFO: ==1369== Releasing lock... [2025-04-24 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:55:06 [end_date_ymd] => 2025-04-24 04:55:06 [RateCDR] => 1 ) [2025-04-24 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:55:06' and `end` < '2025-04-24 04:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:55:19] Production.INFO: count ==269 [2025-04-24 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:55:06 - End Time 2025-04-24 04:55:06 [2025-04-24 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977299', 'tblTempUsageDetail_20' ) start [2025-04-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977299', 'tblTempUsageDetail_20' ) end [2025-04-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977299', 'tblTempVendorCDR_20' ) start [2025-04-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977299', 'tblTempVendorCDR_20' ) end [2025-04-24 04:55:19] Production.INFO: ProcessCDR(1,14977299,1,1,2) [2025-04-24 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977299', 'tblTempUsageDetail_20' ) start [2025-04-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977299', 'tblTempUsageDetail_20' ) end [2025-04-24 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:55:22] Production.INFO: ==1441== Releasing lock... [2025-04-24 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:56:05 [end_date_ymd] => 2025-04-24 04:56:05 [RateCDR] => 1 ) [2025-04-24 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:56:05' and `end` < '2025-04-24 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:56:18] Production.INFO: count ==268 [2025-04-24 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:56:05 - End Time 2025-04-24 04:56:05 [2025-04-24 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977304', 'tblTempUsageDetail_20' ) start [2025-04-24 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977304', 'tblTempUsageDetail_20' ) end [2025-04-24 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977304', 'tblTempVendorCDR_20' ) start [2025-04-24 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977304', 'tblTempVendorCDR_20' ) end [2025-04-24 04:56:18] Production.INFO: ProcessCDR(1,14977304,1,1,2) [2025-04-24 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977304', 'tblTempUsageDetail_20' ) start [2025-04-24 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977304', 'tblTempUsageDetail_20' ) end [2025-04-24 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:56:22] Production.INFO: ==1543== Releasing lock... [2025-04-24 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:57:06 [end_date_ymd] => 2025-04-24 04:57:06 [RateCDR] => 1 ) [2025-04-24 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:57:06' and `end` < '2025-04-24 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:57:19] Production.INFO: count ==267 [2025-04-24 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:57:06 - End Time 2025-04-24 04:57:06 [2025-04-24 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977309', 'tblTempUsageDetail_20' ) start [2025-04-24 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977309', 'tblTempUsageDetail_20' ) end [2025-04-24 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977309', 'tblTempVendorCDR_20' ) start [2025-04-24 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977309', 'tblTempVendorCDR_20' ) end [2025-04-24 04:57:19] Production.INFO: ProcessCDR(1,14977309,1,1,2) [2025-04-24 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977309', 'tblTempUsageDetail_20' ) start [2025-04-24 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977309', 'tblTempUsageDetail_20' ) end [2025-04-24 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:57:22] Production.INFO: ==1620== Releasing lock... [2025-04-24 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:58:05 [end_date_ymd] => 2025-04-24 04:58:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 01:58:05' and `end` < '2025-04-24 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-04-24 04:58:18] Production.INFO: count ==267 [2025-04-24 04:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 01:58:05 - End Time 2025-04-24 04:58:05 [2025-04-24 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977314', 'tblTempUsageDetail_20' ) start [2025-04-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977314', 'tblTempUsageDetail_20' ) end [2025-04-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977314', 'tblTempVendorCDR_20' ) start [2025-04-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977314', 'tblTempVendorCDR_20' ) end [2025-04-24 04:58:18] Production.INFO: ProcessCDR(1,14977314,1,1,2) [2025-04-24 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977314', 'tblTempUsageDetail_20' ) start [2025-04-24 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977314', 'tblTempUsageDetail_20' ) end [2025-04-24 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:58:21] Production.INFO: ==1695== Releasing lock... [2025-04-24 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 01:59:06 [end_date_ymd] => 2025-04-24 04:59:06 [RateCDR] => 1 ) [2025-04-24 04:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 01:59:06' and `end` < '2025-04-24 04:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 04:59:19] Production.INFO: count ==267 [2025-04-24 04:59:19] Production.ERROR: pbx CDR StartTime 2025-04-24 01:59:06 - End Time 2025-04-24 04:59:06 [2025-04-24 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977319', 'tblTempUsageDetail_20' ) start [2025-04-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977319', 'tblTempUsageDetail_20' ) end [2025-04-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977319', 'tblTempVendorCDR_20' ) start [2025-04-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977319', 'tblTempVendorCDR_20' ) end [2025-04-24 04:59:19] Production.INFO: ProcessCDR(1,14977319,1,1,2) [2025-04-24 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977319', 'tblTempUsageDetail_20' ) start [2025-04-24 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977319', 'tblTempUsageDetail_20' ) end [2025-04-24 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 04:59:22] Production.INFO: ==1768== Releasing lock... [2025-04-24 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 04:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:00:06 [end_date_ymd] => 2025-04-24 05:00:06 [RateCDR] => 1 ) [2025-04-24 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:00:06' and `end` < '2025-04-24 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:00:18] Production.INFO: count ==264 [2025-04-24 05:00:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:00:06 - End Time 2025-04-24 05:00:06 [2025-04-24 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977324', 'tblTempUsageDetail_20' ) start [2025-04-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977324', 'tblTempUsageDetail_20' ) end [2025-04-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977324', 'tblTempVendorCDR_20' ) start [2025-04-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977324', 'tblTempVendorCDR_20' ) end [2025-04-24 05:00:18] Production.INFO: ProcessCDR(1,14977324,1,1,2) [2025-04-24 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977324', 'tblTempUsageDetail_20' ) start [2025-04-24 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977324', 'tblTempUsageDetail_20' ) end [2025-04-24 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:00:22] Production.INFO: ==1846== Releasing lock... [2025-04-24 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:01:06 [end_date_ymd] => 2025-04-24 05:01:06 [RateCDR] => 1 ) [2025-04-24 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:01:06' and `end` < '2025-04-24 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:01:19] Production.INFO: count ==257 [2025-04-24 05:01:19] Production.ERROR: pbx CDR StartTime 2025-04-24 02:01:06 - End Time 2025-04-24 05:01:06 [2025-04-24 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977330', 'tblTempUsageDetail_20' ) start [2025-04-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977330', 'tblTempUsageDetail_20' ) end [2025-04-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977330', 'tblTempVendorCDR_20' ) start [2025-04-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977330', 'tblTempVendorCDR_20' ) end [2025-04-24 05:01:19] Production.INFO: ProcessCDR(1,14977330,1,1,2) [2025-04-24 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977330', 'tblTempUsageDetail_20' ) start [2025-04-24 05:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977330', 'tblTempUsageDetail_20' ) end [2025-04-24 05:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:01:25] Production.INFO: ==1930== Releasing lock... [2025-04-24 05:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:01:25] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:02:05 [end_date_ymd] => 2025-04-24 05:02:05 [RateCDR] => 1 ) [2025-04-24 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:02:05' and `end` < '2025-04-24 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:02:19] Production.INFO: count ==256 [2025-04-24 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 02:02:05 - End Time 2025-04-24 05:02:05 [2025-04-24 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977335', 'tblTempUsageDetail_20' ) start [2025-04-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977335', 'tblTempUsageDetail_20' ) end [2025-04-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977335', 'tblTempVendorCDR_20' ) start [2025-04-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977335', 'tblTempVendorCDR_20' ) end [2025-04-24 05:02:19] Production.INFO: ProcessCDR(1,14977335,1,1,2) [2025-04-24 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977335', 'tblTempUsageDetail_20' ) start [2025-04-24 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977335', 'tblTempUsageDetail_20' ) end [2025-04-24 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:02:22] Production.INFO: ==2003== Releasing lock... [2025-04-24 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:03:06 [end_date_ymd] => 2025-04-24 05:03:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:03:06' and `end` < '2025-04-24 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-04-24 05:03:18] Production.INFO: count ==257 [2025-04-24 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:03:06 - End Time 2025-04-24 05:03:06 [2025-04-24 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977340', 'tblTempUsageDetail_20' ) start [2025-04-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977340', 'tblTempUsageDetail_20' ) end [2025-04-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977340', 'tblTempVendorCDR_20' ) start [2025-04-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977340', 'tblTempVendorCDR_20' ) end [2025-04-24 05:03:18] Production.INFO: ProcessCDR(1,14977340,1,1,2) [2025-04-24 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977340', 'tblTempUsageDetail_20' ) start [2025-04-24 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977340', 'tblTempUsageDetail_20' ) end [2025-04-24 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:03:22] Production.INFO: ==2074== Releasing lock... [2025-04-24 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:04:05 [end_date_ymd] => 2025-04-24 05:04:05 [RateCDR] => 1 ) [2025-04-24 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:04:05' and `end` < '2025-04-24 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:04:18] Production.INFO: count ==257 [2025-04-24 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:04:05 - End Time 2025-04-24 05:04:05 [2025-04-24 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977345', 'tblTempUsageDetail_20' ) start [2025-04-24 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977345', 'tblTempUsageDetail_20' ) end [2025-04-24 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977345', 'tblTempVendorCDR_20' ) start [2025-04-24 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977345', 'tblTempVendorCDR_20' ) end [2025-04-24 05:04:18] Production.INFO: ProcessCDR(1,14977345,1,1,2) [2025-04-24 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977345', 'tblTempUsageDetail_20' ) start [2025-04-24 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977345', 'tblTempUsageDetail_20' ) end [2025-04-24 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:04:22] Production.INFO: ==2145== Releasing lock... [2025-04-24 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:05:06 [end_date_ymd] => 2025-04-24 05:05:06 [RateCDR] => 1 ) [2025-04-24 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:05:06' and `end` < '2025-04-24 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:05:18] Production.INFO: count ==257 [2025-04-24 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:05:06 - End Time 2025-04-24 05:05:06 [2025-04-24 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977350', 'tblTempUsageDetail_20' ) start [2025-04-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977350', 'tblTempUsageDetail_20' ) end [2025-04-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977350', 'tblTempVendorCDR_20' ) start [2025-04-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977350', 'tblTempVendorCDR_20' ) end [2025-04-24 05:05:18] Production.INFO: ProcessCDR(1,14977350,1,1,2) [2025-04-24 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977350', 'tblTempUsageDetail_20' ) start [2025-04-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977350', 'tblTempUsageDetail_20' ) end [2025-04-24 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:05:21] Production.INFO: ==2223== Releasing lock... [2025-04-24 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:06:05 [end_date_ymd] => 2025-04-24 05:06:05 [RateCDR] => 1 ) [2025-04-24 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:06:05' and `end` < '2025-04-24 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:06:17] Production.INFO: count ==257 [2025-04-24 05:06:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:06:05 - End Time 2025-04-24 05:06:05 [2025-04-24 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977355', 'tblTempUsageDetail_20' ) start [2025-04-24 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977355', 'tblTempUsageDetail_20' ) end [2025-04-24 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977355', 'tblTempVendorCDR_20' ) start [2025-04-24 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977355', 'tblTempVendorCDR_20' ) end [2025-04-24 05:06:17] Production.INFO: ProcessCDR(1,14977355,1,1,2) [2025-04-24 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977355', 'tblTempUsageDetail_20' ) start [2025-04-24 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977355', 'tblTempUsageDetail_20' ) end [2025-04-24 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:06:21] Production.INFO: ==2306== Releasing lock... [2025-04-24 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:07:05 [end_date_ymd] => 2025-04-24 05:07:05 [RateCDR] => 1 ) [2025-04-24 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:07:05' and `end` < '2025-04-24 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:07:18] Production.INFO: count ==257 [2025-04-24 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:07:05 - End Time 2025-04-24 05:07:05 [2025-04-24 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977360', 'tblTempUsageDetail_20' ) start [2025-04-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977360', 'tblTempUsageDetail_20' ) end [2025-04-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977360', 'tblTempVendorCDR_20' ) start [2025-04-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977360', 'tblTempVendorCDR_20' ) end [2025-04-24 05:07:18] Production.INFO: ProcessCDR(1,14977360,1,1,2) [2025-04-24 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977360', 'tblTempUsageDetail_20' ) start [2025-04-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977360', 'tblTempUsageDetail_20' ) end [2025-04-24 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:07:21] Production.INFO: ==2379== Releasing lock... [2025-04-24 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:08:04 [end_date_ymd] => 2025-04-24 05:08:04 [RateCDR] => 1 ) [2025-04-24 05:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:08:04' and `end` < '2025-04-24 05:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:08:17] Production.INFO: count ==257 [2025-04-24 05:08:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:08:04 - End Time 2025-04-24 05:08:04 [2025-04-24 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977365', 'tblTempUsageDetail_20' ) start [2025-04-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977365', 'tblTempUsageDetail_20' ) end [2025-04-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977365', 'tblTempVendorCDR_20' ) start [2025-04-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977365', 'tblTempVendorCDR_20' ) end [2025-04-24 05:08:17] Production.INFO: ProcessCDR(1,14977365,1,1,2) [2025-04-24 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977365', 'tblTempUsageDetail_20' ) start [2025-04-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977365', 'tblTempUsageDetail_20' ) end [2025-04-24 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:08:21] Production.INFO: ==2492== Releasing lock... [2025-04-24 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:09:06 [end_date_ymd] => 2025-04-24 05:09:06 [RateCDR] => 1 ) [2025-04-24 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:09:06' and `end` < '2025-04-24 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:09:18] Production.INFO: count ==256 [2025-04-24 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:09:06 - End Time 2025-04-24 05:09:06 [2025-04-24 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977370', 'tblTempUsageDetail_20' ) start [2025-04-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977370', 'tblTempUsageDetail_20' ) end [2025-04-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977370', 'tblTempVendorCDR_20' ) start [2025-04-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977370', 'tblTempVendorCDR_20' ) end [2025-04-24 05:09:18] Production.INFO: ProcessCDR(1,14977370,1,1,2) [2025-04-24 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977370', 'tblTempUsageDetail_20' ) start [2025-04-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977370', 'tblTempUsageDetail_20' ) end [2025-04-24 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:09:22] Production.INFO: ==2563== Releasing lock... [2025-04-24 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:10:07 [end_date_ymd] => 2025-04-24 05:10:07 [RateCDR] => 1 ) [2025-04-24 05:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:10:07' and `end` < '2025-04-24 05:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:10:19] Production.INFO: count ==246 [2025-04-24 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 02:10:07 - End Time 2025-04-24 05:10:07 [2025-04-24 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977376', 'tblTempUsageDetail_20' ) start [2025-04-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977376', 'tblTempUsageDetail_20' ) end [2025-04-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977376', 'tblTempVendorCDR_20' ) start [2025-04-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977376', 'tblTempVendorCDR_20' ) end [2025-04-24 05:10:19] Production.INFO: ProcessCDR(1,14977376,1,1,2) [2025-04-24 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977376', 'tblTempUsageDetail_20' ) start [2025-04-24 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977376', 'tblTempUsageDetail_20' ) end [2025-04-24 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:10:23] Production.INFO: ==2636== Releasing lock... [2025-04-24 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:11:05 [end_date_ymd] => 2025-04-24 05:11:05 [RateCDR] => 1 ) [2025-04-24 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:11:05' and `end` < '2025-04-24 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:11:17] Production.INFO: count ==245 [2025-04-24 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:11:05 - End Time 2025-04-24 05:11:05 [2025-04-24 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977381', 'tblTempUsageDetail_20' ) start [2025-04-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977381', 'tblTempUsageDetail_20' ) end [2025-04-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977381', 'tblTempVendorCDR_20' ) start [2025-04-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977381', 'tblTempVendorCDR_20' ) end [2025-04-24 05:11:18] Production.INFO: ProcessCDR(1,14977381,1,1,2) [2025-04-24 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977381', 'tblTempUsageDetail_20' ) start [2025-04-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977381', 'tblTempUsageDetail_20' ) end [2025-04-24 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:11:21] Production.INFO: ==2706== Releasing lock... [2025-04-24 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:12:05 [end_date_ymd] => 2025-04-24 05:12:05 [RateCDR] => 1 ) [2025-04-24 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:12:05' and `end` < '2025-04-24 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:12:18] Production.INFO: count ==242 [2025-04-24 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:12:05 - End Time 2025-04-24 05:12:05 [2025-04-24 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977386', 'tblTempUsageDetail_20' ) start [2025-04-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977386', 'tblTempUsageDetail_20' ) end [2025-04-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977386', 'tblTempVendorCDR_20' ) start [2025-04-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977386', 'tblTempVendorCDR_20' ) end [2025-04-24 05:12:18] Production.INFO: ProcessCDR(1,14977386,1,1,2) [2025-04-24 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977386', 'tblTempUsageDetail_20' ) start [2025-04-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977386', 'tblTempUsageDetail_20' ) end [2025-04-24 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:12:21] Production.INFO: ==2780== Releasing lock... [2025-04-24 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:13:05 [end_date_ymd] => 2025-04-24 05:13:05 [RateCDR] => 1 ) [2025-04-24 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:13:05' and `end` < '2025-04-24 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:13:17] Production.INFO: count ==239 [2025-04-24 05:13:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:13:05 - End Time 2025-04-24 05:13:05 [2025-04-24 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977391', 'tblTempUsageDetail_20' ) start [2025-04-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977391', 'tblTempUsageDetail_20' ) end [2025-04-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977391', 'tblTempVendorCDR_20' ) start [2025-04-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977391', 'tblTempVendorCDR_20' ) end [2025-04-24 05:13:17] Production.INFO: ProcessCDR(1,14977391,1,1,2) [2025-04-24 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977391', 'tblTempUsageDetail_20' ) start [2025-04-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977391', 'tblTempUsageDetail_20' ) end [2025-04-24 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:13:21] Production.INFO: ==2856== Releasing lock... [2025-04-24 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:14:05 [end_date_ymd] => 2025-04-24 05:14:05 [RateCDR] => 1 ) [2025-04-24 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:14:05' and `end` < '2025-04-24 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:14:18] Production.INFO: count ==235 [2025-04-24 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:14:05 - End Time 2025-04-24 05:14:05 [2025-04-24 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977396', 'tblTempUsageDetail_20' ) start [2025-04-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977396', 'tblTempUsageDetail_20' ) end [2025-04-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977396', 'tblTempVendorCDR_20' ) start [2025-04-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977396', 'tblTempVendorCDR_20' ) end [2025-04-24 05:14:18] Production.INFO: ProcessCDR(1,14977396,1,1,2) [2025-04-24 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977396', 'tblTempUsageDetail_20' ) start [2025-04-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977396', 'tblTempUsageDetail_20' ) end [2025-04-24 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:14:21] Production.INFO: ==2925== Releasing lock... [2025-04-24 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:15:05 [end_date_ymd] => 2025-04-24 05:15:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:15:05' and `end` < '2025-04-24 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-04-24 05:15:17] Production.INFO: count ==232 [2025-04-24 05:15:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:15:05 - End Time 2025-04-24 05:15:05 [2025-04-24 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977401', 'tblTempUsageDetail_20' ) start [2025-04-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977401', 'tblTempUsageDetail_20' ) end [2025-04-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977401', 'tblTempVendorCDR_20' ) start [2025-04-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977401', 'tblTempVendorCDR_20' ) end [2025-04-24 05:15:17] Production.INFO: ProcessCDR(1,14977401,1,1,2) [2025-04-24 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977401', 'tblTempUsageDetail_20' ) start [2025-04-24 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977401', 'tblTempUsageDetail_20' ) end [2025-04-24 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:15:21] Production.INFO: ==2998== Releasing lock... [2025-04-24 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:16:04 [end_date_ymd] => 2025-04-24 05:16:04 [RateCDR] => 1 ) [2025-04-24 05: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-04-24 02:16:04' and `end` < '2025-04-24 05: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-04-24 05:16:17] Production.INFO: count ==227 [2025-04-24 05:16:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:16:04 - End Time 2025-04-24 05:16:04 [2025-04-24 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977405', 'tblTempUsageDetail_20' ) start [2025-04-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977405', 'tblTempUsageDetail_20' ) end [2025-04-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977405', 'tblTempVendorCDR_20' ) start [2025-04-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977405', 'tblTempVendorCDR_20' ) end [2025-04-24 05:16:17] Production.INFO: ProcessCDR(1,14977405,1,1,2) [2025-04-24 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977405', 'tblTempUsageDetail_20' ) start [2025-04-24 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977405', 'tblTempUsageDetail_20' ) end [2025-04-24 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:16:21] Production.INFO: ==3071== Releasing lock... [2025-04-24 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:17:04 [end_date_ymd] => 2025-04-24 05:17:04 [RateCDR] => 1 ) [2025-04-24 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:17:04' and `end` < '2025-04-24 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:17:17] Production.INFO: count ==225 [2025-04-24 05:17:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:17:04 - End Time 2025-04-24 05:17:04 [2025-04-24 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977411', 'tblTempUsageDetail_20' ) start [2025-04-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977411', 'tblTempUsageDetail_20' ) end [2025-04-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977411', 'tblTempVendorCDR_20' ) start [2025-04-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977411', 'tblTempVendorCDR_20' ) end [2025-04-24 05:17:17] Production.INFO: ProcessCDR(1,14977411,1,1,2) [2025-04-24 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977411', 'tblTempUsageDetail_20' ) start [2025-04-24 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977411', 'tblTempUsageDetail_20' ) end [2025-04-24 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:17:20] Production.INFO: ==3143== Releasing lock... [2025-04-24 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:17:20] Production.INFO: 30 MB #Memory Used# [2025-04-24 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:18:05 [end_date_ymd] => 2025-04-24 05:18:05 [RateCDR] => 1 ) [2025-04-24 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:18:05' and `end` < '2025-04-24 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:18:18] Production.INFO: count ==225 [2025-04-24 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:18:05 - End Time 2025-04-24 05:18:05 [2025-04-24 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977416', 'tblTempUsageDetail_20' ) start [2025-04-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977416', 'tblTempUsageDetail_20' ) end [2025-04-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977416', 'tblTempVendorCDR_20' ) start [2025-04-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977416', 'tblTempVendorCDR_20' ) end [2025-04-24 05:18:18] Production.INFO: ProcessCDR(1,14977416,1,1,2) [2025-04-24 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977416', 'tblTempUsageDetail_20' ) start [2025-04-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977416', 'tblTempUsageDetail_20' ) end [2025-04-24 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:18:21] Production.INFO: ==3228== Releasing lock... [2025-04-24 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:18:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:19:05 [end_date_ymd] => 2025-04-24 05:19:05 [RateCDR] => 1 ) [2025-04-24 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:19:05' and `end` < '2025-04-24 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:19:18] Production.INFO: count ==227 [2025-04-24 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:19:05 - End Time 2025-04-24 05:19:05 [2025-04-24 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977421', 'tblTempUsageDetail_20' ) start [2025-04-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977421', 'tblTempUsageDetail_20' ) end [2025-04-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977421', 'tblTempVendorCDR_20' ) start [2025-04-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977421', 'tblTempVendorCDR_20' ) end [2025-04-24 05:19:18] Production.INFO: ProcessCDR(1,14977421,1,1,2) [2025-04-24 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977421', 'tblTempUsageDetail_20' ) start [2025-04-24 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977421', 'tblTempUsageDetail_20' ) end [2025-04-24 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:19:21] Production.INFO: ==3301== Releasing lock... [2025-04-24 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:20:06 [end_date_ymd] => 2025-04-24 05:20:06 [RateCDR] => 1 ) [2025-04-24 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:20:06' and `end` < '2025-04-24 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:20:18] Production.INFO: count ==219 [2025-04-24 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:20:06 - End Time 2025-04-24 05:20:06 [2025-04-24 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977427', 'tblTempUsageDetail_20' ) start [2025-04-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977427', 'tblTempUsageDetail_20' ) end [2025-04-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977427', 'tblTempVendorCDR_20' ) start [2025-04-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977427', 'tblTempVendorCDR_20' ) end [2025-04-24 05:20:18] Production.INFO: ProcessCDR(1,14977427,1,1,2) [2025-04-24 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977427', 'tblTempUsageDetail_20' ) start [2025-04-24 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977427', 'tblTempUsageDetail_20' ) end [2025-04-24 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:20:22] Production.INFO: ==3380== Releasing lock... [2025-04-24 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:20:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:21:05 [end_date_ymd] => 2025-04-24 05:21:05 [RateCDR] => 1 ) [2025-04-24 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:21:05' and `end` < '2025-04-24 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:21:18] Production.INFO: count ==207 [2025-04-24 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:21:05 - End Time 2025-04-24 05:21:05 [2025-04-24 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977432', 'tblTempUsageDetail_20' ) start [2025-04-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977432', 'tblTempUsageDetail_20' ) end [2025-04-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977432', 'tblTempVendorCDR_20' ) start [2025-04-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977432', 'tblTempVendorCDR_20' ) end [2025-04-24 05:21:18] Production.INFO: ProcessCDR(1,14977432,1,1,2) [2025-04-24 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977432', 'tblTempUsageDetail_20' ) start [2025-04-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977432', 'tblTempUsageDetail_20' ) end [2025-04-24 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:21:22] Production.INFO: ==3453== Releasing lock... [2025-04-24 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:22:06 [end_date_ymd] => 2025-04-24 05:22:06 [RateCDR] => 1 ) [2025-04-24 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:22:06' and `end` < '2025-04-24 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:22:18] Production.INFO: count ==203 [2025-04-24 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:22:06 - End Time 2025-04-24 05:22:06 [2025-04-24 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977437', 'tblTempUsageDetail_20' ) start [2025-04-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977437', 'tblTempUsageDetail_20' ) end [2025-04-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977437', 'tblTempVendorCDR_20' ) start [2025-04-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977437', 'tblTempVendorCDR_20' ) end [2025-04-24 05:22:18] Production.INFO: ProcessCDR(1,14977437,1,1,2) [2025-04-24 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977437', 'tblTempUsageDetail_20' ) start [2025-04-24 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977437', 'tblTempUsageDetail_20' ) end [2025-04-24 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:22:22] Production.INFO: ==3525== Releasing lock... [2025-04-24 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:22:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:23:05 [end_date_ymd] => 2025-04-24 05:23:05 [RateCDR] => 1 ) [2025-04-24 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:23:05' and `end` < '2025-04-24 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:23:18] Production.INFO: count ==200 [2025-04-24 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:23:05 - End Time 2025-04-24 05:23:05 [2025-04-24 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977442', 'tblTempUsageDetail_20' ) start [2025-04-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977442', 'tblTempUsageDetail_20' ) end [2025-04-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977442', 'tblTempVendorCDR_20' ) start [2025-04-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977442', 'tblTempVendorCDR_20' ) end [2025-04-24 05:23:18] Production.INFO: ProcessCDR(1,14977442,1,1,2) [2025-04-24 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977442', 'tblTempUsageDetail_20' ) start [2025-04-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977442', 'tblTempUsageDetail_20' ) end [2025-04-24 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:23:21] Production.INFO: ==3595== Releasing lock... [2025-04-24 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:24:05 [end_date_ymd] => 2025-04-24 05:24:05 [RateCDR] => 1 ) [2025-04-24 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:24:05' and `end` < '2025-04-24 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:24:17] Production.INFO: count ==196 [2025-04-24 05:24:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:24:05 - End Time 2025-04-24 05:24:05 [2025-04-24 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977447', 'tblTempUsageDetail_20' ) start [2025-04-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977447', 'tblTempUsageDetail_20' ) end [2025-04-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977447', 'tblTempVendorCDR_20' ) start [2025-04-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977447', 'tblTempVendorCDR_20' ) end [2025-04-24 05:24:17] Production.INFO: ProcessCDR(1,14977447,1,1,2) [2025-04-24 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977447', 'tblTempUsageDetail_20' ) start [2025-04-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977447', 'tblTempUsageDetail_20' ) end [2025-04-24 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:24:21] Production.INFO: ==3703== Releasing lock... [2025-04-24 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:25:05 [end_date_ymd] => 2025-04-24 05:25:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:25:05' and `end` < '2025-04-24 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-04-24 05:25:18] Production.INFO: count ==193 [2025-04-24 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:25:05 - End Time 2025-04-24 05:25:05 [2025-04-24 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977452', 'tblTempUsageDetail_20' ) start [2025-04-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977452', 'tblTempUsageDetail_20' ) end [2025-04-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977452', 'tblTempVendorCDR_20' ) start [2025-04-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977452', 'tblTempVendorCDR_20' ) end [2025-04-24 05:25:18] Production.INFO: ProcessCDR(1,14977452,1,1,2) [2025-04-24 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977452', 'tblTempUsageDetail_20' ) start [2025-04-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977452', 'tblTempUsageDetail_20' ) end [2025-04-24 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:25:21] Production.INFO: ==3777== Releasing lock... [2025-04-24 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:26:05 [end_date_ymd] => 2025-04-24 05:26:05 [RateCDR] => 1 ) [2025-04-24 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:26:05' and `end` < '2025-04-24 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:26:17] Production.INFO: count ==190 [2025-04-24 05:26:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:26:05 - End Time 2025-04-24 05:26:05 [2025-04-24 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977457', 'tblTempUsageDetail_20' ) start [2025-04-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977457', 'tblTempUsageDetail_20' ) end [2025-04-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977457', 'tblTempVendorCDR_20' ) start [2025-04-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977457', 'tblTempVendorCDR_20' ) end [2025-04-24 05:26:17] Production.INFO: ProcessCDR(1,14977457,1,1,2) [2025-04-24 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977457', 'tblTempUsageDetail_20' ) start [2025-04-24 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977457', 'tblTempUsageDetail_20' ) end [2025-04-24 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:26:21] Production.INFO: ==3848== Releasing lock... [2025-04-24 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:27:05 [end_date_ymd] => 2025-04-24 05:27:05 [RateCDR] => 1 ) [2025-04-24 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:27:05' and `end` < '2025-04-24 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:27:18] Production.INFO: count ==185 [2025-04-24 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:27:05 - End Time 2025-04-24 05:27:05 [2025-04-24 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977462', 'tblTempUsageDetail_20' ) start [2025-04-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977462', 'tblTempUsageDetail_20' ) end [2025-04-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977462', 'tblTempVendorCDR_20' ) start [2025-04-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977462', 'tblTempVendorCDR_20' ) end [2025-04-24 05:27:18] Production.INFO: ProcessCDR(1,14977462,1,1,2) [2025-04-24 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977462', 'tblTempUsageDetail_20' ) start [2025-04-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977462', 'tblTempUsageDetail_20' ) end [2025-04-24 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:27:21] Production.INFO: ==3919== Releasing lock... [2025-04-24 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:28:04 [end_date_ymd] => 2025-04-24 05:28:04 [RateCDR] => 1 ) [2025-04-24 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:28:04' and `end` < '2025-04-24 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:28:17] Production.INFO: count ==184 [2025-04-24 05:28:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:28:04 - End Time 2025-04-24 05:28:04 [2025-04-24 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977467', 'tblTempUsageDetail_20' ) start [2025-04-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977467', 'tblTempUsageDetail_20' ) end [2025-04-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977467', 'tblTempVendorCDR_20' ) start [2025-04-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977467', 'tblTempVendorCDR_20' ) end [2025-04-24 05:28:17] Production.INFO: ProcessCDR(1,14977467,1,1,2) [2025-04-24 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977467', 'tblTempUsageDetail_20' ) start [2025-04-24 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977467', 'tblTempUsageDetail_20' ) end [2025-04-24 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:28:20] Production.INFO: ==3990== Releasing lock... [2025-04-24 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:29:05 [end_date_ymd] => 2025-04-24 05:29:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:29:05' and `end` < '2025-04-24 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-04-24 05:29:18] Production.INFO: count ==180 [2025-04-24 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:29:05 - End Time 2025-04-24 05:29:05 [2025-04-24 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977472', 'tblTempUsageDetail_20' ) start [2025-04-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977472', 'tblTempUsageDetail_20' ) end [2025-04-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977472', 'tblTempVendorCDR_20' ) start [2025-04-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977472', 'tblTempVendorCDR_20' ) end [2025-04-24 05:29:18] Production.INFO: ProcessCDR(1,14977472,1,1,2) [2025-04-24 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977472', 'tblTempUsageDetail_20' ) start [2025-04-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977472', 'tblTempUsageDetail_20' ) end [2025-04-24 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:29:21] Production.INFO: ==4067== Releasing lock... [2025-04-24 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:30:06 [end_date_ymd] => 2025-04-24 05:30:06 [RateCDR] => 1 ) [2025-04-24 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:30:06' and `end` < '2025-04-24 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:30:19] Production.INFO: count ==176 [2025-04-24 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-24 02:30:06 - End Time 2025-04-24 05:30:06 [2025-04-24 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977478', 'tblTempUsageDetail_20' ) start [2025-04-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977478', 'tblTempUsageDetail_20' ) end [2025-04-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977478', 'tblTempVendorCDR_20' ) start [2025-04-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977478', 'tblTempVendorCDR_20' ) end [2025-04-24 05:30:19] Production.INFO: ProcessCDR(1,14977478,1,1,2) [2025-04-24 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977478', 'tblTempUsageDetail_20' ) start [2025-04-24 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977478', 'tblTempUsageDetail_20' ) end [2025-04-24 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:30:22] Production.INFO: ==4150== Releasing lock... [2025-04-24 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:31:05 [end_date_ymd] => 2025-04-24 05:31:05 [RateCDR] => 1 ) [2025-04-24 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:31:05' and `end` < '2025-04-24 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:31:17] Production.INFO: count ==176 [2025-04-24 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:31:05 - End Time 2025-04-24 05:31:05 [2025-04-24 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977483', 'tblTempUsageDetail_20' ) start [2025-04-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977483', 'tblTempUsageDetail_20' ) end [2025-04-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977483', 'tblTempVendorCDR_20' ) start [2025-04-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977483', 'tblTempVendorCDR_20' ) end [2025-04-24 05:31:17] Production.INFO: ProcessCDR(1,14977483,1,1,2) [2025-04-24 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977483', 'tblTempUsageDetail_20' ) start [2025-04-24 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977483', 'tblTempUsageDetail_20' ) end [2025-04-24 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:31:21] Production.INFO: ==4233== Releasing lock... [2025-04-24 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:32:05 [end_date_ymd] => 2025-04-24 05:32:05 [RateCDR] => 1 ) [2025-04-24 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:32:05' and `end` < '2025-04-24 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:32:18] Production.INFO: count ==179 [2025-04-24 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:32:05 - End Time 2025-04-24 05:32:05 [2025-04-24 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977488', 'tblTempUsageDetail_20' ) start [2025-04-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977488', 'tblTempUsageDetail_20' ) end [2025-04-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977488', 'tblTempVendorCDR_20' ) start [2025-04-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977488', 'tblTempVendorCDR_20' ) end [2025-04-24 05:32:18] Production.INFO: ProcessCDR(1,14977488,1,1,2) [2025-04-24 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977488', 'tblTempUsageDetail_20' ) start [2025-04-24 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977488', 'tblTempUsageDetail_20' ) end [2025-04-24 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:32:21] Production.INFO: ==4316== Releasing lock... [2025-04-24 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:33:05 [end_date_ymd] => 2025-04-24 05:33:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:33:05' and `end` < '2025-04-24 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-04-24 05:33:17] Production.INFO: count ==180 [2025-04-24 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:33:05 - End Time 2025-04-24 05:33:05 [2025-04-24 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977493', 'tblTempUsageDetail_20' ) start [2025-04-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977493', 'tblTempUsageDetail_20' ) end [2025-04-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977493', 'tblTempVendorCDR_20' ) start [2025-04-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977493', 'tblTempVendorCDR_20' ) end [2025-04-24 05:33:17] Production.INFO: ProcessCDR(1,14977493,1,1,2) [2025-04-24 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977493', 'tblTempUsageDetail_20' ) start [2025-04-24 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977493', 'tblTempUsageDetail_20' ) end [2025-04-24 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:33:21] Production.INFO: ==4403== Releasing lock... [2025-04-24 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:34:06 [end_date_ymd] => 2025-04-24 05:34:06 [RateCDR] => 1 ) [2025-04-24 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:34:06' and `end` < '2025-04-24 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:34:18] Production.INFO: count ==179 [2025-04-24 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:34:06 - End Time 2025-04-24 05:34:06 [2025-04-24 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977498', 'tblTempUsageDetail_20' ) start [2025-04-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977498', 'tblTempUsageDetail_20' ) end [2025-04-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977498', 'tblTempVendorCDR_20' ) start [2025-04-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977498', 'tblTempVendorCDR_20' ) end [2025-04-24 05:34:18] Production.INFO: ProcessCDR(1,14977498,1,1,2) [2025-04-24 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977498', 'tblTempUsageDetail_20' ) start [2025-04-24 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977498', 'tblTempUsageDetail_20' ) end [2025-04-24 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:34:22] Production.INFO: ==4480== Releasing lock... [2025-04-24 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:35:05 [end_date_ymd] => 2025-04-24 05:35:05 [RateCDR] => 1 ) [2025-04-24 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:35:05' and `end` < '2025-04-24 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:35:17] Production.INFO: count ==177 [2025-04-24 05:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:35:05 - End Time 2025-04-24 05:35:05 [2025-04-24 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977503', 'tblTempUsageDetail_20' ) start [2025-04-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977503', 'tblTempUsageDetail_20' ) end [2025-04-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977503', 'tblTempVendorCDR_20' ) start [2025-04-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977503', 'tblTempVendorCDR_20' ) end [2025-04-24 05:35:17] Production.INFO: ProcessCDR(1,14977503,1,1,2) [2025-04-24 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977503', 'tblTempUsageDetail_20' ) start [2025-04-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977503', 'tblTempUsageDetail_20' ) end [2025-04-24 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:35:21] Production.INFO: ==4554== Releasing lock... [2025-04-24 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:36:05 [end_date_ymd] => 2025-04-24 05:36:05 [RateCDR] => 1 ) [2025-04-24 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:36:05' and `end` < '2025-04-24 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:36:18] Production.INFO: count ==175 [2025-04-24 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:36:05 - End Time 2025-04-24 05:36:05 [2025-04-24 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977508', 'tblTempUsageDetail_20' ) start [2025-04-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977508', 'tblTempUsageDetail_20' ) end [2025-04-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977508', 'tblTempVendorCDR_20' ) start [2025-04-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977508', 'tblTempVendorCDR_20' ) end [2025-04-24 05:36:18] Production.INFO: ProcessCDR(1,14977508,1,1,2) [2025-04-24 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977508', 'tblTempUsageDetail_20' ) start [2025-04-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977508', 'tblTempUsageDetail_20' ) end [2025-04-24 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:36:21] Production.INFO: ==4636== Releasing lock... [2025-04-24 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:37:05 [end_date_ymd] => 2025-04-24 05:37:05 [RateCDR] => 1 ) [2025-04-24 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:37:05' and `end` < '2025-04-24 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:37:18] Production.INFO: count ==172 [2025-04-24 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:37:05 - End Time 2025-04-24 05:37:05 [2025-04-24 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977513', 'tblTempUsageDetail_20' ) start [2025-04-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977513', 'tblTempUsageDetail_20' ) end [2025-04-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977513', 'tblTempVendorCDR_20' ) start [2025-04-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977513', 'tblTempVendorCDR_20' ) end [2025-04-24 05:37:18] Production.INFO: ProcessCDR(1,14977513,1,1,2) [2025-04-24 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977513', 'tblTempUsageDetail_20' ) start [2025-04-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977513', 'tblTempUsageDetail_20' ) end [2025-04-24 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:37:21] Production.INFO: ==4715== Releasing lock... [2025-04-24 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:38:05 [end_date_ymd] => 2025-04-24 05:38:05 [RateCDR] => 1 ) [2025-04-24 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:38:05' and `end` < '2025-04-24 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:38:17] Production.INFO: count ==170 [2025-04-24 05:38:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:38:05 - End Time 2025-04-24 05:38:05 [2025-04-24 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977518', 'tblTempUsageDetail_20' ) start [2025-04-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977518', 'tblTempUsageDetail_20' ) end [2025-04-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977518', 'tblTempVendorCDR_20' ) start [2025-04-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977518', 'tblTempVendorCDR_20' ) end [2025-04-24 05:38:17] Production.INFO: ProcessCDR(1,14977518,1,1,2) [2025-04-24 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977518', 'tblTempUsageDetail_20' ) start [2025-04-24 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977518', 'tblTempUsageDetail_20' ) end [2025-04-24 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:38:21] Production.INFO: ==4798== Releasing lock... [2025-04-24 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:39:05 [end_date_ymd] => 2025-04-24 05:39:05 [RateCDR] => 1 ) [2025-04-24 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:39:05' and `end` < '2025-04-24 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:39:18] Production.INFO: count ==169 [2025-04-24 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:39:05 - End Time 2025-04-24 05:39:05 [2025-04-24 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977523', 'tblTempUsageDetail_20' ) start [2025-04-24 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977523', 'tblTempUsageDetail_20' ) end [2025-04-24 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977523', 'tblTempVendorCDR_20' ) start [2025-04-24 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977523', 'tblTempVendorCDR_20' ) end [2025-04-24 05:39:18] Production.INFO: ProcessCDR(1,14977523,1,1,2) [2025-04-24 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977523', 'tblTempUsageDetail_20' ) start [2025-04-24 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977523', 'tblTempUsageDetail_20' ) end [2025-04-24 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:39:21] Production.INFO: ==4911== Releasing lock... [2025-04-24 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:40:06 [end_date_ymd] => 2025-04-24 05:40:06 [RateCDR] => 1 ) [2025-04-24 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:40:06' and `end` < '2025-04-24 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:40:18] Production.INFO: count ==158 [2025-04-24 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:40:06 - End Time 2025-04-24 05:40:06 [2025-04-24 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977529', 'tblTempUsageDetail_20' ) start [2025-04-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977529', 'tblTempUsageDetail_20' ) end [2025-04-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977529', 'tblTempVendorCDR_20' ) start [2025-04-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977529', 'tblTempVendorCDR_20' ) end [2025-04-24 05:40:18] Production.INFO: ProcessCDR(1,14977529,1,1,2) [2025-04-24 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977529', 'tblTempUsageDetail_20' ) start [2025-04-24 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977529', 'tblTempUsageDetail_20' ) end [2025-04-24 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:40:21] Production.INFO: ==4993== Releasing lock... [2025-04-24 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:41:05 [end_date_ymd] => 2025-04-24 05:41:05 [RateCDR] => 1 ) [2025-04-24 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:41:05' and `end` < '2025-04-24 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:41:18] Production.INFO: count ==157 [2025-04-24 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:41:05 - End Time 2025-04-24 05:41:05 [2025-04-24 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977534', 'tblTempUsageDetail_20' ) start [2025-04-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977534', 'tblTempUsageDetail_20' ) end [2025-04-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977534', 'tblTempVendorCDR_20' ) start [2025-04-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977534', 'tblTempVendorCDR_20' ) end [2025-04-24 05:41:18] Production.INFO: ProcessCDR(1,14977534,1,1,2) [2025-04-24 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977534', 'tblTempUsageDetail_20' ) start [2025-04-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977534', 'tblTempUsageDetail_20' ) end [2025-04-24 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:41:21] Production.INFO: ==5076== Releasing lock... [2025-04-24 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:42:04 [end_date_ymd] => 2025-04-24 05:42:04 [RateCDR] => 1 ) [2025-04-24 05:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:42:04' and `end` < '2025-04-24 05:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:42:17] Production.INFO: count ==157 [2025-04-24 05:42:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:42:04 - End Time 2025-04-24 05:42:04 [2025-04-24 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977539', 'tblTempUsageDetail_20' ) start [2025-04-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977539', 'tblTempUsageDetail_20' ) end [2025-04-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977539', 'tblTempVendorCDR_20' ) start [2025-04-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977539', 'tblTempVendorCDR_20' ) end [2025-04-24 05:42:17] Production.INFO: ProcessCDR(1,14977539,1,1,2) [2025-04-24 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977539', 'tblTempUsageDetail_20' ) start [2025-04-24 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977539', 'tblTempUsageDetail_20' ) end [2025-04-24 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:42:20] Production.INFO: ==5148== Releasing lock... [2025-04-24 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:43:05 [end_date_ymd] => 2025-04-24 05:43:05 [RateCDR] => 1 ) [2025-04-24 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:43:05' and `end` < '2025-04-24 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:43:18] Production.INFO: count ==157 [2025-04-24 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:43:05 - End Time 2025-04-24 05:43:05 [2025-04-24 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977544', 'tblTempUsageDetail_20' ) start [2025-04-24 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977544', 'tblTempUsageDetail_20' ) end [2025-04-24 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977544', 'tblTempVendorCDR_20' ) start [2025-04-24 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977544', 'tblTempVendorCDR_20' ) end [2025-04-24 05:43:18] Production.INFO: ProcessCDR(1,14977544,1,1,2) [2025-04-24 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977544', 'tblTempUsageDetail_20' ) start [2025-04-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977544', 'tblTempUsageDetail_20' ) end [2025-04-24 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:43:21] Production.INFO: ==5230== Releasing lock... [2025-04-24 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:44:05 [end_date_ymd] => 2025-04-24 05:44:05 [RateCDR] => 1 ) [2025-04-24 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:44:05' and `end` < '2025-04-24 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:44:18] Production.INFO: count ==157 [2025-04-24 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:44:05 - End Time 2025-04-24 05:44:05 [2025-04-24 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977549', 'tblTempUsageDetail_20' ) start [2025-04-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977549', 'tblTempUsageDetail_20' ) end [2025-04-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977549', 'tblTempVendorCDR_20' ) start [2025-04-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977549', 'tblTempVendorCDR_20' ) end [2025-04-24 05:44:18] Production.INFO: ProcessCDR(1,14977549,1,1,2) [2025-04-24 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977549', 'tblTempUsageDetail_20' ) start [2025-04-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977549', 'tblTempUsageDetail_20' ) end [2025-04-24 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:44:21] Production.INFO: ==5303== Releasing lock... [2025-04-24 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:45:05 [end_date_ymd] => 2025-04-24 05:45:05 [RateCDR] => 1 ) [2025-04-24 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:45:05' and `end` < '2025-04-24 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:45:18] Production.INFO: count ==157 [2025-04-24 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:45:05 - End Time 2025-04-24 05:45:05 [2025-04-24 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977554', 'tblTempUsageDetail_20' ) start [2025-04-24 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977554', 'tblTempUsageDetail_20' ) end [2025-04-24 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977554', 'tblTempVendorCDR_20' ) start [2025-04-24 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977554', 'tblTempVendorCDR_20' ) end [2025-04-24 05:45:18] Production.INFO: ProcessCDR(1,14977554,1,1,2) [2025-04-24 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977554', 'tblTempUsageDetail_20' ) start [2025-04-24 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977554', 'tblTempUsageDetail_20' ) end [2025-04-24 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:45:21] Production.INFO: ==5390== Releasing lock... [2025-04-24 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:46:05 [end_date_ymd] => 2025-04-24 05:46:05 [RateCDR] => 1 ) [2025-04-24 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:46:05' and `end` < '2025-04-24 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:46:18] Production.INFO: count ==155 [2025-04-24 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:46:05 - End Time 2025-04-24 05:46:05 [2025-04-24 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977559', 'tblTempUsageDetail_20' ) start [2025-04-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977559', 'tblTempUsageDetail_20' ) end [2025-04-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977559', 'tblTempVendorCDR_20' ) start [2025-04-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977559', 'tblTempVendorCDR_20' ) end [2025-04-24 05:46:18] Production.INFO: ProcessCDR(1,14977559,1,1,2) [2025-04-24 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977559', 'tblTempUsageDetail_20' ) start [2025-04-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977559', 'tblTempUsageDetail_20' ) end [2025-04-24 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:46:21] Production.INFO: ==5465== Releasing lock... [2025-04-24 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:47:05 [end_date_ymd] => 2025-04-24 05:47:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:47:05' and `end` < '2025-04-24 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-04-24 05:47:17] Production.INFO: count ==155 [2025-04-24 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:47:05 - End Time 2025-04-24 05:47:05 [2025-04-24 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977564', 'tblTempUsageDetail_20' ) start [2025-04-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977564', 'tblTempUsageDetail_20' ) end [2025-04-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977564', 'tblTempVendorCDR_20' ) start [2025-04-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977564', 'tblTempVendorCDR_20' ) end [2025-04-24 05:47:17] Production.INFO: ProcessCDR(1,14977564,1,1,2) [2025-04-24 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977564', 'tblTempUsageDetail_20' ) start [2025-04-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977564', 'tblTempUsageDetail_20' ) end [2025-04-24 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:47:20] Production.INFO: ==5548== Releasing lock... [2025-04-24 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:48:05 [end_date_ymd] => 2025-04-24 05:48:05 [RateCDR] => 1 ) [2025-04-24 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:48:05' and `end` < '2025-04-24 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:48:18] Production.INFO: count ==153 [2025-04-24 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:48:05 - End Time 2025-04-24 05:48:05 [2025-04-24 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977569', 'tblTempUsageDetail_20' ) start [2025-04-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977569', 'tblTempUsageDetail_20' ) end [2025-04-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977569', 'tblTempVendorCDR_20' ) start [2025-04-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977569', 'tblTempVendorCDR_20' ) end [2025-04-24 05:48:18] Production.INFO: ProcessCDR(1,14977569,1,1,2) [2025-04-24 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977569', 'tblTempUsageDetail_20' ) start [2025-04-24 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977569', 'tblTempUsageDetail_20' ) end [2025-04-24 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:48:21] Production.INFO: ==5622== Releasing lock... [2025-04-24 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:49:06 [end_date_ymd] => 2025-04-24 05:49:06 [RateCDR] => 1 ) [2025-04-24 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:49:06' and `end` < '2025-04-24 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:49:18] Production.INFO: count ==153 [2025-04-24 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:49:06 - End Time 2025-04-24 05:49:06 [2025-04-24 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977574', 'tblTempUsageDetail_20' ) start [2025-04-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977574', 'tblTempUsageDetail_20' ) end [2025-04-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977574', 'tblTempVendorCDR_20' ) start [2025-04-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977574', 'tblTempVendorCDR_20' ) end [2025-04-24 05:49:18] Production.INFO: ProcessCDR(1,14977574,1,1,2) [2025-04-24 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977574', 'tblTempUsageDetail_20' ) start [2025-04-24 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977574', 'tblTempUsageDetail_20' ) end [2025-04-24 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:49:21] Production.INFO: ==5707== Releasing lock... [2025-04-24 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:50:06 [end_date_ymd] => 2025-04-24 05:50:06 [RateCDR] => 1 ) [2025-04-24 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:50:06' and `end` < '2025-04-24 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:50:18] Production.INFO: count ==141 [2025-04-24 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:50:06 - End Time 2025-04-24 05:50:06 [2025-04-24 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977580', 'tblTempUsageDetail_20' ) start [2025-04-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977580', 'tblTempUsageDetail_20' ) end [2025-04-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977580', 'tblTempVendorCDR_20' ) start [2025-04-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977580', 'tblTempVendorCDR_20' ) end [2025-04-24 05:50:18] Production.INFO: ProcessCDR(1,14977580,1,1,2) [2025-04-24 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977580', 'tblTempUsageDetail_20' ) start [2025-04-24 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977580', 'tblTempUsageDetail_20' ) end [2025-04-24 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:50:22] Production.INFO: ==5785== Releasing lock... [2025-04-24 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:51:05 [end_date_ymd] => 2025-04-24 05:51:05 [RateCDR] => 1 ) [2025-04-24 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:51:05' and `end` < '2025-04-24 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:51:18] Production.INFO: count ==129 [2025-04-24 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:51:05 - End Time 2025-04-24 05:51:05 [2025-04-24 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977585', 'tblTempUsageDetail_20' ) start [2025-04-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977585', 'tblTempUsageDetail_20' ) end [2025-04-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977585', 'tblTempVendorCDR_20' ) start [2025-04-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977585', 'tblTempVendorCDR_20' ) end [2025-04-24 05:51:18] Production.INFO: ProcessCDR(1,14977585,1,1,2) [2025-04-24 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977585', 'tblTempUsageDetail_20' ) start [2025-04-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977585', 'tblTempUsageDetail_20' ) end [2025-04-24 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:51:21] Production.INFO: ==5865== Releasing lock... [2025-04-24 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:52:04 [end_date_ymd] => 2025-04-24 05:52:04 [RateCDR] => 1 ) [2025-04-24 05:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:52:04' and `end` < '2025-04-24 05:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:52:17] Production.INFO: count ==123 [2025-04-24 05:52:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:52:04 - End Time 2025-04-24 05:52:04 [2025-04-24 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977590', 'tblTempUsageDetail_20' ) start [2025-04-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977590', 'tblTempUsageDetail_20' ) end [2025-04-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977590', 'tblTempVendorCDR_20' ) start [2025-04-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977590', 'tblTempVendorCDR_20' ) end [2025-04-24 05:52:17] Production.INFO: ProcessCDR(1,14977590,1,1,2) [2025-04-24 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977590', 'tblTempUsageDetail_20' ) start [2025-04-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977590', 'tblTempUsageDetail_20' ) end [2025-04-24 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:52:20] Production.INFO: ==5945== Releasing lock... [2025-04-24 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:52:20] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:53:05 [end_date_ymd] => 2025-04-24 05:53:05 [RateCDR] => 1 ) [2025-04-24 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:53:05' and `end` < '2025-04-24 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:53:17] Production.INFO: count ==121 [2025-04-24 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:53:05 - End Time 2025-04-24 05:53:05 [2025-04-24 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977595', 'tblTempUsageDetail_20' ) start [2025-04-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977595', 'tblTempUsageDetail_20' ) end [2025-04-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977595', 'tblTempVendorCDR_20' ) start [2025-04-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977595', 'tblTempVendorCDR_20' ) end [2025-04-24 05:53:17] Production.INFO: ProcessCDR(1,14977595,1,1,2) [2025-04-24 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977595', 'tblTempUsageDetail_20' ) start [2025-04-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977595', 'tblTempUsageDetail_20' ) end [2025-04-24 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:53:20] Production.INFO: ==6022== Releasing lock... [2025-04-24 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:53:20] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:54:05 [end_date_ymd] => 2025-04-24 05:54:05 [RateCDR] => 1 ) [2025-04-24 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:54:05' and `end` < '2025-04-24 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:54:17] Production.INFO: count ==123 [2025-04-24 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:54:05 - End Time 2025-04-24 05:54:05 [2025-04-24 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977600', 'tblTempUsageDetail_20' ) start [2025-04-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977600', 'tblTempUsageDetail_20' ) end [2025-04-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977600', 'tblTempVendorCDR_20' ) start [2025-04-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977600', 'tblTempVendorCDR_20' ) end [2025-04-24 05:54:18] Production.INFO: ProcessCDR(1,14977600,1,1,2) [2025-04-24 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977600', 'tblTempUsageDetail_20' ) start [2025-04-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977600', 'tblTempUsageDetail_20' ) end [2025-04-24 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:54:21] Production.INFO: ==6101== Releasing lock... [2025-04-24 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:55:05 [end_date_ymd] => 2025-04-24 05:55:05 [RateCDR] => 1 ) [2025-04-24 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:55:05' and `end` < '2025-04-24 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:55:18] Production.INFO: count ==122 [2025-04-24 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:55:05 - End Time 2025-04-24 05:55:05 [2025-04-24 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977605', 'tblTempUsageDetail_20' ) start [2025-04-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977605', 'tblTempUsageDetail_20' ) end [2025-04-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977605', 'tblTempVendorCDR_20' ) start [2025-04-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977605', 'tblTempVendorCDR_20' ) end [2025-04-24 05:55:18] Production.INFO: ProcessCDR(1,14977605,1,1,2) [2025-04-24 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977605', 'tblTempUsageDetail_20' ) start [2025-04-24 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977605', 'tblTempUsageDetail_20' ) end [2025-04-24 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:55:22] Production.INFO: ==6220== Releasing lock... [2025-04-24 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:55:22] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:56:06 [end_date_ymd] => 2025-04-24 05:56:06 [RateCDR] => 1 ) [2025-04-24 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:56:06' and `end` < '2025-04-24 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:56:18] Production.INFO: count ==121 [2025-04-24 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:56:06 - End Time 2025-04-24 05:56:06 [2025-04-24 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977610', 'tblTempUsageDetail_20' ) start [2025-04-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977610', 'tblTempUsageDetail_20' ) end [2025-04-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977610', 'tblTempVendorCDR_20' ) start [2025-04-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977610', 'tblTempVendorCDR_20' ) end [2025-04-24 05:56:18] Production.INFO: ProcessCDR(1,14977610,1,1,2) [2025-04-24 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977610', 'tblTempUsageDetail_20' ) start [2025-04-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977610', 'tblTempUsageDetail_20' ) end [2025-04-24 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:56:21] Production.INFO: ==6296== Releasing lock... [2025-04-24 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:57:05 [end_date_ymd] => 2025-04-24 05:57:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 02:57:05' and `end` < '2025-04-24 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-04-24 05:57:17] Production.INFO: count ==120 [2025-04-24 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:57:05 - End Time 2025-04-24 05:57:05 [2025-04-24 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977615', 'tblTempUsageDetail_20' ) start [2025-04-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977615', 'tblTempUsageDetail_20' ) end [2025-04-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977615', 'tblTempVendorCDR_20' ) start [2025-04-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977615', 'tblTempVendorCDR_20' ) end [2025-04-24 05:57:17] Production.INFO: ProcessCDR(1,14977615,1,1,2) [2025-04-24 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977615', 'tblTempUsageDetail_20' ) start [2025-04-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977615', 'tblTempUsageDetail_20' ) end [2025-04-24 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:57:21] Production.INFO: ==6372== Releasing lock... [2025-04-24 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:57:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:58:05 [end_date_ymd] => 2025-04-24 05:58:05 [RateCDR] => 1 ) [2025-04-24 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:58:05' and `end` < '2025-04-24 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 05:58:18] Production.INFO: count ==116 [2025-04-24 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 02:58:05 - End Time 2025-04-24 05:58:05 [2025-04-24 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977620', 'tblTempUsageDetail_20' ) start [2025-04-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977620', 'tblTempUsageDetail_20' ) end [2025-04-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977620', 'tblTempVendorCDR_20' ) start [2025-04-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977620', 'tblTempVendorCDR_20' ) end [2025-04-24 05:58:18] Production.INFO: ProcessCDR(1,14977620,1,1,2) [2025-04-24 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977620', 'tblTempUsageDetail_20' ) start [2025-04-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977620', 'tblTempUsageDetail_20' ) end [2025-04-24 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:58:21] Production.INFO: ==6449== Releasing lock... [2025-04-24 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 02:59:04 [end_date_ymd] => 2025-04-24 05:59:04 [RateCDR] => 1 ) [2025-04-24 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 02:59:04' and `end` < '2025-04-24 05: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-04-24 05:59:17] Production.INFO: count ==114 [2025-04-24 05:59:17] Production.ERROR: pbx CDR StartTime 2025-04-24 02:59:04 - End Time 2025-04-24 05:59:04 [2025-04-24 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977625', 'tblTempUsageDetail_20' ) start [2025-04-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977625', 'tblTempUsageDetail_20' ) end [2025-04-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977625', 'tblTempVendorCDR_20' ) start [2025-04-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977625', 'tblTempVendorCDR_20' ) end [2025-04-24 05:59:17] Production.INFO: ProcessCDR(1,14977625,1,1,2) [2025-04-24 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977625', 'tblTempUsageDetail_20' ) start [2025-04-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977625', 'tblTempUsageDetail_20' ) end [2025-04-24 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 05:59:20] Production.INFO: ==6530== Releasing lock... [2025-04-24 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 05:59:20] Production.INFO: 29 MB #Memory Used# [2025-04-24 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:00:06 [end_date_ymd] => 2025-04-24 06:00:06 [RateCDR] => 1 ) [2025-04-24 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:00:06' and `end` < '2025-04-24 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:00:18] Production.INFO: count ==101 [2025-04-24 06:00:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:00:06 - End Time 2025-04-24 06:00:06 [2025-04-24 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977631', 'tblTempUsageDetail_20' ) start [2025-04-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977631', 'tblTempUsageDetail_20' ) end [2025-04-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977631', 'tblTempVendorCDR_20' ) start [2025-04-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977631', 'tblTempVendorCDR_20' ) end [2025-04-24 06:00:18] Production.INFO: ProcessCDR(1,14977631,1,1,2) [2025-04-24 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977631', 'tblTempUsageDetail_20' ) start [2025-04-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977631', 'tblTempUsageDetail_20' ) end [2025-04-24 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:00:21] Production.INFO: ==6619== Releasing lock... [2025-04-24 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:01:06 [end_date_ymd] => 2025-04-24 06:01:06 [RateCDR] => 1 ) [2025-04-24 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:01:06' and `end` < '2025-04-24 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:01:18] Production.INFO: count ==96 [2025-04-24 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:01:06 - End Time 2025-04-24 06:01:06 [2025-04-24 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977636', 'tblTempUsageDetail_20' ) start [2025-04-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977636', 'tblTempUsageDetail_20' ) end [2025-04-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977636', 'tblTempVendorCDR_20' ) start [2025-04-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977636', 'tblTempVendorCDR_20' ) end [2025-04-24 06:01:18] Production.INFO: ProcessCDR(1,14977636,1,1,2) [2025-04-24 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977636', 'tblTempUsageDetail_20' ) start [2025-04-24 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977636', 'tblTempUsageDetail_20' ) end [2025-04-24 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:01:22] Production.INFO: ==6716== Releasing lock... [2025-04-24 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:02:06 [end_date_ymd] => 2025-04-24 06:02:06 [RateCDR] => 1 ) [2025-04-24 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:02:06' and `end` < '2025-04-24 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:02:18] Production.INFO: count ==93 [2025-04-24 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:02:06 - End Time 2025-04-24 06:02:06 [2025-04-24 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977641', 'tblTempUsageDetail_20' ) start [2025-04-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977641', 'tblTempUsageDetail_20' ) end [2025-04-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977641', 'tblTempVendorCDR_20' ) start [2025-04-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977641', 'tblTempVendorCDR_20' ) end [2025-04-24 06:02:18] Production.INFO: ProcessCDR(1,14977641,1,1,2) [2025-04-24 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977641', 'tblTempUsageDetail_20' ) start [2025-04-24 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977641', 'tblTempUsageDetail_20' ) end [2025-04-24 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:02:22] Production.INFO: ==6795== Releasing lock... [2025-04-24 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:03:05 [end_date_ymd] => 2025-04-24 06:03:05 [RateCDR] => 1 ) [2025-04-24 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:03:05' and `end` < '2025-04-24 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:03:17] Production.INFO: count ==93 [2025-04-24 06:03:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:03:05 - End Time 2025-04-24 06:03:05 [2025-04-24 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977646', 'tblTempUsageDetail_20' ) start [2025-04-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977646', 'tblTempUsageDetail_20' ) end [2025-04-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977646', 'tblTempVendorCDR_20' ) start [2025-04-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977646', 'tblTempVendorCDR_20' ) end [2025-04-24 06:03:17] Production.INFO: ProcessCDR(1,14977646,1,1,2) [2025-04-24 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977646', 'tblTempUsageDetail_20' ) start [2025-04-24 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977646', 'tblTempUsageDetail_20' ) end [2025-04-24 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:03:21] Production.INFO: ==6875== Releasing lock... [2025-04-24 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:04:06 [end_date_ymd] => 2025-04-24 06:04:06 [RateCDR] => 1 ) [2025-04-24 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:04:06' and `end` < '2025-04-24 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:04:18] Production.INFO: count ==92 [2025-04-24 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:04:06 - End Time 2025-04-24 06:04:06 [2025-04-24 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977651', 'tblTempUsageDetail_20' ) start [2025-04-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977651', 'tblTempUsageDetail_20' ) end [2025-04-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977651', 'tblTempVendorCDR_20' ) start [2025-04-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977651', 'tblTempVendorCDR_20' ) end [2025-04-24 06:04:18] Production.INFO: ProcessCDR(1,14977651,1,1,2) [2025-04-24 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977651', 'tblTempUsageDetail_20' ) start [2025-04-24 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977651', 'tblTempUsageDetail_20' ) end [2025-04-24 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:04:22] Production.INFO: ==6955== Releasing lock... [2025-04-24 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:05:04 [end_date_ymd] => 2025-04-24 06:05:04 [RateCDR] => 1 ) [2025-04-24 06: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-04-24 03:05:04' and `end` < '2025-04-24 06: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-04-24 06:05:17] Production.INFO: count ==87 [2025-04-24 06:05:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:05:04 - End Time 2025-04-24 06:05:04 [2025-04-24 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977656', 'tblTempUsageDetail_20' ) start [2025-04-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977656', 'tblTempUsageDetail_20' ) end [2025-04-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977656', 'tblTempVendorCDR_20' ) start [2025-04-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977656', 'tblTempVendorCDR_20' ) end [2025-04-24 06:05:17] Production.INFO: ProcessCDR(1,14977656,1,1,2) [2025-04-24 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977656', 'tblTempUsageDetail_20' ) start [2025-04-24 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977656', 'tblTempUsageDetail_20' ) end [2025-04-24 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:05:20] Production.INFO: ==7031== Releasing lock... [2025-04-24 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:06:05 [end_date_ymd] => 2025-04-24 06:06:05 [RateCDR] => 1 ) [2025-04-24 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:06:05' and `end` < '2025-04-24 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:06:17] Production.INFO: count ==85 [2025-04-24 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:06:05 - End Time 2025-04-24 06:06:05 [2025-04-24 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977661', 'tblTempUsageDetail_20' ) start [2025-04-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977661', 'tblTempUsageDetail_20' ) end [2025-04-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977661', 'tblTempVendorCDR_20' ) start [2025-04-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977661', 'tblTempVendorCDR_20' ) end [2025-04-24 06:06:17] Production.INFO: ProcessCDR(1,14977661,1,1,2) [2025-04-24 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977661', 'tblTempUsageDetail_20' ) start [2025-04-24 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977661', 'tblTempUsageDetail_20' ) end [2025-04-24 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:06:21] Production.INFO: ==7101== Releasing lock... [2025-04-24 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:07:06 [end_date_ymd] => 2025-04-24 06:07:06 [RateCDR] => 1 ) [2025-04-24 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:07:06' and `end` < '2025-04-24 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:07:19] Production.INFO: count ==83 [2025-04-24 06:07:19] Production.ERROR: pbx CDR StartTime 2025-04-24 03:07:06 - End Time 2025-04-24 06:07:06 [2025-04-24 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977666', 'tblTempUsageDetail_20' ) start [2025-04-24 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977666', 'tblTempUsageDetail_20' ) end [2025-04-24 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977666', 'tblTempVendorCDR_20' ) start [2025-04-24 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977666', 'tblTempVendorCDR_20' ) end [2025-04-24 06:07:19] Production.INFO: ProcessCDR(1,14977666,1,1,2) [2025-04-24 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977666', 'tblTempUsageDetail_20' ) start [2025-04-24 06:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977666', 'tblTempUsageDetail_20' ) end [2025-04-24 06:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:07:24] Production.INFO: ==7186== Releasing lock... [2025-04-24 06:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:07:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:08:05 [end_date_ymd] => 2025-04-24 06:08:05 [RateCDR] => 1 ) [2025-04-24 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:08:05' and `end` < '2025-04-24 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:08:18] Production.INFO: count ==89 [2025-04-24 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:08:05 - End Time 2025-04-24 06:08:05 [2025-04-24 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977671', 'tblTempUsageDetail_20' ) start [2025-04-24 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977671', 'tblTempUsageDetail_20' ) end [2025-04-24 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977671', 'tblTempVendorCDR_20' ) start [2025-04-24 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977671', 'tblTempVendorCDR_20' ) end [2025-04-24 06:08:18] Production.INFO: ProcessCDR(1,14977671,1,1,2) [2025-04-24 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977671', 'tblTempUsageDetail_20' ) start [2025-04-24 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977671', 'tblTempUsageDetail_20' ) end [2025-04-24 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:08:22] Production.INFO: ==7262== Releasing lock... [2025-04-24 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:09:05 [end_date_ymd] => 2025-04-24 06:09:05 [RateCDR] => 1 ) [2025-04-24 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:09:05' and `end` < '2025-04-24 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:09:18] Production.INFO: count ==86 [2025-04-24 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:09:05 - End Time 2025-04-24 06:09:05 [2025-04-24 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977676', 'tblTempUsageDetail_20' ) start [2025-04-24 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977676', 'tblTempUsageDetail_20' ) end [2025-04-24 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977676', 'tblTempVendorCDR_20' ) start [2025-04-24 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977676', 'tblTempVendorCDR_20' ) end [2025-04-24 06:09:18] Production.INFO: ProcessCDR(1,14977676,1,1,2) [2025-04-24 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977676', 'tblTempUsageDetail_20' ) start [2025-04-24 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977676', 'tblTempUsageDetail_20' ) end [2025-04-24 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:09:21] Production.INFO: ==7337== Releasing lock... [2025-04-24 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:10:05 [end_date_ymd] => 2025-04-24 06:10:05 [RateCDR] => 1 ) [2025-04-24 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:10:05' and `end` < '2025-04-24 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:10:18] Production.INFO: count ==91 [2025-04-24 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:10:05 - End Time 2025-04-24 06:10:05 [2025-04-24 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977682', 'tblTempUsageDetail_20' ) start [2025-04-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977682', 'tblTempUsageDetail_20' ) end [2025-04-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977682', 'tblTempVendorCDR_20' ) start [2025-04-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977682', 'tblTempVendorCDR_20' ) end [2025-04-24 06:10:18] Production.INFO: ProcessCDR(1,14977682,1,1,2) [2025-04-24 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977682', 'tblTempUsageDetail_20' ) start [2025-04-24 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977682', 'tblTempUsageDetail_20' ) end [2025-04-24 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:10:23] Production.INFO: ==7451== Releasing lock... [2025-04-24 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:11:05 [end_date_ymd] => 2025-04-24 06:11:05 [RateCDR] => 1 ) [2025-04-24 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:11:05' and `end` < '2025-04-24 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:11:18] Production.INFO: count ==91 [2025-04-24 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:11:05 - End Time 2025-04-24 06:11:05 [2025-04-24 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977687', 'tblTempUsageDetail_20' ) start [2025-04-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977687', 'tblTempUsageDetail_20' ) end [2025-04-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977687', 'tblTempVendorCDR_20' ) start [2025-04-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977687', 'tblTempVendorCDR_20' ) end [2025-04-24 06:11:18] Production.INFO: ProcessCDR(1,14977687,1,1,2) [2025-04-24 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977687', 'tblTempUsageDetail_20' ) start [2025-04-24 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977687', 'tblTempUsageDetail_20' ) end [2025-04-24 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:11:21] Production.INFO: ==7522== Releasing lock... [2025-04-24 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:12:05 [end_date_ymd] => 2025-04-24 06:12:05 [RateCDR] => 1 ) [2025-04-24 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:12:05' and `end` < '2025-04-24 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:12:17] Production.INFO: count ==91 [2025-04-24 06:12:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:12:05 - End Time 2025-04-24 06:12:05 [2025-04-24 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977692', 'tblTempUsageDetail_20' ) start [2025-04-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977692', 'tblTempUsageDetail_20' ) end [2025-04-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977692', 'tblTempVendorCDR_20' ) start [2025-04-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977692', 'tblTempVendorCDR_20' ) end [2025-04-24 06:12:17] Production.INFO: ProcessCDR(1,14977692,1,1,2) [2025-04-24 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977692', 'tblTempUsageDetail_20' ) start [2025-04-24 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977692', 'tblTempUsageDetail_20' ) end [2025-04-24 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:12:20] Production.INFO: ==7591== Releasing lock... [2025-04-24 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:12:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:13:05 [end_date_ymd] => 2025-04-24 06:13:05 [RateCDR] => 1 ) [2025-04-24 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:13:05' and `end` < '2025-04-24 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:13:18] Production.INFO: count ==94 [2025-04-24 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:13:05 - End Time 2025-04-24 06:13:05 [2025-04-24 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977697', 'tblTempUsageDetail_20' ) start [2025-04-24 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977697', 'tblTempUsageDetail_20' ) end [2025-04-24 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977697', 'tblTempVendorCDR_20' ) start [2025-04-24 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977697', 'tblTempVendorCDR_20' ) end [2025-04-24 06:13:18] Production.INFO: ProcessCDR(1,14977697,1,1,2) [2025-04-24 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977697', 'tblTempUsageDetail_20' ) start [2025-04-24 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977697', 'tblTempUsageDetail_20' ) end [2025-04-24 06:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:13:23] Production.INFO: ==7671== Releasing lock... [2025-04-24 06:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:14:06 [end_date_ymd] => 2025-04-24 06:14:06 [RateCDR] => 1 ) [2025-04-24 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:14:06' and `end` < '2025-04-24 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:14:18] Production.INFO: count ==94 [2025-04-24 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:14:06 - End Time 2025-04-24 06:14:06 [2025-04-24 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977702', 'tblTempUsageDetail_20' ) start [2025-04-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977702', 'tblTempUsageDetail_20' ) end [2025-04-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977702', 'tblTempVendorCDR_20' ) start [2025-04-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977702', 'tblTempVendorCDR_20' ) end [2025-04-24 06:14:18] Production.INFO: ProcessCDR(1,14977702,1,1,2) [2025-04-24 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977702', 'tblTempUsageDetail_20' ) start [2025-04-24 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977702', 'tblTempUsageDetail_20' ) end [2025-04-24 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:14:22] Production.INFO: ==7752== Releasing lock... [2025-04-24 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:15:05 [end_date_ymd] => 2025-04-24 06:15:05 [RateCDR] => 1 ) [2025-04-24 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:15:05' and `end` < '2025-04-24 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:15:18] Production.INFO: count ==96 [2025-04-24 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:15:05 - End Time 2025-04-24 06:15:05 [2025-04-24 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977707', 'tblTempUsageDetail_20' ) start [2025-04-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977707', 'tblTempUsageDetail_20' ) end [2025-04-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977707', 'tblTempVendorCDR_20' ) start [2025-04-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977707', 'tblTempVendorCDR_20' ) end [2025-04-24 06:15:18] Production.INFO: ProcessCDR(1,14977707,1,1,2) [2025-04-24 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977707', 'tblTempUsageDetail_20' ) start [2025-04-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977707', 'tblTempUsageDetail_20' ) end [2025-04-24 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:15:21] Production.INFO: ==7825== Releasing lock... [2025-04-24 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:16:05 [end_date_ymd] => 2025-04-24 06:16:05 [RateCDR] => 1 ) [2025-04-24 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:16:05' and `end` < '2025-04-24 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:16:18] Production.INFO: count ==98 [2025-04-24 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:16:05 - End Time 2025-04-24 06:16:05 [2025-04-24 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977712', 'tblTempUsageDetail_20' ) start [2025-04-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977712', 'tblTempUsageDetail_20' ) end [2025-04-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977712', 'tblTempVendorCDR_20' ) start [2025-04-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977712', 'tblTempVendorCDR_20' ) end [2025-04-24 06:16:18] Production.INFO: ProcessCDR(1,14977712,1,1,2) [2025-04-24 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977712', 'tblTempUsageDetail_20' ) start [2025-04-24 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977712', 'tblTempUsageDetail_20' ) end [2025-04-24 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:16:22] Production.INFO: ==7897== Releasing lock... [2025-04-24 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:17:05 [end_date_ymd] => 2025-04-24 06:17:05 [RateCDR] => 1 ) [2025-04-24 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:17:05' and `end` < '2025-04-24 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:17:17] Production.INFO: count ==98 [2025-04-24 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:17:05 - End Time 2025-04-24 06:17:05 [2025-04-24 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977717', 'tblTempUsageDetail_20' ) start [2025-04-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977717', 'tblTempUsageDetail_20' ) end [2025-04-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977717', 'tblTempVendorCDR_20' ) start [2025-04-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977717', 'tblTempVendorCDR_20' ) end [2025-04-24 06:17:17] Production.INFO: ProcessCDR(1,14977717,1,1,2) [2025-04-24 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977717', 'tblTempUsageDetail_20' ) start [2025-04-24 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977717', 'tblTempUsageDetail_20' ) end [2025-04-24 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:17:21] Production.INFO: ==7970== Releasing lock... [2025-04-24 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:18:05 [end_date_ymd] => 2025-04-24 06:18:05 [RateCDR] => 1 ) [2025-04-24 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:18:05' and `end` < '2025-04-24 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:18:18] Production.INFO: count ==98 [2025-04-24 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:18:05 - End Time 2025-04-24 06:18:05 [2025-04-24 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977722', 'tblTempUsageDetail_20' ) start [2025-04-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977722', 'tblTempUsageDetail_20' ) end [2025-04-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977722', 'tblTempVendorCDR_20' ) start [2025-04-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977722', 'tblTempVendorCDR_20' ) end [2025-04-24 06:18:18] Production.INFO: ProcessCDR(1,14977722,1,1,2) [2025-04-24 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977722', 'tblTempUsageDetail_20' ) start [2025-04-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977722', 'tblTempUsageDetail_20' ) end [2025-04-24 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:18:21] Production.INFO: ==8040== Releasing lock... [2025-04-24 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:19:04 [end_date_ymd] => 2025-04-24 06:19:04 [RateCDR] => 1 ) [2025-04-24 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:19:04' and `end` < '2025-04-24 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:19:17] Production.INFO: count ==98 [2025-04-24 06:19:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:19:04 - End Time 2025-04-24 06:19:04 [2025-04-24 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977727', 'tblTempUsageDetail_20' ) start [2025-04-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977727', 'tblTempUsageDetail_20' ) end [2025-04-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977727', 'tblTempVendorCDR_20' ) start [2025-04-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977727', 'tblTempVendorCDR_20' ) end [2025-04-24 06:19:17] Production.INFO: ProcessCDR(1,14977727,1,1,2) [2025-04-24 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977727', 'tblTempUsageDetail_20' ) start [2025-04-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977727', 'tblTempUsageDetail_20' ) end [2025-04-24 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:19:20] Production.INFO: ==8112== Releasing lock... [2025-04-24 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:20:06 [end_date_ymd] => 2025-04-24 06:20:06 [RateCDR] => 1 ) [2025-04-24 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:20:06' and `end` < '2025-04-24 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:20:19] Production.INFO: count ==97 [2025-04-24 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 03:20:06 - End Time 2025-04-24 06:20:06 [2025-04-24 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977733', 'tblTempUsageDetail_20' ) start [2025-04-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977733', 'tblTempUsageDetail_20' ) end [2025-04-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977733', 'tblTempVendorCDR_20' ) start [2025-04-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977733', 'tblTempVendorCDR_20' ) end [2025-04-24 06:20:19] Production.INFO: ProcessCDR(1,14977733,1,1,2) [2025-04-24 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977733', 'tblTempUsageDetail_20' ) start [2025-04-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977733', 'tblTempUsageDetail_20' ) end [2025-04-24 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:20:22] Production.INFO: ==8200== Releasing lock... [2025-04-24 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:21:05 [end_date_ymd] => 2025-04-24 06:21:05 [RateCDR] => 1 ) [2025-04-24 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:21:05' and `end` < '2025-04-24 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:21:18] Production.INFO: count ==97 [2025-04-24 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:21:05 - End Time 2025-04-24 06:21:05 [2025-04-24 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977738', 'tblTempUsageDetail_20' ) start [2025-04-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977738', 'tblTempUsageDetail_20' ) end [2025-04-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977738', 'tblTempVendorCDR_20' ) start [2025-04-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977738', 'tblTempVendorCDR_20' ) end [2025-04-24 06:21:18] Production.INFO: ProcessCDR(1,14977738,1,1,2) [2025-04-24 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977738', 'tblTempUsageDetail_20' ) start [2025-04-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977738', 'tblTempUsageDetail_20' ) end [2025-04-24 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:21:21] Production.INFO: ==8273== Releasing lock... [2025-04-24 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:22:05 [end_date_ymd] => 2025-04-24 06:22:05 [RateCDR] => 1 ) [2025-04-24 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:22:05' and `end` < '2025-04-24 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:22:18] Production.INFO: count ==97 [2025-04-24 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:22:05 - End Time 2025-04-24 06:22:05 [2025-04-24 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977743', 'tblTempUsageDetail_20' ) start [2025-04-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977743', 'tblTempUsageDetail_20' ) end [2025-04-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977743', 'tblTempVendorCDR_20' ) start [2025-04-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977743', 'tblTempVendorCDR_20' ) end [2025-04-24 06:22:18] Production.INFO: ProcessCDR(1,14977743,1,1,2) [2025-04-24 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977743', 'tblTempUsageDetail_20' ) start [2025-04-24 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977743', 'tblTempUsageDetail_20' ) end [2025-04-24 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:22:21] Production.INFO: ==8342== Releasing lock... [2025-04-24 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:23:05 [end_date_ymd] => 2025-04-24 06:23:05 [RateCDR] => 1 ) [2025-04-24 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:23:05' and `end` < '2025-04-24 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:23:17] Production.INFO: count ==98 [2025-04-24 06:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:23:05 - End Time 2025-04-24 06:23:05 [2025-04-24 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977748', 'tblTempUsageDetail_20' ) start [2025-04-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977748', 'tblTempUsageDetail_20' ) end [2025-04-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977748', 'tblTempVendorCDR_20' ) start [2025-04-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977748', 'tblTempVendorCDR_20' ) end [2025-04-24 06:23:17] Production.INFO: ProcessCDR(1,14977748,1,1,2) [2025-04-24 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977748', 'tblTempUsageDetail_20' ) start [2025-04-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977748', 'tblTempUsageDetail_20' ) end [2025-04-24 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:23:21] Production.INFO: ==8412== Releasing lock... [2025-04-24 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:24:05 [end_date_ymd] => 2025-04-24 06:24:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 03:24:05' and `end` < '2025-04-24 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-04-24 06:24:17] Production.INFO: count ==98 [2025-04-24 06:24:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:24:05 - End Time 2025-04-24 06:24:05 [2025-04-24 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977753', 'tblTempUsageDetail_20' ) start [2025-04-24 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977753', 'tblTempUsageDetail_20' ) end [2025-04-24 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977753', 'tblTempVendorCDR_20' ) start [2025-04-24 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977753', 'tblTempVendorCDR_20' ) end [2025-04-24 06:24:17] Production.INFO: ProcessCDR(1,14977753,1,1,2) [2025-04-24 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977753', 'tblTempUsageDetail_20' ) start [2025-04-24 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977753', 'tblTempUsageDetail_20' ) end [2025-04-24 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:24:21] Production.INFO: ==8482== Releasing lock... [2025-04-24 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:25:05 [end_date_ymd] => 2025-04-24 06:25:05 [RateCDR] => 1 ) [2025-04-24 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:25:05' and `end` < '2025-04-24 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:25:18] Production.INFO: count ==98 [2025-04-24 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:25:05 - End Time 2025-04-24 06:25:05 [2025-04-24 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977758', 'tblTempUsageDetail_20' ) start [2025-04-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977758', 'tblTempUsageDetail_20' ) end [2025-04-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977758', 'tblTempVendorCDR_20' ) start [2025-04-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977758', 'tblTempVendorCDR_20' ) end [2025-04-24 06:25:18] Production.INFO: ProcessCDR(1,14977758,1,1,2) [2025-04-24 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977758', 'tblTempUsageDetail_20' ) start [2025-04-24 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977758', 'tblTempUsageDetail_20' ) end [2025-04-24 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:25:21] Production.INFO: ==8593== Releasing lock... [2025-04-24 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:26:05 [end_date_ymd] => 2025-04-24 06:26:05 [RateCDR] => 1 ) [2025-04-24 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:26:05' and `end` < '2025-04-24 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:26:18] Production.INFO: count ==100 [2025-04-24 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:26:05 - End Time 2025-04-24 06:26:05 [2025-04-24 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977763', 'tblTempUsageDetail_20' ) start [2025-04-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977763', 'tblTempUsageDetail_20' ) end [2025-04-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977763', 'tblTempVendorCDR_20' ) start [2025-04-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977763', 'tblTempVendorCDR_20' ) end [2025-04-24 06:26:18] Production.INFO: ProcessCDR(1,14977763,1,1,2) [2025-04-24 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977763', 'tblTempUsageDetail_20' ) start [2025-04-24 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977763', 'tblTempUsageDetail_20' ) end [2025-04-24 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:26:21] Production.INFO: ==8663== Releasing lock... [2025-04-24 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:27:05 [end_date_ymd] => 2025-04-24 06:27:05 [RateCDR] => 1 ) [2025-04-24 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:27:05' and `end` < '2025-04-24 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:27:18] Production.INFO: count ==102 [2025-04-24 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:27:05 - End Time 2025-04-24 06:27:05 [2025-04-24 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977768', 'tblTempUsageDetail_20' ) start [2025-04-24 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977768', 'tblTempUsageDetail_20' ) end [2025-04-24 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977768', 'tblTempVendorCDR_20' ) start [2025-04-24 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977768', 'tblTempVendorCDR_20' ) end [2025-04-24 06:27:18] Production.INFO: ProcessCDR(1,14977768,1,1,2) [2025-04-24 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977768', 'tblTempUsageDetail_20' ) start [2025-04-24 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977768', 'tblTempUsageDetail_20' ) end [2025-04-24 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:27:21] Production.INFO: ==8735== Releasing lock... [2025-04-24 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:28:05 [end_date_ymd] => 2025-04-24 06:28:05 [RateCDR] => 1 ) [2025-04-24 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:28:05' and `end` < '2025-04-24 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:28:17] Production.INFO: count ==102 [2025-04-24 06:28:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:28:05 - End Time 2025-04-24 06:28:05 [2025-04-24 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977773', 'tblTempUsageDetail_20' ) start [2025-04-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977773', 'tblTempUsageDetail_20' ) end [2025-04-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977773', 'tblTempVendorCDR_20' ) start [2025-04-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977773', 'tblTempVendorCDR_20' ) end [2025-04-24 06:28:17] Production.INFO: ProcessCDR(1,14977773,1,1,2) [2025-04-24 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977773', 'tblTempUsageDetail_20' ) start [2025-04-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977773', 'tblTempUsageDetail_20' ) end [2025-04-24 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:28:21] Production.INFO: ==8819== Releasing lock... [2025-04-24 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:29:05 [end_date_ymd] => 2025-04-24 06:29:05 [RateCDR] => 1 ) [2025-04-24 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:29:05' and `end` < '2025-04-24 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:29:18] Production.INFO: count ==103 [2025-04-24 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:29:05 - End Time 2025-04-24 06:29:05 [2025-04-24 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977778', 'tblTempUsageDetail_20' ) start [2025-04-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977778', 'tblTempUsageDetail_20' ) end [2025-04-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977778', 'tblTempVendorCDR_20' ) start [2025-04-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977778', 'tblTempVendorCDR_20' ) end [2025-04-24 06:29:18] Production.INFO: ProcessCDR(1,14977778,1,1,2) [2025-04-24 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977778', 'tblTempUsageDetail_20' ) start [2025-04-24 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977778', 'tblTempUsageDetail_20' ) end [2025-04-24 06:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:29:23] Production.INFO: ==8891== Releasing lock... [2025-04-24 06:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:29:23] Production.INFO: 29 MB #Memory Used# [2025-04-24 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:30:05 [end_date_ymd] => 2025-04-24 06:30:05 [RateCDR] => 1 ) [2025-04-24 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:30:05' and `end` < '2025-04-24 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:30:18] Production.INFO: count ==103 [2025-04-24 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:30:05 - End Time 2025-04-24 06:30:05 [2025-04-24 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977784', 'tblTempUsageDetail_20' ) start [2025-04-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977784', 'tblTempUsageDetail_20' ) end [2025-04-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977784', 'tblTempVendorCDR_20' ) start [2025-04-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977784', 'tblTempVendorCDR_20' ) end [2025-04-24 06:30:18] Production.INFO: ProcessCDR(1,14977784,1,1,2) [2025-04-24 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977784', 'tblTempUsageDetail_20' ) start [2025-04-24 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977784', 'tblTempUsageDetail_20' ) end [2025-04-24 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:30:21] Production.INFO: ==8971== Releasing lock... [2025-04-24 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:31:05 [end_date_ymd] => 2025-04-24 06:31:05 [RateCDR] => 1 ) [2025-04-24 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:31:05' and `end` < '2025-04-24 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:31:18] Production.INFO: count ==103 [2025-04-24 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:31:05 - End Time 2025-04-24 06:31:05 [2025-04-24 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977789', 'tblTempUsageDetail_20' ) start [2025-04-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977789', 'tblTempUsageDetail_20' ) end [2025-04-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977789', 'tblTempVendorCDR_20' ) start [2025-04-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977789', 'tblTempVendorCDR_20' ) end [2025-04-24 06:31:18] Production.INFO: ProcessCDR(1,14977789,1,1,2) [2025-04-24 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977789', 'tblTempUsageDetail_20' ) start [2025-04-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977789', 'tblTempUsageDetail_20' ) end [2025-04-24 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:31:21] Production.INFO: ==9043== Releasing lock... [2025-04-24 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:32:05 [end_date_ymd] => 2025-04-24 06:32:05 [RateCDR] => 1 ) [2025-04-24 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:32:05' and `end` < '2025-04-24 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:32:18] Production.INFO: count ==103 [2025-04-24 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:32:05 - End Time 2025-04-24 06:32:05 [2025-04-24 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977794', 'tblTempUsageDetail_20' ) start [2025-04-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977794', 'tblTempUsageDetail_20' ) end [2025-04-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977794', 'tblTempVendorCDR_20' ) start [2025-04-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977794', 'tblTempVendorCDR_20' ) end [2025-04-24 06:32:18] Production.INFO: ProcessCDR(1,14977794,1,1,2) [2025-04-24 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977794', 'tblTempUsageDetail_20' ) start [2025-04-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977794', 'tblTempUsageDetail_20' ) end [2025-04-24 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:32:21] Production.INFO: ==9114== Releasing lock... [2025-04-24 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:33:05 [end_date_ymd] => 2025-04-24 06:33:05 [RateCDR] => 1 ) [2025-04-24 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:33:05' and `end` < '2025-04-24 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:33:18] Production.INFO: count ==103 [2025-04-24 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:33:05 - End Time 2025-04-24 06:33:05 [2025-04-24 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977799', 'tblTempUsageDetail_20' ) start [2025-04-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977799', 'tblTempUsageDetail_20' ) end [2025-04-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977799', 'tblTempVendorCDR_20' ) start [2025-04-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977799', 'tblTempVendorCDR_20' ) end [2025-04-24 06:33:18] Production.INFO: ProcessCDR(1,14977799,1,1,2) [2025-04-24 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977799', 'tblTempUsageDetail_20' ) start [2025-04-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977799', 'tblTempUsageDetail_20' ) end [2025-04-24 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:33:21] Production.INFO: ==9183== Releasing lock... [2025-04-24 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:34:05 [end_date_ymd] => 2025-04-24 06:34:05 [RateCDR] => 1 ) [2025-04-24 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:34:05' and `end` < '2025-04-24 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:34:17] Production.INFO: count ==102 [2025-04-24 06:34:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:34:05 - End Time 2025-04-24 06:34:05 [2025-04-24 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977804', 'tblTempUsageDetail_20' ) start [2025-04-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977804', 'tblTempUsageDetail_20' ) end [2025-04-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977804', 'tblTempVendorCDR_20' ) start [2025-04-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977804', 'tblTempVendorCDR_20' ) end [2025-04-24 06:34:17] Production.INFO: ProcessCDR(1,14977804,1,1,2) [2025-04-24 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977804', 'tblTempUsageDetail_20' ) start [2025-04-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977804', 'tblTempUsageDetail_20' ) end [2025-04-24 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:34:21] Production.INFO: ==9256== Releasing lock... [2025-04-24 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:35:04 [end_date_ymd] => 2025-04-24 06:35:04 [RateCDR] => 1 ) [2025-04-24 06:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:35:04' and `end` < '2025-04-24 06:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:35:17] Production.INFO: count ==102 [2025-04-24 06:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:35:04 - End Time 2025-04-24 06:35:04 [2025-04-24 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977805', 'tblTempUsageDetail_20' ) start [2025-04-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977805', 'tblTempUsageDetail_20' ) end [2025-04-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977805', 'tblTempVendorCDR_20' ) start [2025-04-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977805', 'tblTempVendorCDR_20' ) end [2025-04-24 06:35:17] Production.INFO: ProcessCDR(1,14977805,1,1,2) [2025-04-24 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977805', 'tblTempUsageDetail_20' ) start [2025-04-24 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977805', 'tblTempUsageDetail_20' ) end [2025-04-24 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:35:21] Production.INFO: ==9334== Releasing lock... [2025-04-24 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:36:05 [end_date_ymd] => 2025-04-24 06:36:05 [RateCDR] => 1 ) [2025-04-24 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:36:05' and `end` < '2025-04-24 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:36:18] Production.INFO: count ==100 [2025-04-24 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:36:05 - End Time 2025-04-24 06:36:05 [2025-04-24 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977814', 'tblTempUsageDetail_20' ) start [2025-04-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977814', 'tblTempUsageDetail_20' ) end [2025-04-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977814', 'tblTempVendorCDR_20' ) start [2025-04-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977814', 'tblTempVendorCDR_20' ) end [2025-04-24 06:36:18] Production.INFO: ProcessCDR(1,14977814,1,1,2) [2025-04-24 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977814', 'tblTempUsageDetail_20' ) start [2025-04-24 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977814', 'tblTempUsageDetail_20' ) end [2025-04-24 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:36:21] Production.INFO: ==9404== Releasing lock... [2025-04-24 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:36:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:37:05 [end_date_ymd] => 2025-04-24 06:37:05 [RateCDR] => 1 ) [2025-04-24 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:37:05' and `end` < '2025-04-24 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:37:17] Production.INFO: count ==100 [2025-04-24 06:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:37:05 - End Time 2025-04-24 06:37:05 [2025-04-24 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977819', 'tblTempUsageDetail_20' ) start [2025-04-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977819', 'tblTempUsageDetail_20' ) end [2025-04-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977819', 'tblTempVendorCDR_20' ) start [2025-04-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977819', 'tblTempVendorCDR_20' ) end [2025-04-24 06:37:17] Production.INFO: ProcessCDR(1,14977819,1,1,2) [2025-04-24 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977819', 'tblTempUsageDetail_20' ) start [2025-04-24 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977819', 'tblTempUsageDetail_20' ) end [2025-04-24 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:37:20] Production.INFO: ==9485== Releasing lock... [2025-04-24 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:37:20] Production.INFO: 29 MB #Memory Used# [2025-04-24 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:38:05 [end_date_ymd] => 2025-04-24 06:38:05 [RateCDR] => 1 ) [2025-04-24 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:38:05' and `end` < '2025-04-24 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:38:18] Production.INFO: count ==101 [2025-04-24 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:38:05 - End Time 2025-04-24 06:38:05 [2025-04-24 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977824', 'tblTempUsageDetail_20' ) start [2025-04-24 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977824', 'tblTempUsageDetail_20' ) end [2025-04-24 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977824', 'tblTempVendorCDR_20' ) start [2025-04-24 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977824', 'tblTempVendorCDR_20' ) end [2025-04-24 06:38:18] Production.INFO: ProcessCDR(1,14977824,1,1,2) [2025-04-24 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977824', 'tblTempUsageDetail_20' ) start [2025-04-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977824', 'tblTempUsageDetail_20' ) end [2025-04-24 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:38:21] Production.INFO: ==9556== Releasing lock... [2025-04-24 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:39:04 [end_date_ymd] => 2025-04-24 06:39:04 [RateCDR] => 1 ) [2025-04-24 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:39:04' and `end` < '2025-04-24 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:39:17] Production.INFO: count ==101 [2025-04-24 06:39:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:39:04 - End Time 2025-04-24 06:39:04 [2025-04-24 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977829', 'tblTempUsageDetail_20' ) start [2025-04-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977829', 'tblTempUsageDetail_20' ) end [2025-04-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977829', 'tblTempVendorCDR_20' ) start [2025-04-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977829', 'tblTempVendorCDR_20' ) end [2025-04-24 06:39:17] Production.INFO: ProcessCDR(1,14977829,1,1,2) [2025-04-24 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977829', 'tblTempUsageDetail_20' ) start [2025-04-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977829', 'tblTempUsageDetail_20' ) end [2025-04-24 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:39:20] Production.INFO: ==9627== Releasing lock... [2025-04-24 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:40:05 [end_date_ymd] => 2025-04-24 06:40:05 [RateCDR] => 1 ) [2025-04-24 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:40:05' and `end` < '2025-04-24 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:40:18] Production.INFO: count ==94 [2025-04-24 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:40:05 - End Time 2025-04-24 06:40:05 [2025-04-24 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977834', 'tblTempUsageDetail_20' ) start [2025-04-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977834', 'tblTempUsageDetail_20' ) end [2025-04-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977834', 'tblTempVendorCDR_20' ) start [2025-04-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977834', 'tblTempVendorCDR_20' ) end [2025-04-24 06:40:18] Production.INFO: ProcessCDR(1,14977834,1,1,2) [2025-04-24 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977834', 'tblTempUsageDetail_20' ) start [2025-04-24 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977834', 'tblTempUsageDetail_20' ) end [2025-04-24 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:40:21] Production.INFO: ==9705== Releasing lock... [2025-04-24 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:41:05 [end_date_ymd] => 2025-04-24 06:41:05 [RateCDR] => 1 ) [2025-04-24 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:41:05' and `end` < '2025-04-24 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:41:18] Production.INFO: count ==92 [2025-04-24 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:41:05 - End Time 2025-04-24 06:41:05 [2025-04-24 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977840', 'tblTempUsageDetail_20' ) start [2025-04-24 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977840', 'tblTempUsageDetail_20' ) end [2025-04-24 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977840', 'tblTempVendorCDR_20' ) start [2025-04-24 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977840', 'tblTempVendorCDR_20' ) end [2025-04-24 06:41:18] Production.INFO: ProcessCDR(1,14977840,1,1,2) [2025-04-24 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977840', 'tblTempUsageDetail_20' ) start [2025-04-24 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977840', 'tblTempUsageDetail_20' ) end [2025-04-24 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:41:21] Production.INFO: ==9821== Releasing lock... [2025-04-24 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:42:05 [end_date_ymd] => 2025-04-24 06:42:05 [RateCDR] => 1 ) [2025-04-24 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:42:05' and `end` < '2025-04-24 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:42:18] Production.INFO: count ==91 [2025-04-24 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:42:05 - End Time 2025-04-24 06:42:05 [2025-04-24 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977845', 'tblTempUsageDetail_20' ) start [2025-04-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977845', 'tblTempUsageDetail_20' ) end [2025-04-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977845', 'tblTempVendorCDR_20' ) start [2025-04-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977845', 'tblTempVendorCDR_20' ) end [2025-04-24 06:42:18] Production.INFO: ProcessCDR(1,14977845,1,1,2) [2025-04-24 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977845', 'tblTempUsageDetail_20' ) start [2025-04-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977845', 'tblTempUsageDetail_20' ) end [2025-04-24 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:42:21] Production.INFO: ==9895== Releasing lock... [2025-04-24 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:43:05 [end_date_ymd] => 2025-04-24 06:43:05 [RateCDR] => 1 ) [2025-04-24 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:43:05' and `end` < '2025-04-24 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:43:17] Production.INFO: count ==91 [2025-04-24 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:43:05 - End Time 2025-04-24 06:43:05 [2025-04-24 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977850', 'tblTempUsageDetail_20' ) start [2025-04-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977850', 'tblTempUsageDetail_20' ) end [2025-04-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977850', 'tblTempVendorCDR_20' ) start [2025-04-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977850', 'tblTempVendorCDR_20' ) end [2025-04-24 06:43:17] Production.INFO: ProcessCDR(1,14977850,1,1,2) [2025-04-24 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977850', 'tblTempUsageDetail_20' ) start [2025-04-24 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977850', 'tblTempUsageDetail_20' ) end [2025-04-24 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:43:21] Production.INFO: ==9967== Releasing lock... [2025-04-24 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:44:05 [end_date_ymd] => 2025-04-24 06:44:05 [RateCDR] => 1 ) [2025-04-24 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:44:05' and `end` < '2025-04-24 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:44:17] Production.INFO: count ==91 [2025-04-24 06:44:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:44:05 - End Time 2025-04-24 06:44:05 [2025-04-24 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977855', 'tblTempUsageDetail_20' ) start [2025-04-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977855', 'tblTempUsageDetail_20' ) end [2025-04-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977855', 'tblTempVendorCDR_20' ) start [2025-04-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977855', 'tblTempVendorCDR_20' ) end [2025-04-24 06:44:17] Production.INFO: ProcessCDR(1,14977855,1,1,2) [2025-04-24 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977855', 'tblTempUsageDetail_20' ) start [2025-04-24 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977855', 'tblTempUsageDetail_20' ) end [2025-04-24 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:44:20] Production.INFO: ==10037== Releasing lock... [2025-04-24 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:45:05 [end_date_ymd] => 2025-04-24 06:45:05 [RateCDR] => 1 ) [2025-04-24 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:45:05' and `end` < '2025-04-24 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:45:18] Production.INFO: count ==91 [2025-04-24 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:45:05 - End Time 2025-04-24 06:45:05 [2025-04-24 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977860', 'tblTempUsageDetail_20' ) start [2025-04-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977860', 'tblTempUsageDetail_20' ) end [2025-04-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977860', 'tblTempVendorCDR_20' ) start [2025-04-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977860', 'tblTempVendorCDR_20' ) end [2025-04-24 06:45:18] Production.INFO: ProcessCDR(1,14977860,1,1,2) [2025-04-24 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977860', 'tblTempUsageDetail_20' ) start [2025-04-24 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977860', 'tblTempUsageDetail_20' ) end [2025-04-24 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:45:21] Production.INFO: ==10112== Releasing lock... [2025-04-24 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:46:04 [end_date_ymd] => 2025-04-24 06:46:04 [RateCDR] => 1 ) [2025-04-24 06: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-04-24 03:46:04' and `end` < '2025-04-24 06: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-04-24 06:46:17] Production.INFO: count ==91 [2025-04-24 06:46:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:46:04 - End Time 2025-04-24 06:46:04 [2025-04-24 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977865', 'tblTempUsageDetail_20' ) start [2025-04-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977865', 'tblTempUsageDetail_20' ) end [2025-04-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977865', 'tblTempVendorCDR_20' ) start [2025-04-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977865', 'tblTempVendorCDR_20' ) end [2025-04-24 06:46:17] Production.INFO: ProcessCDR(1,14977865,1,1,2) [2025-04-24 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977865', 'tblTempUsageDetail_20' ) start [2025-04-24 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977865', 'tblTempUsageDetail_20' ) end [2025-04-24 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:46:20] Production.INFO: ==10184== Releasing lock... [2025-04-24 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:47:05 [end_date_ymd] => 2025-04-24 06:47:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 03:47:05' and `end` < '2025-04-24 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-04-24 06:47:18] Production.INFO: count ==88 [2025-04-24 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:47:05 - End Time 2025-04-24 06:47:05 [2025-04-24 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977870', 'tblTempUsageDetail_20' ) start [2025-04-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977870', 'tblTempUsageDetail_20' ) end [2025-04-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977870', 'tblTempVendorCDR_20' ) start [2025-04-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977870', 'tblTempVendorCDR_20' ) end [2025-04-24 06:47:18] Production.INFO: ProcessCDR(1,14977870,1,1,2) [2025-04-24 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977870', 'tblTempUsageDetail_20' ) start [2025-04-24 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977870', 'tblTempUsageDetail_20' ) end [2025-04-24 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:47:21] Production.INFO: ==10256== Releasing lock... [2025-04-24 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:48:06 [end_date_ymd] => 2025-04-24 06:48:06 [RateCDR] => 1 ) [2025-04-24 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:48:06' and `end` < '2025-04-24 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:48:18] Production.INFO: count ==87 [2025-04-24 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:48:06 - End Time 2025-04-24 06:48:06 [2025-04-24 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977875', 'tblTempUsageDetail_20' ) start [2025-04-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977875', 'tblTempUsageDetail_20' ) end [2025-04-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977875', 'tblTempVendorCDR_20' ) start [2025-04-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977875', 'tblTempVendorCDR_20' ) end [2025-04-24 06:48:18] Production.INFO: ProcessCDR(1,14977875,1,1,2) [2025-04-24 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977875', 'tblTempUsageDetail_20' ) start [2025-04-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977875', 'tblTempUsageDetail_20' ) end [2025-04-24 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:48:21] Production.INFO: ==10327== Releasing lock... [2025-04-24 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:49:05 [end_date_ymd] => 2025-04-24 06:49:05 [RateCDR] => 1 ) [2025-04-24 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:49:05' and `end` < '2025-04-24 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:49:18] Production.INFO: count ==86 [2025-04-24 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:49:05 - End Time 2025-04-24 06:49:05 [2025-04-24 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977880', 'tblTempUsageDetail_20' ) start [2025-04-24 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977880', 'tblTempUsageDetail_20' ) end [2025-04-24 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977880', 'tblTempVendorCDR_20' ) start [2025-04-24 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977880', 'tblTempVendorCDR_20' ) end [2025-04-24 06:49:18] Production.INFO: ProcessCDR(1,14977880,1,1,2) [2025-04-24 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977880', 'tblTempUsageDetail_20' ) start [2025-04-24 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977880', 'tblTempUsageDetail_20' ) end [2025-04-24 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:49:21] Production.INFO: ==10399== Releasing lock... [2025-04-24 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:50:06 [end_date_ymd] => 2025-04-24 06:50:06 [RateCDR] => 1 ) [2025-04-24 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:50:06' and `end` < '2025-04-24 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:50:19] Production.INFO: count ==77 [2025-04-24 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 03:50:06 - End Time 2025-04-24 06:50:06 [2025-04-24 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977886', 'tblTempUsageDetail_20' ) start [2025-04-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977886', 'tblTempUsageDetail_20' ) end [2025-04-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977886', 'tblTempVendorCDR_20' ) start [2025-04-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977886', 'tblTempVendorCDR_20' ) end [2025-04-24 06:50:19] Production.INFO: ProcessCDR(1,14977886,1,1,2) [2025-04-24 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977886', 'tblTempUsageDetail_20' ) start [2025-04-24 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977886', 'tblTempUsageDetail_20' ) end [2025-04-24 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:50:22] Production.INFO: ==10475== Releasing lock... [2025-04-24 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:51:05 [end_date_ymd] => 2025-04-24 06:51:05 [RateCDR] => 1 ) [2025-04-24 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:51:05' and `end` < '2025-04-24 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:51:17] Production.INFO: count ==76 [2025-04-24 06:51:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:51:05 - End Time 2025-04-24 06:51:05 [2025-04-24 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977891', 'tblTempUsageDetail_20' ) start [2025-04-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977891', 'tblTempUsageDetail_20' ) end [2025-04-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977891', 'tblTempVendorCDR_20' ) start [2025-04-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977891', 'tblTempVendorCDR_20' ) end [2025-04-24 06:51:17] Production.INFO: ProcessCDR(1,14977891,1,1,2) [2025-04-24 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977891', 'tblTempUsageDetail_20' ) start [2025-04-24 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977891', 'tblTempUsageDetail_20' ) end [2025-04-24 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:51:21] Production.INFO: ==10549== Releasing lock... [2025-04-24 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:52:05 [end_date_ymd] => 2025-04-24 06:52:05 [RateCDR] => 1 ) [2025-04-24 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:52:05' and `end` < '2025-04-24 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:52:18] Production.INFO: count ==76 [2025-04-24 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:52:05 - End Time 2025-04-24 06:52:05 [2025-04-24 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977896', 'tblTempUsageDetail_20' ) start [2025-04-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977896', 'tblTempUsageDetail_20' ) end [2025-04-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977896', 'tblTempVendorCDR_20' ) start [2025-04-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977896', 'tblTempVendorCDR_20' ) end [2025-04-24 06:52:18] Production.INFO: ProcessCDR(1,14977896,1,1,2) [2025-04-24 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977896', 'tblTempUsageDetail_20' ) start [2025-04-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977896', 'tblTempUsageDetail_20' ) end [2025-04-24 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:52:21] Production.INFO: ==10619== Releasing lock... [2025-04-24 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:53:04 [end_date_ymd] => 2025-04-24 06:53:04 [RateCDR] => 1 ) [2025-04-24 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-04-24 03:53:04' and `end` < '2025-04-24 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-04-24 06:53:17] Production.INFO: count ==76 [2025-04-24 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:53:04 - End Time 2025-04-24 06:53:04 [2025-04-24 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977901', 'tblTempUsageDetail_20' ) start [2025-04-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977901', 'tblTempUsageDetail_20' ) end [2025-04-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977901', 'tblTempVendorCDR_20' ) start [2025-04-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977901', 'tblTempVendorCDR_20' ) end [2025-04-24 06:53:17] Production.INFO: ProcessCDR(1,14977901,1,1,2) [2025-04-24 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977901', 'tblTempUsageDetail_20' ) start [2025-04-24 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977901', 'tblTempUsageDetail_20' ) end [2025-04-24 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:53:20] Production.INFO: ==10689== Releasing lock... [2025-04-24 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:54:05 [end_date_ymd] => 2025-04-24 06:54:05 [RateCDR] => 1 ) [2025-04-24 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:54:05' and `end` < '2025-04-24 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:54:18] Production.INFO: count ==78 [2025-04-24 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:54:05 - End Time 2025-04-24 06:54:05 [2025-04-24 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977906', 'tblTempUsageDetail_20' ) start [2025-04-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977906', 'tblTempUsageDetail_20' ) end [2025-04-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977906', 'tblTempVendorCDR_20' ) start [2025-04-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977906', 'tblTempVendorCDR_20' ) end [2025-04-24 06:54:18] Production.INFO: ProcessCDR(1,14977906,1,1,2) [2025-04-24 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977906', 'tblTempUsageDetail_20' ) start [2025-04-24 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977906', 'tblTempUsageDetail_20' ) end [2025-04-24 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:54:21] Production.INFO: ==10764== Releasing lock... [2025-04-24 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:55:05 [end_date_ymd] => 2025-04-24 06:55:05 [RateCDR] => 1 ) [2025-04-24 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:55:05' and `end` < '2025-04-24 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:55:18] Production.INFO: count ==79 [2025-04-24 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:55:05 - End Time 2025-04-24 06:55:05 [2025-04-24 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977911', 'tblTempUsageDetail_20' ) start [2025-04-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977911', 'tblTempUsageDetail_20' ) end [2025-04-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977911', 'tblTempVendorCDR_20' ) start [2025-04-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977911', 'tblTempVendorCDR_20' ) end [2025-04-24 06:55:18] Production.INFO: ProcessCDR(1,14977911,1,1,2) [2025-04-24 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977911', 'tblTempUsageDetail_20' ) start [2025-04-24 06:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977911', 'tblTempUsageDetail_20' ) end [2025-04-24 06:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:55:23] Production.INFO: ==10840== Releasing lock... [2025-04-24 06:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:56:05 [end_date_ymd] => 2025-04-24 06:56:05 [RateCDR] => 1 ) [2025-04-24 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:56:05' and `end` < '2025-04-24 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:56:17] Production.INFO: count ==79 [2025-04-24 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:56:05 - End Time 2025-04-24 06:56:05 [2025-04-24 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977916', 'tblTempUsageDetail_20' ) start [2025-04-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977916', 'tblTempUsageDetail_20' ) end [2025-04-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977916', 'tblTempVendorCDR_20' ) start [2025-04-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977916', 'tblTempVendorCDR_20' ) end [2025-04-24 06:56:18] Production.INFO: ProcessCDR(1,14977916,1,1,2) [2025-04-24 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977916', 'tblTempUsageDetail_20' ) start [2025-04-24 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977916', 'tblTempUsageDetail_20' ) end [2025-04-24 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:56:21] Production.INFO: ==10963== Releasing lock... [2025-04-24 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:57:05 [end_date_ymd] => 2025-04-24 06:57:05 [RateCDR] => 1 ) [2025-04-24 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:57:05' and `end` < '2025-04-24 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:57:17] Production.INFO: count ==79 [2025-04-24 06:57:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:57:05 - End Time 2025-04-24 06:57:05 [2025-04-24 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977921', 'tblTempUsageDetail_20' ) start [2025-04-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977921', 'tblTempUsageDetail_20' ) end [2025-04-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977921', 'tblTempVendorCDR_20' ) start [2025-04-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977921', 'tblTempVendorCDR_20' ) end [2025-04-24 06:57:17] Production.INFO: ProcessCDR(1,14977921,1,1,2) [2025-04-24 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977921', 'tblTempUsageDetail_20' ) start [2025-04-24 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977921', 'tblTempUsageDetail_20' ) end [2025-04-24 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:57:20] Production.INFO: ==11032== Releasing lock... [2025-04-24 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:58:06 [end_date_ymd] => 2025-04-24 06:58:06 [RateCDR] => 1 ) [2025-04-24 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:58:06' and `end` < '2025-04-24 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:58:18] Production.INFO: count ==79 [2025-04-24 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 03:58:06 - End Time 2025-04-24 06:58:06 [2025-04-24 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977926', 'tblTempUsageDetail_20' ) start [2025-04-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977926', 'tblTempUsageDetail_20' ) end [2025-04-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977926', 'tblTempVendorCDR_20' ) start [2025-04-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977926', 'tblTempVendorCDR_20' ) end [2025-04-24 06:58:18] Production.INFO: ProcessCDR(1,14977926,1,1,2) [2025-04-24 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977926', 'tblTempUsageDetail_20' ) start [2025-04-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977926', 'tblTempUsageDetail_20' ) end [2025-04-24 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:58:21] Production.INFO: ==11103== Releasing lock... [2025-04-24 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 03:59:05 [end_date_ymd] => 2025-04-24 06:59:05 [RateCDR] => 1 ) [2025-04-24 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 03:59:05' and `end` < '2025-04-24 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 06:59:17] Production.INFO: count ==79 [2025-04-24 06:59:17] Production.ERROR: pbx CDR StartTime 2025-04-24 03:59:05 - End Time 2025-04-24 06:59:05 [2025-04-24 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977931', 'tblTempUsageDetail_20' ) start [2025-04-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977931', 'tblTempUsageDetail_20' ) end [2025-04-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977931', 'tblTempVendorCDR_20' ) start [2025-04-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977931', 'tblTempVendorCDR_20' ) end [2025-04-24 06:59:17] Production.INFO: ProcessCDR(1,14977931,1,1,2) [2025-04-24 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977931', 'tblTempUsageDetail_20' ) start [2025-04-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977931', 'tblTempUsageDetail_20' ) end [2025-04-24 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 06:59:20] Production.INFO: ==11175== Releasing lock... [2025-04-24 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 06:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:00:06 [end_date_ymd] => 2025-04-24 07:00:06 [RateCDR] => 1 ) [2025-04-24 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:00:06' and `end` < '2025-04-24 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:00:18] Production.INFO: count ==79 [2025-04-24 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:00:06 - End Time 2025-04-24 07:00:06 [2025-04-24 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977937', 'tblTempUsageDetail_20' ) start [2025-04-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977937', 'tblTempUsageDetail_20' ) end [2025-04-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977937', 'tblTempVendorCDR_20' ) start [2025-04-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977937', 'tblTempVendorCDR_20' ) end [2025-04-24 07:00:18] Production.INFO: ProcessCDR(1,14977937,1,1,2) [2025-04-24 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977937', 'tblTempUsageDetail_20' ) start [2025-04-24 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977937', 'tblTempUsageDetail_20' ) end [2025-04-24 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:00:22] Production.INFO: ==11257== Releasing lock... [2025-04-24 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:01:05 [end_date_ymd] => 2025-04-24 07:01:05 [RateCDR] => 1 ) [2025-04-24 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:01:05' and `end` < '2025-04-24 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:01:18] Production.INFO: count ==79 [2025-04-24 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:01:05 - End Time 2025-04-24 07:01:05 [2025-04-24 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977942', 'tblTempUsageDetail_20' ) start [2025-04-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977942', 'tblTempUsageDetail_20' ) end [2025-04-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977942', 'tblTempVendorCDR_20' ) start [2025-04-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977942', 'tblTempVendorCDR_20' ) end [2025-04-24 07:01:18] Production.INFO: ProcessCDR(1,14977942,1,1,2) [2025-04-24 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977942', 'tblTempUsageDetail_20' ) start [2025-04-24 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977942', 'tblTempUsageDetail_20' ) end [2025-04-24 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:01:21] Production.INFO: ==11387== Releasing lock... [2025-04-24 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:02:05 [end_date_ymd] => 2025-04-24 07:02:05 [RateCDR] => 1 ) [2025-04-24 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:02:05' and `end` < '2025-04-24 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:02:18] Production.INFO: count ==79 [2025-04-24 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:02:05 - End Time 2025-04-24 07:02:05 [2025-04-24 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977947', 'tblTempUsageDetail_20' ) start [2025-04-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977947', 'tblTempUsageDetail_20' ) end [2025-04-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977947', 'tblTempVendorCDR_20' ) start [2025-04-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977947', 'tblTempVendorCDR_20' ) end [2025-04-24 07:02:18] Production.INFO: ProcessCDR(1,14977947,1,1,2) [2025-04-24 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977947', 'tblTempUsageDetail_20' ) start [2025-04-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977947', 'tblTempUsageDetail_20' ) end [2025-04-24 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:02:21] Production.INFO: ==11497== Releasing lock... [2025-04-24 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-24 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:03:05 [end_date_ymd] => 2025-04-24 07:03:05 [RateCDR] => 1 ) [2025-04-24 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:03:05' and `end` < '2025-04-24 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:03:18] Production.INFO: count ==90 [2025-04-24 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:03:05 - End Time 2025-04-24 07:03:05 [2025-04-24 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977952', 'tblTempUsageDetail_20' ) start [2025-04-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977952', 'tblTempUsageDetail_20' ) end [2025-04-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977952', 'tblTempVendorCDR_20' ) start [2025-04-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977952', 'tblTempVendorCDR_20' ) end [2025-04-24 07:03:18] Production.INFO: ProcessCDR(1,14977952,1,1,2) [2025-04-24 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977952', 'tblTempUsageDetail_20' ) start [2025-04-24 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977952', 'tblTempUsageDetail_20' ) end [2025-04-24 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:03:21] Production.INFO: ==11571== Releasing lock... [2025-04-24 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-24 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:04:05 [end_date_ymd] => 2025-04-24 07:04:05 [RateCDR] => 1 ) [2025-04-24 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:04:05' and `end` < '2025-04-24 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:04:18] Production.INFO: count ==98 [2025-04-24 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:04:05 - End Time 2025-04-24 07:04:05 [2025-04-24 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977957', 'tblTempUsageDetail_20' ) start [2025-04-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977957', 'tblTempUsageDetail_20' ) end [2025-04-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977957', 'tblTempVendorCDR_20' ) start [2025-04-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977957', 'tblTempVendorCDR_20' ) end [2025-04-24 07:04:18] Production.INFO: ProcessCDR(1,14977957,1,1,2) [2025-04-24 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977957', 'tblTempUsageDetail_20' ) start [2025-04-24 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977957', 'tblTempUsageDetail_20' ) end [2025-04-24 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:04:21] Production.INFO: ==11641== Releasing lock... [2025-04-24 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:05:05 [end_date_ymd] => 2025-04-24 07:05:05 [RateCDR] => 1 ) [2025-04-24 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:05:05' and `end` < '2025-04-24 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:05:19] Production.INFO: count ==98 [2025-04-24 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:05:05 - End Time 2025-04-24 07:05:05 [2025-04-24 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977962', 'tblTempUsageDetail_20' ) start [2025-04-24 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977962', 'tblTempUsageDetail_20' ) end [2025-04-24 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977962', 'tblTempVendorCDR_20' ) start [2025-04-24 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977962', 'tblTempVendorCDR_20' ) end [2025-04-24 07:05:19] Production.INFO: ProcessCDR(1,14977962,1,1,2) [2025-04-24 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977962', 'tblTempUsageDetail_20' ) start [2025-04-24 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977962', 'tblTempUsageDetail_20' ) end [2025-04-24 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:05:22] Production.INFO: ==11795== Releasing lock... [2025-04-24 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:05:22] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:06:05 [end_date_ymd] => 2025-04-24 07:06:05 [RateCDR] => 1 ) [2025-04-24 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:06:05' and `end` < '2025-04-24 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:06:17] Production.INFO: count ==98 [2025-04-24 07:06:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:06:05 - End Time 2025-04-24 07:06:05 [2025-04-24 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977967', 'tblTempUsageDetail_20' ) start [2025-04-24 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977967', 'tblTempUsageDetail_20' ) end [2025-04-24 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977967', 'tblTempVendorCDR_20' ) start [2025-04-24 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977967', 'tblTempVendorCDR_20' ) end [2025-04-24 07:06:17] Production.INFO: ProcessCDR(1,14977967,1,1,2) [2025-04-24 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977967', 'tblTempUsageDetail_20' ) start [2025-04-24 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977967', 'tblTempUsageDetail_20' ) end [2025-04-24 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:06:21] Production.INFO: ==11865== Releasing lock... [2025-04-24 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:07:05 [end_date_ymd] => 2025-04-24 07:07:05 [RateCDR] => 1 ) [2025-04-24 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:07:05' and `end` < '2025-04-24 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:07:18] Production.INFO: count ==98 [2025-04-24 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:07:05 - End Time 2025-04-24 07:07:05 [2025-04-24 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977972', 'tblTempUsageDetail_20' ) start [2025-04-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977972', 'tblTempUsageDetail_20' ) end [2025-04-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977972', 'tblTempVendorCDR_20' ) start [2025-04-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977972', 'tblTempVendorCDR_20' ) end [2025-04-24 07:07:18] Production.INFO: ProcessCDR(1,14977972,1,1,2) [2025-04-24 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977972', 'tblTempUsageDetail_20' ) start [2025-04-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977972', 'tblTempUsageDetail_20' ) end [2025-04-24 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:07:22] Production.INFO: ==11937== Releasing lock... [2025-04-24 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:07:22] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:08:04 [end_date_ymd] => 2025-04-24 07:08:04 [RateCDR] => 1 ) [2025-04-24 07:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:08:04' and `end` < '2025-04-24 07:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:08:18] Production.INFO: count ==116 [2025-04-24 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:08:04 - End Time 2025-04-24 07:08:04 [2025-04-24 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977977', 'tblTempUsageDetail_20' ) start [2025-04-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977977', 'tblTempUsageDetail_20' ) end [2025-04-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977977', 'tblTempVendorCDR_20' ) start [2025-04-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977977', 'tblTempVendorCDR_20' ) end [2025-04-24 07:08:18] Production.INFO: ProcessCDR(1,14977977,1,1,2) [2025-04-24 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977977', 'tblTempUsageDetail_20' ) start [2025-04-24 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977977', 'tblTempUsageDetail_20' ) end [2025-04-24 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:08:23] Production.INFO: ==12083== Releasing lock... [2025-04-24 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:09:05 [end_date_ymd] => 2025-04-24 07:09:05 [RateCDR] => 1 ) [2025-04-24 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:09:05' and `end` < '2025-04-24 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:09:19] Production.INFO: count ==117 [2025-04-24 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:09:05 - End Time 2025-04-24 07:09:05 [2025-04-24 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977982', 'tblTempUsageDetail_20' ) start [2025-04-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977982', 'tblTempUsageDetail_20' ) end [2025-04-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977982', 'tblTempVendorCDR_20' ) start [2025-04-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977982', 'tblTempVendorCDR_20' ) end [2025-04-24 07:09:19] Production.INFO: ProcessCDR(1,14977982,1,1,2) [2025-04-24 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977982', 'tblTempUsageDetail_20' ) start [2025-04-24 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977982', 'tblTempUsageDetail_20' ) end [2025-04-24 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:09:24] Production.INFO: ==12163== Releasing lock... [2025-04-24 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:09:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:10:06 [end_date_ymd] => 2025-04-24 07:10:06 [RateCDR] => 1 ) [2025-04-24 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:10:06' and `end` < '2025-04-24 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:10:19] Production.INFO: count ==129 [2025-04-24 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:10:06 - End Time 2025-04-24 07:10:06 [2025-04-24 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977987', 'tblTempUsageDetail_20' ) start [2025-04-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977987', 'tblTempUsageDetail_20' ) end [2025-04-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977987', 'tblTempVendorCDR_20' ) start [2025-04-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977987', 'tblTempVendorCDR_20' ) end [2025-04-24 07:10:19] Production.INFO: ProcessCDR(1,14977987,1,1,2) [2025-04-24 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977987', 'tblTempUsageDetail_20' ) start [2025-04-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977987', 'tblTempUsageDetail_20' ) end [2025-04-24 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:10:22] Production.INFO: ==12235== Releasing lock... [2025-04-24 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:11:05 [end_date_ymd] => 2025-04-24 07:11:05 [RateCDR] => 1 ) [2025-04-24 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:11:05' and `end` < '2025-04-24 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:11:18] Production.INFO: count ==131 [2025-04-24 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:11:05 - End Time 2025-04-24 07:11:05 [2025-04-24 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977993', 'tblTempUsageDetail_20' ) start [2025-04-24 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977993', 'tblTempUsageDetail_20' ) end [2025-04-24 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977993', 'tblTempVendorCDR_20' ) start [2025-04-24 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977993', 'tblTempVendorCDR_20' ) end [2025-04-24 07:11:18] Production.INFO: ProcessCDR(1,14977993,1,1,2) [2025-04-24 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977993', 'tblTempUsageDetail_20' ) start [2025-04-24 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977993', 'tblTempUsageDetail_20' ) end [2025-04-24 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:11:21] Production.INFO: ==12306== Releasing lock... [2025-04-24 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:12:05 [end_date_ymd] => 2025-04-24 07:12:05 [RateCDR] => 1 ) [2025-04-24 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:12:05' and `end` < '2025-04-24 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:12:18] Production.INFO: count ==131 [2025-04-24 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:12:05 - End Time 2025-04-24 07:12:05 [2025-04-24 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977998', 'tblTempUsageDetail_20' ) start [2025-04-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14977998', 'tblTempUsageDetail_20' ) end [2025-04-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977998', 'tblTempVendorCDR_20' ) start [2025-04-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14977998', 'tblTempVendorCDR_20' ) end [2025-04-24 07:12:18] Production.INFO: ProcessCDR(1,14977998,1,1,2) [2025-04-24 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14977998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14977998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14977998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14977998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977998', 'tblTempUsageDetail_20' ) start [2025-04-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14977998', 'tblTempUsageDetail_20' ) end [2025-04-24 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:12:21] Production.INFO: ==12496== Releasing lock... [2025-04-24 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:13:05 [end_date_ymd] => 2025-04-24 07:13:05 [RateCDR] => 1 ) [2025-04-24 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:13:05' and `end` < '2025-04-24 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:13:18] Production.INFO: count ==130 [2025-04-24 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:13:05 - End Time 2025-04-24 07:13:05 [2025-04-24 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978003', 'tblTempUsageDetail_20' ) start [2025-04-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978003', 'tblTempUsageDetail_20' ) end [2025-04-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978003', 'tblTempVendorCDR_20' ) start [2025-04-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978003', 'tblTempVendorCDR_20' ) end [2025-04-24 07:13:18] Production.INFO: ProcessCDR(1,14978003,1,1,2) [2025-04-24 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978003', 'tblTempUsageDetail_20' ) start [2025-04-24 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978003', 'tblTempUsageDetail_20' ) end [2025-04-24 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:13:21] Production.INFO: ==12565== Releasing lock... [2025-04-24 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:14:05 [end_date_ymd] => 2025-04-24 07:14:05 [RateCDR] => 1 ) [2025-04-24 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:14:05' and `end` < '2025-04-24 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:14:18] Production.INFO: count ==130 [2025-04-24 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:14:05 - End Time 2025-04-24 07:14:05 [2025-04-24 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978008', 'tblTempUsageDetail_20' ) start [2025-04-24 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978008', 'tblTempUsageDetail_20' ) end [2025-04-24 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978008', 'tblTempVendorCDR_20' ) start [2025-04-24 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978008', 'tblTempVendorCDR_20' ) end [2025-04-24 07:14:18] Production.INFO: ProcessCDR(1,14978008,1,1,2) [2025-04-24 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978008', 'tblTempUsageDetail_20' ) start [2025-04-24 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978008', 'tblTempUsageDetail_20' ) end [2025-04-24 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:14:21] Production.INFO: ==12636== Releasing lock... [2025-04-24 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:15:06 [end_date_ymd] => 2025-04-24 07:15:06 [RateCDR] => 1 ) [2025-04-24 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:15:06' and `end` < '2025-04-24 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:15:23] Production.INFO: count ==129 [2025-04-24 07:15:23] Production.ERROR: pbx CDR StartTime 2025-04-24 04:15:06 - End Time 2025-04-24 07:15:06 [2025-04-24 07:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978013', 'tblTempUsageDetail_20' ) start [2025-04-24 07:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978013', 'tblTempUsageDetail_20' ) end [2025-04-24 07:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978013', 'tblTempVendorCDR_20' ) start [2025-04-24 07:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978013', 'tblTempVendorCDR_20' ) end [2025-04-24 07:15:23] Production.INFO: ProcessCDR(1,14978013,1,1,2) [2025-04-24 07:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978013', 'tblTempUsageDetail_20' ) start [2025-04-24 07:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978013', 'tblTempUsageDetail_20' ) end [2025-04-24 07:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:15:28] Production.INFO: ==12786== Releasing lock... [2025-04-24 07:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:15:28] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:16:05 [end_date_ymd] => 2025-04-24 07:16:05 [RateCDR] => 1 ) [2025-04-24 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:16:05' and `end` < '2025-04-24 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:16:18] Production.INFO: count ==129 [2025-04-24 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:16:05 - End Time 2025-04-24 07:16:05 [2025-04-24 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978018', 'tblTempUsageDetail_20' ) start [2025-04-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978018', 'tblTempUsageDetail_20' ) end [2025-04-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978018', 'tblTempVendorCDR_20' ) start [2025-04-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978018', 'tblTempVendorCDR_20' ) end [2025-04-24 07:16:18] Production.INFO: ProcessCDR(1,14978018,1,1,2) [2025-04-24 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978018', 'tblTempUsageDetail_20' ) start [2025-04-24 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978018', 'tblTempUsageDetail_20' ) end [2025-04-24 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:16:21] Production.INFO: ==12862== Releasing lock... [2025-04-24 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:17:05 [end_date_ymd] => 2025-04-24 07:17:05 [RateCDR] => 1 ) [2025-04-24 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:17:05' and `end` < '2025-04-24 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:17:18] Production.INFO: count ==129 [2025-04-24 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:17:05 - End Time 2025-04-24 07:17:05 [2025-04-24 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978023', 'tblTempUsageDetail_20' ) start [2025-04-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978023', 'tblTempUsageDetail_20' ) end [2025-04-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978023', 'tblTempVendorCDR_20' ) start [2025-04-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978023', 'tblTempVendorCDR_20' ) end [2025-04-24 07:17:18] Production.INFO: ProcessCDR(1,14978023,1,1,2) [2025-04-24 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978023', 'tblTempUsageDetail_20' ) start [2025-04-24 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978023', 'tblTempUsageDetail_20' ) end [2025-04-24 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:17:21] Production.INFO: ==12937== Releasing lock... [2025-04-24 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:18:05 [end_date_ymd] => 2025-04-24 07:18:05 [RateCDR] => 1 ) [2025-04-24 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:18:05' and `end` < '2025-04-24 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:18:18] Production.INFO: count ==128 [2025-04-24 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:18:05 - End Time 2025-04-24 07:18:05 [2025-04-24 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978028', 'tblTempUsageDetail_20' ) start [2025-04-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978028', 'tblTempUsageDetail_20' ) end [2025-04-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978028', 'tblTempVendorCDR_20' ) start [2025-04-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978028', 'tblTempVendorCDR_20' ) end [2025-04-24 07:18:18] Production.INFO: ProcessCDR(1,14978028,1,1,2) [2025-04-24 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978028', 'tblTempUsageDetail_20' ) start [2025-04-24 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978028', 'tblTempUsageDetail_20' ) end [2025-04-24 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:18:22] Production.INFO: ==13007== Releasing lock... [2025-04-24 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:19:05 [end_date_ymd] => 2025-04-24 07:19:05 [RateCDR] => 1 ) [2025-04-24 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:19:05' and `end` < '2025-04-24 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:19:18] Production.INFO: count ==129 [2025-04-24 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:19:05 - End Time 2025-04-24 07:19:05 [2025-04-24 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978033', 'tblTempUsageDetail_20' ) start [2025-04-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978033', 'tblTempUsageDetail_20' ) end [2025-04-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978033', 'tblTempVendorCDR_20' ) start [2025-04-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978033', 'tblTempVendorCDR_20' ) end [2025-04-24 07:19:18] Production.INFO: ProcessCDR(1,14978033,1,1,2) [2025-04-24 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978033', 'tblTempUsageDetail_20' ) start [2025-04-24 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978033', 'tblTempUsageDetail_20' ) end [2025-04-24 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:19:23] Production.INFO: ==13081== Releasing lock... [2025-04-24 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:19:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:20:06 [end_date_ymd] => 2025-04-24 07:20:06 [RateCDR] => 1 ) [2025-04-24 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:20:06' and `end` < '2025-04-24 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:20:19] Production.INFO: count ==129 [2025-04-24 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:20:06 - End Time 2025-04-24 07:20:06 [2025-04-24 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978039', 'tblTempUsageDetail_20' ) start [2025-04-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978039', 'tblTempUsageDetail_20' ) end [2025-04-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978039', 'tblTempVendorCDR_20' ) start [2025-04-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978039', 'tblTempVendorCDR_20' ) end [2025-04-24 07:20:19] Production.INFO: ProcessCDR(1,14978039,1,1,2) [2025-04-24 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978039', 'tblTempUsageDetail_20' ) start [2025-04-24 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978039', 'tblTempUsageDetail_20' ) end [2025-04-24 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:20:22] Production.INFO: ==13155== Releasing lock... [2025-04-24 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:21:05 [end_date_ymd] => 2025-04-24 07:21:05 [RateCDR] => 1 ) [2025-04-24 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:21:05' and `end` < '2025-04-24 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:21:18] Production.INFO: count ==129 [2025-04-24 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:21:05 - End Time 2025-04-24 07:21:05 [2025-04-24 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978044', 'tblTempUsageDetail_20' ) start [2025-04-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978044', 'tblTempUsageDetail_20' ) end [2025-04-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978044', 'tblTempVendorCDR_20' ) start [2025-04-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978044', 'tblTempVendorCDR_20' ) end [2025-04-24 07:21:19] Production.INFO: ProcessCDR(1,14978044,1,1,2) [2025-04-24 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978044', 'tblTempUsageDetail_20' ) start [2025-04-24 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978044', 'tblTempUsageDetail_20' ) end [2025-04-24 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:21:22] Production.INFO: ==13229== Releasing lock... [2025-04-24 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:22:05 [end_date_ymd] => 2025-04-24 07:22:05 [RateCDR] => 1 ) [2025-04-24 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:22:05' and `end` < '2025-04-24 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:22:18] Production.INFO: count ==129 [2025-04-24 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:22:05 - End Time 2025-04-24 07:22:05 [2025-04-24 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978049', 'tblTempUsageDetail_20' ) start [2025-04-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978049', 'tblTempUsageDetail_20' ) end [2025-04-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978049', 'tblTempVendorCDR_20' ) start [2025-04-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978049', 'tblTempVendorCDR_20' ) end [2025-04-24 07:22:18] Production.INFO: ProcessCDR(1,14978049,1,1,2) [2025-04-24 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978049', 'tblTempUsageDetail_20' ) start [2025-04-24 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978049', 'tblTempUsageDetail_20' ) end [2025-04-24 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:22:21] Production.INFO: ==13305== Releasing lock... [2025-04-24 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:23:05 [end_date_ymd] => 2025-04-24 07:23:05 [RateCDR] => 1 ) [2025-04-24 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:23:05' and `end` < '2025-04-24 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:23:17] Production.INFO: count ==130 [2025-04-24 07:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:23:05 - End Time 2025-04-24 07:23:05 [2025-04-24 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978054', 'tblTempUsageDetail_20' ) start [2025-04-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978054', 'tblTempUsageDetail_20' ) end [2025-04-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978054', 'tblTempVendorCDR_20' ) start [2025-04-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978054', 'tblTempVendorCDR_20' ) end [2025-04-24 07:23:17] Production.INFO: ProcessCDR(1,14978054,1,1,2) [2025-04-24 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978054', 'tblTempUsageDetail_20' ) start [2025-04-24 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978054', 'tblTempUsageDetail_20' ) end [2025-04-24 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:23:23] Production.INFO: ==13378== Releasing lock... [2025-04-24 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:24:06 [end_date_ymd] => 2025-04-24 07:24:06 [RateCDR] => 1 ) [2025-04-24 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:24:06' and `end` < '2025-04-24 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:24:18] Production.INFO: count ==130 [2025-04-24 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:24:06 - End Time 2025-04-24 07:24:06 [2025-04-24 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978059', 'tblTempUsageDetail_20' ) start [2025-04-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978059', 'tblTempUsageDetail_20' ) end [2025-04-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978059', 'tblTempVendorCDR_20' ) start [2025-04-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978059', 'tblTempVendorCDR_20' ) end [2025-04-24 07:24:18] Production.INFO: ProcessCDR(1,14978059,1,1,2) [2025-04-24 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978059', 'tblTempUsageDetail_20' ) start [2025-04-24 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978059', 'tblTempUsageDetail_20' ) end [2025-04-24 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:24:22] Production.INFO: ==13450== Releasing lock... [2025-04-24 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:25:05 [end_date_ymd] => 2025-04-24 07:25:05 [RateCDR] => 1 ) [2025-04-24 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:25:05' and `end` < '2025-04-24 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:25:18] Production.INFO: count ==130 [2025-04-24 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:25:05 - End Time 2025-04-24 07:25:05 [2025-04-24 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978064', 'tblTempUsageDetail_20' ) start [2025-04-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978064', 'tblTempUsageDetail_20' ) end [2025-04-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978064', 'tblTempVendorCDR_20' ) start [2025-04-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978064', 'tblTempVendorCDR_20' ) end [2025-04-24 07:25:18] Production.INFO: ProcessCDR(1,14978064,1,1,2) [2025-04-24 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978064', 'tblTempUsageDetail_20' ) start [2025-04-24 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978064', 'tblTempUsageDetail_20' ) end [2025-04-24 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:25:21] Production.INFO: ==13521== Releasing lock... [2025-04-24 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:26:05 [end_date_ymd] => 2025-04-24 07:26:05 [RateCDR] => 1 ) [2025-04-24 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:26:05' and `end` < '2025-04-24 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:26:18] Production.INFO: count ==131 [2025-04-24 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:26:05 - End Time 2025-04-24 07:26:05 [2025-04-24 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978069', 'tblTempUsageDetail_20' ) start [2025-04-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978069', 'tblTempUsageDetail_20' ) end [2025-04-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978069', 'tblTempVendorCDR_20' ) start [2025-04-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978069', 'tblTempVendorCDR_20' ) end [2025-04-24 07:26:18] Production.INFO: ProcessCDR(1,14978069,1,1,2) [2025-04-24 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978069', 'tblTempUsageDetail_20' ) start [2025-04-24 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978069', 'tblTempUsageDetail_20' ) end [2025-04-24 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:26:23] Production.INFO: ==13591== Releasing lock... [2025-04-24 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:26:23] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:27:05 [end_date_ymd] => 2025-04-24 07:27:05 [RateCDR] => 1 ) [2025-04-24 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:27:05' and `end` < '2025-04-24 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:27:17] Production.INFO: count ==131 [2025-04-24 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:27:05 - End Time 2025-04-24 07:27:05 [2025-04-24 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978074', 'tblTempUsageDetail_20' ) start [2025-04-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978074', 'tblTempUsageDetail_20' ) end [2025-04-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978074', 'tblTempVendorCDR_20' ) start [2025-04-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978074', 'tblTempVendorCDR_20' ) end [2025-04-24 07:27:17] Production.INFO: ProcessCDR(1,14978074,1,1,2) [2025-04-24 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978074', 'tblTempUsageDetail_20' ) start [2025-04-24 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978074', 'tblTempUsageDetail_20' ) end [2025-04-24 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:27:21] Production.INFO: ==13700== Releasing lock... [2025-04-24 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-04-24 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:28:05 [end_date_ymd] => 2025-04-24 07:28:05 [RateCDR] => 1 ) [2025-04-24 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:28:05' and `end` < '2025-04-24 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:28:18] Production.INFO: count ==132 [2025-04-24 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:28:05 - End Time 2025-04-24 07:28:05 [2025-04-24 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978079', 'tblTempUsageDetail_20' ) start [2025-04-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978079', 'tblTempUsageDetail_20' ) end [2025-04-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978079', 'tblTempVendorCDR_20' ) start [2025-04-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978079', 'tblTempVendorCDR_20' ) end [2025-04-24 07:28:18] Production.INFO: ProcessCDR(1,14978079,1,1,2) [2025-04-24 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978079', 'tblTempUsageDetail_20' ) start [2025-04-24 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978079', 'tblTempUsageDetail_20' ) end [2025-04-24 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:28:23] Production.INFO: ==13771== Releasing lock... [2025-04-24 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:28:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:29:06 [end_date_ymd] => 2025-04-24 07:29:06 [RateCDR] => 1 ) [2025-04-24 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:29:06' and `end` < '2025-04-24 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:29:18] Production.INFO: count ==132 [2025-04-24 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:29:06 - End Time 2025-04-24 07:29:06 [2025-04-24 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978084', 'tblTempUsageDetail_20' ) start [2025-04-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978084', 'tblTempUsageDetail_20' ) end [2025-04-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978084', 'tblTempVendorCDR_20' ) start [2025-04-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978084', 'tblTempVendorCDR_20' ) end [2025-04-24 07:29:18] Production.INFO: ProcessCDR(1,14978084,1,1,2) [2025-04-24 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978084', 'tblTempUsageDetail_20' ) start [2025-04-24 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978084', 'tblTempUsageDetail_20' ) end [2025-04-24 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:29:21] Production.INFO: ==13846== Releasing lock... [2025-04-24 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-24 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:30:06 [end_date_ymd] => 2025-04-24 07:30:06 [RateCDR] => 1 ) [2025-04-24 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:30:06' and `end` < '2025-04-24 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:30:18] Production.INFO: count ==140 [2025-04-24 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:30:06 - End Time 2025-04-24 07:30:06 [2025-04-24 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978090', 'tblTempUsageDetail_20' ) start [2025-04-24 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978090', 'tblTempUsageDetail_20' ) end [2025-04-24 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978090', 'tblTempVendorCDR_20' ) start [2025-04-24 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978090', 'tblTempVendorCDR_20' ) end [2025-04-24 07:30:18] Production.INFO: ProcessCDR(1,14978090,1,1,2) [2025-04-24 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978090', 'tblTempUsageDetail_20' ) start [2025-04-24 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978090', 'tblTempUsageDetail_20' ) end [2025-04-24 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:30:22] Production.INFO: ==13920== Releasing lock... [2025-04-24 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:31:06 [end_date_ymd] => 2025-04-24 07:31:06 [RateCDR] => 1 ) [2025-04-24 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:31:06' and `end` < '2025-04-24 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:31:18] Production.INFO: count ==162 [2025-04-24 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:31:06 - End Time 2025-04-24 07:31:06 [2025-04-24 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978095', 'tblTempUsageDetail_20' ) start [2025-04-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978095', 'tblTempUsageDetail_20' ) end [2025-04-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978095', 'tblTempVendorCDR_20' ) start [2025-04-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978095', 'tblTempVendorCDR_20' ) end [2025-04-24 07:31:18] Production.INFO: ProcessCDR(1,14978095,1,1,2) [2025-04-24 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978095', 'tblTempUsageDetail_20' ) start [2025-04-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978095', 'tblTempUsageDetail_20' ) end [2025-04-24 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:31:22] Production.INFO: ==13998== Releasing lock... [2025-04-24 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:32:05 [end_date_ymd] => 2025-04-24 07:32:05 [RateCDR] => 1 ) [2025-04-24 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:32:05' and `end` < '2025-04-24 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:32:17] Production.INFO: count ==162 [2025-04-24 07:32:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:32:05 - End Time 2025-04-24 07:32:05 [2025-04-24 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978100', 'tblTempUsageDetail_20' ) start [2025-04-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978100', 'tblTempUsageDetail_20' ) end [2025-04-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978100', 'tblTempVendorCDR_20' ) start [2025-04-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978100', 'tblTempVendorCDR_20' ) end [2025-04-24 07:32:17] Production.INFO: ProcessCDR(1,14978100,1,1,2) [2025-04-24 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978100', 'tblTempUsageDetail_20' ) start [2025-04-24 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978100', 'tblTempUsageDetail_20' ) end [2025-04-24 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:32:21] Production.INFO: ==14070== Releasing lock... [2025-04-24 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:33:05 [end_date_ymd] => 2025-04-24 07:33:05 [RateCDR] => 1 ) [2025-04-24 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:33:05' and `end` < '2025-04-24 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:33:18] Production.INFO: count ==163 [2025-04-24 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:33:05 - End Time 2025-04-24 07:33:05 [2025-04-24 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978105', 'tblTempUsageDetail_20' ) start [2025-04-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978105', 'tblTempUsageDetail_20' ) end [2025-04-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978105', 'tblTempVendorCDR_20' ) start [2025-04-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978105', 'tblTempVendorCDR_20' ) end [2025-04-24 07:33:18] Production.INFO: ProcessCDR(1,14978105,1,1,2) [2025-04-24 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978105', 'tblTempUsageDetail_20' ) start [2025-04-24 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978105', 'tblTempUsageDetail_20' ) end [2025-04-24 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:33:23] Production.INFO: ==14148== Releasing lock... [2025-04-24 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:33:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:34:05 [end_date_ymd] => 2025-04-24 07:34:05 [RateCDR] => 1 ) [2025-04-24 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:34:05' and `end` < '2025-04-24 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:34:17] Production.INFO: count ==167 [2025-04-24 07:34:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:34:05 - End Time 2025-04-24 07:34:05 [2025-04-24 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978110', 'tblTempUsageDetail_20' ) start [2025-04-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978110', 'tblTempUsageDetail_20' ) end [2025-04-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978110', 'tblTempVendorCDR_20' ) start [2025-04-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978110', 'tblTempVendorCDR_20' ) end [2025-04-24 07:34:17] Production.INFO: ProcessCDR(1,14978110,1,1,2) [2025-04-24 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978110', 'tblTempUsageDetail_20' ) start [2025-04-24 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978110', 'tblTempUsageDetail_20' ) end [2025-04-24 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:34:21] Production.INFO: ==14222== Releasing lock... [2025-04-24 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:35:05 [end_date_ymd] => 2025-04-24 07:35:05 [RateCDR] => 1 ) [2025-04-24 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:35:05' and `end` < '2025-04-24 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:35:17] Production.INFO: count ==169 [2025-04-24 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:35:05 - End Time 2025-04-24 07:35:05 [2025-04-24 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978115', 'tblTempUsageDetail_20' ) start [2025-04-24 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978115', 'tblTempUsageDetail_20' ) end [2025-04-24 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978115', 'tblTempVendorCDR_20' ) start [2025-04-24 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978115', 'tblTempVendorCDR_20' ) end [2025-04-24 07:35:17] Production.INFO: ProcessCDR(1,14978115,1,1,2) [2025-04-24 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978115', 'tblTempUsageDetail_20' ) start [2025-04-24 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978115', 'tblTempUsageDetail_20' ) end [2025-04-24 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:35:21] Production.INFO: ==14293== Releasing lock... [2025-04-24 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-24 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:36:05 [end_date_ymd] => 2025-04-24 07:36:05 [RateCDR] => 1 ) [2025-04-24 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:36:05' and `end` < '2025-04-24 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:36:18] Production.INFO: count ==177 [2025-04-24 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:36:05 - End Time 2025-04-24 07:36:05 [2025-04-24 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978120', 'tblTempUsageDetail_20' ) start [2025-04-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978120', 'tblTempUsageDetail_20' ) end [2025-04-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978120', 'tblTempVendorCDR_20' ) start [2025-04-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978120', 'tblTempVendorCDR_20' ) end [2025-04-24 07:36:18] Production.INFO: ProcessCDR(1,14978120,1,1,2) [2025-04-24 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978120', 'tblTempUsageDetail_20' ) start [2025-04-24 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978120', 'tblTempUsageDetail_20' ) end [2025-04-24 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:36:21] Production.INFO: ==14376== Releasing lock... [2025-04-24 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:36:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:37:05 [end_date_ymd] => 2025-04-24 07:37:05 [RateCDR] => 1 ) [2025-04-24 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:37:05' and `end` < '2025-04-24 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:37:17] Production.INFO: count ==178 [2025-04-24 07:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:37:05 - End Time 2025-04-24 07:37:05 [2025-04-24 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978125', 'tblTempUsageDetail_20' ) start [2025-04-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978125', 'tblTempUsageDetail_20' ) end [2025-04-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978125', 'tblTempVendorCDR_20' ) start [2025-04-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978125', 'tblTempVendorCDR_20' ) end [2025-04-24 07:37:17] Production.INFO: ProcessCDR(1,14978125,1,1,2) [2025-04-24 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978125', 'tblTempUsageDetail_20' ) start [2025-04-24 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978125', 'tblTempUsageDetail_20' ) end [2025-04-24 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:37:22] Production.INFO: ==14446== Releasing lock... [2025-04-24 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:38:05 [end_date_ymd] => 2025-04-24 07:38:05 [RateCDR] => 1 ) [2025-04-24 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:38:05' and `end` < '2025-04-24 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:38:18] Production.INFO: count ==178 [2025-04-24 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:38:05 - End Time 2025-04-24 07:38:05 [2025-04-24 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978130', 'tblTempUsageDetail_20' ) start [2025-04-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978130', 'tblTempUsageDetail_20' ) end [2025-04-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978130', 'tblTempVendorCDR_20' ) start [2025-04-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978130', 'tblTempVendorCDR_20' ) end [2025-04-24 07:38:18] Production.INFO: ProcessCDR(1,14978130,1,1,2) [2025-04-24 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978130', 'tblTempUsageDetail_20' ) start [2025-04-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978130', 'tblTempUsageDetail_20' ) end [2025-04-24 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:38:21] Production.INFO: ==14517== Releasing lock... [2025-04-24 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:39:05 [end_date_ymd] => 2025-04-24 07:39:05 [RateCDR] => 1 ) [2025-04-24 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:39:05' and `end` < '2025-04-24 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:39:17] Production.INFO: count ==178 [2025-04-24 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:39:05 - End Time 2025-04-24 07:39:05 [2025-04-24 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978135', 'tblTempUsageDetail_20' ) start [2025-04-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978135', 'tblTempUsageDetail_20' ) end [2025-04-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978135', 'tblTempVendorCDR_20' ) start [2025-04-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978135', 'tblTempVendorCDR_20' ) end [2025-04-24 07:39:18] Production.INFO: ProcessCDR(1,14978135,1,1,2) [2025-04-24 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978135', 'tblTempUsageDetail_20' ) start [2025-04-24 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978135', 'tblTempUsageDetail_20' ) end [2025-04-24 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:39:21] Production.INFO: ==14589== Releasing lock... [2025-04-24 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:40:06 [end_date_ymd] => 2025-04-24 07:40:06 [RateCDR] => 1 ) [2025-04-24 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:40:06' and `end` < '2025-04-24 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:40:19] Production.INFO: count ==179 [2025-04-24 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:40:06 - End Time 2025-04-24 07:40:06 [2025-04-24 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978140', 'tblTempUsageDetail_20' ) start [2025-04-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978140', 'tblTempUsageDetail_20' ) end [2025-04-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978140', 'tblTempVendorCDR_20' ) start [2025-04-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978140', 'tblTempVendorCDR_20' ) end [2025-04-24 07:40:19] Production.INFO: ProcessCDR(1,14978140,1,1,2) [2025-04-24 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978140', 'tblTempUsageDetail_20' ) start [2025-04-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978140', 'tblTempUsageDetail_20' ) end [2025-04-24 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:40:22] Production.INFO: ==14662== Releasing lock... [2025-04-24 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:40:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:41:05 [end_date_ymd] => 2025-04-24 07:41:05 [RateCDR] => 1 ) [2025-04-24 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:41:05' and `end` < '2025-04-24 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:41:18] Production.INFO: count ==179 [2025-04-24 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:41:05 - End Time 2025-04-24 07:41:05 [2025-04-24 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978146', 'tblTempUsageDetail_20' ) start [2025-04-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978146', 'tblTempUsageDetail_20' ) end [2025-04-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978146', 'tblTempVendorCDR_20' ) start [2025-04-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978146', 'tblTempVendorCDR_20' ) end [2025-04-24 07:41:18] Production.INFO: ProcessCDR(1,14978146,1,1,2) [2025-04-24 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978146', 'tblTempUsageDetail_20' ) start [2025-04-24 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978146', 'tblTempUsageDetail_20' ) end [2025-04-24 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:41:21] Production.INFO: ==14737== Releasing lock... [2025-04-24 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:41:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:42:05 [end_date_ymd] => 2025-04-24 07:42:05 [RateCDR] => 1 ) [2025-04-24 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:42:05' and `end` < '2025-04-24 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:42:18] Production.INFO: count ==183 [2025-04-24 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:42:05 - End Time 2025-04-24 07:42:05 [2025-04-24 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978151', 'tblTempUsageDetail_20' ) start [2025-04-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978151', 'tblTempUsageDetail_20' ) end [2025-04-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978151', 'tblTempVendorCDR_20' ) start [2025-04-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978151', 'tblTempVendorCDR_20' ) end [2025-04-24 07:42:18] Production.INFO: ProcessCDR(1,14978151,1,1,2) [2025-04-24 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978151', 'tblTempUsageDetail_20' ) start [2025-04-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978151', 'tblTempUsageDetail_20' ) end [2025-04-24 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:42:21] Production.INFO: ==14809== Releasing lock... [2025-04-24 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:43:05 [end_date_ymd] => 2025-04-24 07:43:05 [RateCDR] => 1 ) [2025-04-24 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:43:05' and `end` < '2025-04-24 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:43:17] Production.INFO: count ==183 [2025-04-24 07:43:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:43:05 - End Time 2025-04-24 07:43:05 [2025-04-24 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978156', 'tblTempUsageDetail_20' ) start [2025-04-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978156', 'tblTempUsageDetail_20' ) end [2025-04-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978156', 'tblTempVendorCDR_20' ) start [2025-04-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978156', 'tblTempVendorCDR_20' ) end [2025-04-24 07:43:17] Production.INFO: ProcessCDR(1,14978156,1,1,2) [2025-04-24 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978156', 'tblTempUsageDetail_20' ) start [2025-04-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978156', 'tblTempUsageDetail_20' ) end [2025-04-24 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:43:21] Production.INFO: ==14919== Releasing lock... [2025-04-24 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:44:05 [end_date_ymd] => 2025-04-24 07:44:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 04:44:05' and `end` < '2025-04-24 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-04-24 07:44:17] Production.INFO: count ==183 [2025-04-24 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:44:05 - End Time 2025-04-24 07:44:05 [2025-04-24 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978161', 'tblTempUsageDetail_20' ) start [2025-04-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978161', 'tblTempUsageDetail_20' ) end [2025-04-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978161', 'tblTempVendorCDR_20' ) start [2025-04-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978161', 'tblTempVendorCDR_20' ) end [2025-04-24 07:44:17] Production.INFO: ProcessCDR(1,14978161,1,1,2) [2025-04-24 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978161', 'tblTempUsageDetail_20' ) start [2025-04-24 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978161', 'tblTempUsageDetail_20' ) end [2025-04-24 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:44:21] Production.INFO: ==14988== Releasing lock... [2025-04-24 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:45:05 [end_date_ymd] => 2025-04-24 07:45:05 [RateCDR] => 1 ) [2025-04-24 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:45:05' and `end` < '2025-04-24 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:45:18] Production.INFO: count ==183 [2025-04-24 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:45:05 - End Time 2025-04-24 07:45:05 [2025-04-24 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978166', 'tblTempUsageDetail_20' ) start [2025-04-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978166', 'tblTempUsageDetail_20' ) end [2025-04-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978166', 'tblTempVendorCDR_20' ) start [2025-04-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978166', 'tblTempVendorCDR_20' ) end [2025-04-24 07:45:18] Production.INFO: ProcessCDR(1,14978166,1,1,2) [2025-04-24 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978166', 'tblTempUsageDetail_20' ) start [2025-04-24 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978166', 'tblTempUsageDetail_20' ) end [2025-04-24 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:45:21] Production.INFO: ==15060== Releasing lock... [2025-04-24 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:46:05 [end_date_ymd] => 2025-04-24 07:46:05 [RateCDR] => 1 ) [2025-04-24 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:46:05' and `end` < '2025-04-24 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:46:18] Production.INFO: count ==184 [2025-04-24 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:46:05 - End Time 2025-04-24 07:46:05 [2025-04-24 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978171', 'tblTempUsageDetail_20' ) start [2025-04-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978171', 'tblTempUsageDetail_20' ) end [2025-04-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978171', 'tblTempVendorCDR_20' ) start [2025-04-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978171', 'tblTempVendorCDR_20' ) end [2025-04-24 07:46:18] Production.INFO: ProcessCDR(1,14978171,1,1,2) [2025-04-24 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978171', 'tblTempUsageDetail_20' ) start [2025-04-24 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978171', 'tblTempUsageDetail_20' ) end [2025-04-24 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:46:21] Production.INFO: ==15129== Releasing lock... [2025-04-24 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:46:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:47:06 [end_date_ymd] => 2025-04-24 07:47:06 [RateCDR] => 1 ) [2025-04-24 07:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:47:06' and `end` < '2025-04-24 07:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:47:19] Production.INFO: count ==184 [2025-04-24 07:47:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:47:06 - End Time 2025-04-24 07:47:06 [2025-04-24 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978176', 'tblTempUsageDetail_20' ) start [2025-04-24 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978176', 'tblTempUsageDetail_20' ) end [2025-04-24 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978176', 'tblTempVendorCDR_20' ) start [2025-04-24 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978176', 'tblTempVendorCDR_20' ) end [2025-04-24 07:47:19] Production.INFO: ProcessCDR(1,14978176,1,1,2) [2025-04-24 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978176', 'tblTempUsageDetail_20' ) start [2025-04-24 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978176', 'tblTempUsageDetail_20' ) end [2025-04-24 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:47:22] Production.INFO: ==15203== Releasing lock... [2025-04-24 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:47:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:48:05 [end_date_ymd] => 2025-04-24 07:48:05 [RateCDR] => 1 ) [2025-04-24 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:48:05' and `end` < '2025-04-24 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:48:17] Production.INFO: count ==185 [2025-04-24 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:48:05 - End Time 2025-04-24 07:48:05 [2025-04-24 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978179', 'tblTempUsageDetail_20' ) start [2025-04-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978179', 'tblTempUsageDetail_20' ) end [2025-04-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978179', 'tblTempVendorCDR_20' ) start [2025-04-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978179', 'tblTempVendorCDR_20' ) end [2025-04-24 07:48:17] Production.INFO: ProcessCDR(1,14978179,1,1,2) [2025-04-24 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978179', 'tblTempUsageDetail_20' ) start [2025-04-24 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978179', 'tblTempUsageDetail_20' ) end [2025-04-24 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:48:20] Production.INFO: ==15274== Releasing lock... [2025-04-24 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:48:20] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:49:06 [end_date_ymd] => 2025-04-24 07:49:06 [RateCDR] => 1 ) [2025-04-24 07:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:49:06' and `end` < '2025-04-24 07:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:49:18] Production.INFO: count ==185 [2025-04-24 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:49:06 - End Time 2025-04-24 07:49:06 [2025-04-24 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978186', 'tblTempUsageDetail_20' ) start [2025-04-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978186', 'tblTempUsageDetail_20' ) end [2025-04-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978186', 'tblTempVendorCDR_20' ) start [2025-04-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978186', 'tblTempVendorCDR_20' ) end [2025-04-24 07:49:18] Production.INFO: ProcessCDR(1,14978186,1,1,2) [2025-04-24 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978186', 'tblTempUsageDetail_20' ) start [2025-04-24 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978186', 'tblTempUsageDetail_20' ) end [2025-04-24 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:49:23] Production.INFO: ==15349== Releasing lock... [2025-04-24 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:49:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:50:06 [end_date_ymd] => 2025-04-24 07:50:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 04:50:06' and `end` < '2025-04-24 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-04-24 07:50:18] Production.INFO: count ==194 [2025-04-24 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 04:50:06 - End Time 2025-04-24 07:50:06 [2025-04-24 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978192', 'tblTempUsageDetail_20' ) start [2025-04-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978192', 'tblTempUsageDetail_20' ) end [2025-04-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978192', 'tblTempVendorCDR_20' ) start [2025-04-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978192', 'tblTempVendorCDR_20' ) end [2025-04-24 07:50:19] Production.INFO: ProcessCDR(1,14978192,1,1,2) [2025-04-24 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978192', 'tblTempUsageDetail_20' ) start [2025-04-24 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978192', 'tblTempUsageDetail_20' ) end [2025-04-24 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:50:22] Production.INFO: ==15424== Releasing lock... [2025-04-24 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:50:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:51:05 [end_date_ymd] => 2025-04-24 07:51:05 [RateCDR] => 1 ) [2025-04-24 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:51:05' and `end` < '2025-04-24 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:51:18] Production.INFO: count ==213 [2025-04-24 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:51:05 - End Time 2025-04-24 07:51:05 [2025-04-24 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978197', 'tblTempUsageDetail_20' ) start [2025-04-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978197', 'tblTempUsageDetail_20' ) end [2025-04-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978197', 'tblTempVendorCDR_20' ) start [2025-04-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978197', 'tblTempVendorCDR_20' ) end [2025-04-24 07:51:18] Production.INFO: ProcessCDR(1,14978197,1,1,2) [2025-04-24 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978197', 'tblTempUsageDetail_20' ) start [2025-04-24 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978197', 'tblTempUsageDetail_20' ) end [2025-04-24 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:51:22] Production.INFO: ==15497== Releasing lock... [2025-04-24 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:52:05 [end_date_ymd] => 2025-04-24 07:52:05 [RateCDR] => 1 ) [2025-04-24 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:52:05' and `end` < '2025-04-24 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:52:17] Production.INFO: count ==213 [2025-04-24 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:52:05 - End Time 2025-04-24 07:52:05 [2025-04-24 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978202', 'tblTempUsageDetail_20' ) start [2025-04-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978202', 'tblTempUsageDetail_20' ) end [2025-04-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978202', 'tblTempVendorCDR_20' ) start [2025-04-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978202', 'tblTempVendorCDR_20' ) end [2025-04-24 07:52:18] Production.INFO: ProcessCDR(1,14978202,1,1,2) [2025-04-24 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978202', 'tblTempUsageDetail_20' ) start [2025-04-24 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978202', 'tblTempUsageDetail_20' ) end [2025-04-24 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:52:21] Production.INFO: ==15569== Releasing lock... [2025-04-24 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:53:05 [end_date_ymd] => 2025-04-24 07:53:05 [RateCDR] => 1 ) [2025-04-24 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:53:05' and `end` < '2025-04-24 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:53:18] Production.INFO: count ==213 [2025-04-24 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:53:05 - End Time 2025-04-24 07:53:05 [2025-04-24 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978207', 'tblTempUsageDetail_20' ) start [2025-04-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978207', 'tblTempUsageDetail_20' ) end [2025-04-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978207', 'tblTempVendorCDR_20' ) start [2025-04-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978207', 'tblTempVendorCDR_20' ) end [2025-04-24 07:53:18] Production.INFO: ProcessCDR(1,14978207,1,1,2) [2025-04-24 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978207', 'tblTempUsageDetail_20' ) start [2025-04-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978207', 'tblTempUsageDetail_20' ) end [2025-04-24 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:53:21] Production.INFO: ==15639== Releasing lock... [2025-04-24 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-24 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:54:05 [end_date_ymd] => 2025-04-24 07:54:05 [RateCDR] => 1 ) [2025-04-24 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:54:05' and `end` < '2025-04-24 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:54:18] Production.INFO: count ==214 [2025-04-24 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:54:05 - End Time 2025-04-24 07:54:05 [2025-04-24 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978212', 'tblTempUsageDetail_20' ) start [2025-04-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978212', 'tblTempUsageDetail_20' ) end [2025-04-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978212', 'tblTempVendorCDR_20' ) start [2025-04-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978212', 'tblTempVendorCDR_20' ) end [2025-04-24 07:54:18] Production.INFO: ProcessCDR(1,14978212,1,1,2) [2025-04-24 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978212', 'tblTempUsageDetail_20' ) start [2025-04-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978212', 'tblTempUsageDetail_20' ) end [2025-04-24 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:54:22] Production.INFO: ==15710== Releasing lock... [2025-04-24 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:54:22] Production.INFO: 30 MB #Memory Used# [2025-04-24 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:55:05 [end_date_ymd] => 2025-04-24 07:55:05 [RateCDR] => 1 ) [2025-04-24 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:55:05' and `end` < '2025-04-24 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:55:18] Production.INFO: count ==221 [2025-04-24 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:55:05 - End Time 2025-04-24 07:55:05 [2025-04-24 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978217', 'tblTempUsageDetail_20' ) start [2025-04-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978217', 'tblTempUsageDetail_20' ) end [2025-04-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978217', 'tblTempVendorCDR_20' ) start [2025-04-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978217', 'tblTempVendorCDR_20' ) end [2025-04-24 07:55:18] Production.INFO: ProcessCDR(1,14978217,1,1,2) [2025-04-24 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978217', 'tblTempUsageDetail_20' ) start [2025-04-24 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978217', 'tblTempUsageDetail_20' ) end [2025-04-24 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:55:23] Production.INFO: ==15783== Releasing lock... [2025-04-24 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:55:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:56:06 [end_date_ymd] => 2025-04-24 07:56:06 [RateCDR] => 1 ) [2025-04-24 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:56:06' and `end` < '2025-04-24 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:56:18] Production.INFO: count ==222 [2025-04-24 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:56:06 - End Time 2025-04-24 07:56:06 [2025-04-24 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978222', 'tblTempUsageDetail_20' ) start [2025-04-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978222', 'tblTempUsageDetail_20' ) end [2025-04-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978222', 'tblTempVendorCDR_20' ) start [2025-04-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978222', 'tblTempVendorCDR_20' ) end [2025-04-24 07:56:18] Production.INFO: ProcessCDR(1,14978222,1,1,2) [2025-04-24 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978222', 'tblTempUsageDetail_20' ) start [2025-04-24 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978222', 'tblTempUsageDetail_20' ) end [2025-04-24 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:56:23] Production.INFO: ==15859== Releasing lock... [2025-04-24 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:57:05 [end_date_ymd] => 2025-04-24 07:57:05 [RateCDR] => 1 ) [2025-04-24 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:57:05' and `end` < '2025-04-24 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:57:18] Production.INFO: count ==222 [2025-04-24 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:57:05 - End Time 2025-04-24 07:57:05 [2025-04-24 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978227', 'tblTempUsageDetail_20' ) start [2025-04-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978227', 'tblTempUsageDetail_20' ) end [2025-04-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978227', 'tblTempVendorCDR_20' ) start [2025-04-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978227', 'tblTempVendorCDR_20' ) end [2025-04-24 07:57:18] Production.INFO: ProcessCDR(1,14978227,1,1,2) [2025-04-24 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978227', 'tblTempUsageDetail_20' ) start [2025-04-24 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978227', 'tblTempUsageDetail_20' ) end [2025-04-24 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:57:21] Production.INFO: ==15934== Releasing lock... [2025-04-24 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:58:05 [end_date_ymd] => 2025-04-24 07:58:05 [RateCDR] => 1 ) [2025-04-24 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:58:05' and `end` < '2025-04-24 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:58:18] Production.INFO: count ==223 [2025-04-24 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 04:58:05 - End Time 2025-04-24 07:58:05 [2025-04-24 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978232', 'tblTempUsageDetail_20' ) start [2025-04-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978232', 'tblTempUsageDetail_20' ) end [2025-04-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978232', 'tblTempVendorCDR_20' ) start [2025-04-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978232', 'tblTempVendorCDR_20' ) end [2025-04-24 07:58:18] Production.INFO: ProcessCDR(1,14978232,1,1,2) [2025-04-24 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978232', 'tblTempUsageDetail_20' ) start [2025-04-24 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978232', 'tblTempUsageDetail_20' ) end [2025-04-24 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:58:23] Production.INFO: ==16047== Releasing lock... [2025-04-24 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:58:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 04:59:05 [end_date_ymd] => 2025-04-24 07:59:05 [RateCDR] => 1 ) [2025-04-24 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 04:59:05' and `end` < '2025-04-24 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 07:59:17] Production.INFO: count ==223 [2025-04-24 07:59:17] Production.ERROR: pbx CDR StartTime 2025-04-24 04:59:05 - End Time 2025-04-24 07:59:05 [2025-04-24 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978237', 'tblTempUsageDetail_20' ) start [2025-04-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978237', 'tblTempUsageDetail_20' ) end [2025-04-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978237', 'tblTempVendorCDR_20' ) start [2025-04-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978237', 'tblTempVendorCDR_20' ) end [2025-04-24 07:59:17] Production.INFO: ProcessCDR(1,14978237,1,1,2) [2025-04-24 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978237', 'tblTempUsageDetail_20' ) start [2025-04-24 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978237', 'tblTempUsageDetail_20' ) end [2025-04-24 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 07:59:20] Production.INFO: ==16117== Releasing lock... [2025-04-24 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 07:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:00:06 [end_date_ymd] => 2025-04-24 08:00:06 [RateCDR] => 1 ) [2025-04-24 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:00:06' and `end` < '2025-04-24 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:00:19] Production.INFO: count ==225 [2025-04-24 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:00:06 - End Time 2025-04-24 08:00:06 [2025-04-24 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978243', 'tblTempUsageDetail_20' ) start [2025-04-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978243', 'tblTempUsageDetail_20' ) end [2025-04-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978243', 'tblTempVendorCDR_20' ) start [2025-04-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978243', 'tblTempVendorCDR_20' ) end [2025-04-24 08:00:19] Production.INFO: ProcessCDR(1,14978243,1,1,2) [2025-04-24 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978243', 'tblTempUsageDetail_20' ) start [2025-04-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978243', 'tblTempUsageDetail_20' ) end [2025-04-24 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:00:22] Production.INFO: ==16190== Releasing lock... [2025-04-24 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:01:05 [end_date_ymd] => 2025-04-24 08:01:05 [RateCDR] => 1 ) [2025-04-24 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:01:05' and `end` < '2025-04-24 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:01:18] Production.INFO: count ==233 [2025-04-24 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:01:05 - End Time 2025-04-24 08:01:05 [2025-04-24 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978248', 'tblTempUsageDetail_20' ) start [2025-04-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978248', 'tblTempUsageDetail_20' ) end [2025-04-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978248', 'tblTempVendorCDR_20' ) start [2025-04-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978248', 'tblTempVendorCDR_20' ) end [2025-04-24 08:01:18] Production.INFO: ProcessCDR(1,14978248,1,1,2) [2025-04-24 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978248', 'tblTempUsageDetail_20' ) start [2025-04-24 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978248', 'tblTempUsageDetail_20' ) end [2025-04-24 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:01:23] Production.INFO: ==16278== Releasing lock... [2025-04-24 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:01:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:02:06 [end_date_ymd] => 2025-04-24 08:02:06 [RateCDR] => 1 ) [2025-04-24 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:02:06' and `end` < '2025-04-24 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:02:18] Production.INFO: count ==233 [2025-04-24 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:02:06 - End Time 2025-04-24 08:02:06 [2025-04-24 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978253', 'tblTempUsageDetail_20' ) start [2025-04-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978253', 'tblTempUsageDetail_20' ) end [2025-04-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978253', 'tblTempVendorCDR_20' ) start [2025-04-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978253', 'tblTempVendorCDR_20' ) end [2025-04-24 08:02:18] Production.INFO: ProcessCDR(1,14978253,1,1,2) [2025-04-24 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978253', 'tblTempUsageDetail_20' ) start [2025-04-24 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978253', 'tblTempUsageDetail_20' ) end [2025-04-24 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:02:22] Production.INFO: ==16354== Releasing lock... [2025-04-24 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:03:05 [end_date_ymd] => 2025-04-24 08:03:05 [RateCDR] => 1 ) [2025-04-24 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:03:05' and `end` < '2025-04-24 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:03:18] Production.INFO: count ==238 [2025-04-24 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:03:05 - End Time 2025-04-24 08:03:05 [2025-04-24 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978258', 'tblTempUsageDetail_20' ) start [2025-04-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978258', 'tblTempUsageDetail_20' ) end [2025-04-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978258', 'tblTempVendorCDR_20' ) start [2025-04-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978258', 'tblTempVendorCDR_20' ) end [2025-04-24 08:03:18] Production.INFO: ProcessCDR(1,14978258,1,1,2) [2025-04-24 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978258', 'tblTempUsageDetail_20' ) start [2025-04-24 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978258', 'tblTempUsageDetail_20' ) end [2025-04-24 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:03:23] Production.INFO: ==16430== Releasing lock... [2025-04-24 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:03:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:04:05 [end_date_ymd] => 2025-04-24 08:04:05 [RateCDR] => 1 ) [2025-04-24 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:04:05' and `end` < '2025-04-24 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:04:18] Production.INFO: count ==244 [2025-04-24 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:04:05 - End Time 2025-04-24 08:04:05 [2025-04-24 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978263', 'tblTempUsageDetail_20' ) start [2025-04-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978263', 'tblTempUsageDetail_20' ) end [2025-04-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978263', 'tblTempVendorCDR_20' ) start [2025-04-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978263', 'tblTempVendorCDR_20' ) end [2025-04-24 08:04:18] Production.INFO: ProcessCDR(1,14978263,1,1,2) [2025-04-24 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978263', 'tblTempUsageDetail_20' ) start [2025-04-24 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978263', 'tblTempUsageDetail_20' ) end [2025-04-24 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:04:23] Production.INFO: ==16504== Releasing lock... [2025-04-24 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:05:05 [end_date_ymd] => 2025-04-24 08:05:05 [RateCDR] => 1 ) [2025-04-24 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:05:05' and `end` < '2025-04-24 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:05:18] Production.INFO: count ==248 [2025-04-24 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:05:05 - End Time 2025-04-24 08:05:05 [2025-04-24 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978268', 'tblTempUsageDetail_20' ) start [2025-04-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978268', 'tblTempUsageDetail_20' ) end [2025-04-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978268', 'tblTempVendorCDR_20' ) start [2025-04-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978268', 'tblTempVendorCDR_20' ) end [2025-04-24 08:05:18] Production.INFO: ProcessCDR(1,14978268,1,1,2) [2025-04-24 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978268', 'tblTempUsageDetail_20' ) start [2025-04-24 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978268', 'tblTempUsageDetail_20' ) end [2025-04-24 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:05:23] Production.INFO: ==16578== Releasing lock... [2025-04-24 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:06:05 [end_date_ymd] => 2025-04-24 08:06:05 [RateCDR] => 1 ) [2025-04-24 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:06:05' and `end` < '2025-04-24 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:06:18] Production.INFO: count ==250 [2025-04-24 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:06:05 - End Time 2025-04-24 08:06:05 [2025-04-24 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978273', 'tblTempUsageDetail_20' ) start [2025-04-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978273', 'tblTempUsageDetail_20' ) end [2025-04-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978273', 'tblTempVendorCDR_20' ) start [2025-04-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978273', 'tblTempVendorCDR_20' ) end [2025-04-24 08:06:18] Production.INFO: ProcessCDR(1,14978273,1,1,2) [2025-04-24 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978273', 'tblTempUsageDetail_20' ) start [2025-04-24 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978273', 'tblTempUsageDetail_20' ) end [2025-04-24 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:06:23] Production.INFO: ==16650== Releasing lock... [2025-04-24 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:06:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:07:06 [end_date_ymd] => 2025-04-24 08:07:06 [RateCDR] => 1 ) [2025-04-24 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:07:06' and `end` < '2025-04-24 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:07:18] Production.INFO: count ==253 [2025-04-24 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:07:06 - End Time 2025-04-24 08:07:06 [2025-04-24 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978278', 'tblTempUsageDetail_20' ) start [2025-04-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978278', 'tblTempUsageDetail_20' ) end [2025-04-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978278', 'tblTempVendorCDR_20' ) start [2025-04-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978278', 'tblTempVendorCDR_20' ) end [2025-04-24 08:07:18] Production.INFO: ProcessCDR(1,14978278,1,1,2) [2025-04-24 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978278', 'tblTempUsageDetail_20' ) start [2025-04-24 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978278', 'tblTempUsageDetail_20' ) end [2025-04-24 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:07:23] Production.INFO: ==16719== Releasing lock... [2025-04-24 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:07:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:08:05 [end_date_ymd] => 2025-04-24 08:08:05 [RateCDR] => 1 ) [2025-04-24 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:08:05' and `end` < '2025-04-24 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:08:18] Production.INFO: count ==282 [2025-04-24 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:08:05 - End Time 2025-04-24 08:08:05 [2025-04-24 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978283', 'tblTempUsageDetail_20' ) start [2025-04-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978283', 'tblTempUsageDetail_20' ) end [2025-04-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978283', 'tblTempVendorCDR_20' ) start [2025-04-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978283', 'tblTempVendorCDR_20' ) end [2025-04-24 08:08:18] Production.INFO: ProcessCDR(1,14978283,1,1,2) [2025-04-24 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978283', 'tblTempUsageDetail_20' ) start [2025-04-24 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978283', 'tblTempUsageDetail_20' ) end [2025-04-24 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:08:22] Production.INFO: ==16792== Releasing lock... [2025-04-24 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-24 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:09:05 [end_date_ymd] => 2025-04-24 08:09:05 [RateCDR] => 1 ) [2025-04-24 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:09:05' and `end` < '2025-04-24 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:09:18] Production.INFO: count ==283 [2025-04-24 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:09:05 - End Time 2025-04-24 08:09:05 [2025-04-24 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978288', 'tblTempUsageDetail_20' ) start [2025-04-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978288', 'tblTempUsageDetail_20' ) end [2025-04-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978288', 'tblTempVendorCDR_20' ) start [2025-04-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978288', 'tblTempVendorCDR_20' ) end [2025-04-24 08:09:18] Production.INFO: ProcessCDR(1,14978288,1,1,2) [2025-04-24 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978288', 'tblTempUsageDetail_20' ) start [2025-04-24 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978288', 'tblTempUsageDetail_20' ) end [2025-04-24 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:09:21] Production.INFO: ==16864== Releasing lock... [2025-04-24 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:09:21] Production.INFO: 30 MB #Memory Used# [2025-04-24 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:10:05 [end_date_ymd] => 2025-04-24 08:10:05 [RateCDR] => 1 ) [2025-04-24 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:10:05' and `end` < '2025-04-24 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:10:18] Production.INFO: count ==291 [2025-04-24 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:10:05 - End Time 2025-04-24 08:10:05 [2025-04-24 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978294', 'tblTempUsageDetail_20' ) start [2025-04-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978294', 'tblTempUsageDetail_20' ) end [2025-04-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978294', 'tblTempVendorCDR_20' ) start [2025-04-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978294', 'tblTempVendorCDR_20' ) end [2025-04-24 08:10:18] Production.INFO: ProcessCDR(1,14978294,1,1,2) [2025-04-24 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978294', 'tblTempUsageDetail_20' ) start [2025-04-24 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978294', 'tblTempUsageDetail_20' ) end [2025-04-24 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:10:21] Production.INFO: ==16939== Releasing lock... [2025-04-24 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:11:05 [end_date_ymd] => 2025-04-24 08:11:05 [RateCDR] => 1 ) [2025-04-24 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:11:05' and `end` < '2025-04-24 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:11:18] Production.INFO: count ==312 [2025-04-24 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:11:05 - End Time 2025-04-24 08:11:05 [2025-04-24 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978299', 'tblTempUsageDetail_20' ) start [2025-04-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978299', 'tblTempUsageDetail_20' ) end [2025-04-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978299', 'tblTempVendorCDR_20' ) start [2025-04-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978299', 'tblTempVendorCDR_20' ) end [2025-04-24 08:11:18] Production.INFO: ProcessCDR(1,14978299,1,1,2) [2025-04-24 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978299', 'tblTempUsageDetail_20' ) start [2025-04-24 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978299', 'tblTempUsageDetail_20' ) end [2025-04-24 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:11:23] Production.INFO: ==17013== Releasing lock... [2025-04-24 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:11:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:12:05 [end_date_ymd] => 2025-04-24 08:12:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 05:12:05' and `end` < '2025-04-24 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-04-24 08:12:18] Production.INFO: count ==312 [2025-04-24 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:12:05 - End Time 2025-04-24 08:12:05 [2025-04-24 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978304', 'tblTempUsageDetail_20' ) start [2025-04-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978304', 'tblTempUsageDetail_20' ) end [2025-04-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978304', 'tblTempVendorCDR_20' ) start [2025-04-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978304', 'tblTempVendorCDR_20' ) end [2025-04-24 08:12:18] Production.INFO: ProcessCDR(1,14978304,1,1,2) [2025-04-24 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978304', 'tblTempUsageDetail_20' ) start [2025-04-24 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978304', 'tblTempUsageDetail_20' ) end [2025-04-24 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:12:21] Production.INFO: ==17086== Releasing lock... [2025-04-24 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:13:06 [end_date_ymd] => 2025-04-24 08:13:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 05:13:06' and `end` < '2025-04-24 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-04-24 08:13:18] Production.INFO: count ==314 [2025-04-24 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:13:06 - End Time 2025-04-24 08:13:06 [2025-04-24 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978309', 'tblTempUsageDetail_20' ) start [2025-04-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978309', 'tblTempUsageDetail_20' ) end [2025-04-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978309', 'tblTempVendorCDR_20' ) start [2025-04-24 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978309', 'tblTempVendorCDR_20' ) end [2025-04-24 08:13:19] Production.INFO: ProcessCDR(1,14978309,1,1,2) [2025-04-24 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978309', 'tblTempUsageDetail_20' ) start [2025-04-24 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978309', 'tblTempUsageDetail_20' ) end [2025-04-24 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:13:22] Production.INFO: ==17156== Releasing lock... [2025-04-24 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:14:05 [end_date_ymd] => 2025-04-24 08:14:05 [RateCDR] => 1 ) [2025-04-24 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:14:05' and `end` < '2025-04-24 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:14:17] Production.INFO: count ==315 [2025-04-24 08:14:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:14:05 - End Time 2025-04-24 08:14:05 [2025-04-24 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978314', 'tblTempUsageDetail_20' ) start [2025-04-24 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978314', 'tblTempUsageDetail_20' ) end [2025-04-24 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978314', 'tblTempVendorCDR_20' ) start [2025-04-24 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978314', 'tblTempVendorCDR_20' ) end [2025-04-24 08:14:17] Production.INFO: ProcessCDR(1,14978314,1,1,2) [2025-04-24 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978314', 'tblTempUsageDetail_20' ) start [2025-04-24 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978314', 'tblTempUsageDetail_20' ) end [2025-04-24 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:14:21] Production.INFO: ==17265== Releasing lock... [2025-04-24 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-24 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:15:05 [end_date_ymd] => 2025-04-24 08:15:05 [RateCDR] => 1 ) [2025-04-24 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:15:05' and `end` < '2025-04-24 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:15:17] Production.INFO: count ==320 [2025-04-24 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:15:05 - End Time 2025-04-24 08:15:05 [2025-04-24 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978319', 'tblTempUsageDetail_20' ) start [2025-04-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978319', 'tblTempUsageDetail_20' ) end [2025-04-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978319', 'tblTempVendorCDR_20' ) start [2025-04-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978319', 'tblTempVendorCDR_20' ) end [2025-04-24 08:15:18] Production.INFO: ProcessCDR(1,14978319,1,1,2) [2025-04-24 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978319', 'tblTempUsageDetail_20' ) start [2025-04-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978319', 'tblTempUsageDetail_20' ) end [2025-04-24 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:15:22] Production.INFO: ==17337== Releasing lock... [2025-04-24 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:16:04 [end_date_ymd] => 2025-04-24 08:16:04 [RateCDR] => 1 ) [2025-04-24 08: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-04-24 05:16:04' and `end` < '2025-04-24 08: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-04-24 08:16:17] Production.INFO: count ==332 [2025-04-24 08:16:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:16:04 - End Time 2025-04-24 08:16:04 [2025-04-24 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978324', 'tblTempUsageDetail_20' ) start [2025-04-24 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978324', 'tblTempUsageDetail_20' ) end [2025-04-24 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978324', 'tblTempVendorCDR_20' ) start [2025-04-24 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978324', 'tblTempVendorCDR_20' ) end [2025-04-24 08:16:17] Production.INFO: ProcessCDR(1,14978324,1,1,2) [2025-04-24 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978324', 'tblTempUsageDetail_20' ) start [2025-04-24 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978324', 'tblTempUsageDetail_20' ) end [2025-04-24 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:16:23] Production.INFO: ==17419== Releasing lock... [2025-04-24 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:16:23] Production.INFO: 31 MB #Memory Used# [2025-04-24 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:17:05 [end_date_ymd] => 2025-04-24 08:17:05 [RateCDR] => 1 ) [2025-04-24 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:17:05' and `end` < '2025-04-24 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:17:17] Production.INFO: count ==337 [2025-04-24 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:17:05 - End Time 2025-04-24 08:17:05 [2025-04-24 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978329', 'tblTempUsageDetail_20' ) start [2025-04-24 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978329', 'tblTempUsageDetail_20' ) end [2025-04-24 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978329', 'tblTempVendorCDR_20' ) start [2025-04-24 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978329', 'tblTempVendorCDR_20' ) end [2025-04-24 08:17:18] Production.INFO: ProcessCDR(1,14978329,1,1,2) [2025-04-24 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978329', 'tblTempUsageDetail_20' ) start [2025-04-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978329', 'tblTempUsageDetail_20' ) end [2025-04-24 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:17:23] Production.INFO: ==17500== Releasing lock... [2025-04-24 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:17:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:18:06 [end_date_ymd] => 2025-04-24 08:18:06 [RateCDR] => 1 ) [2025-04-24 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:18:06' and `end` < '2025-04-24 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:18:19] Production.INFO: count ==342 [2025-04-24 08:18:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:18:06 - End Time 2025-04-24 08:18:06 [2025-04-24 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978334', 'tblTempUsageDetail_20' ) start [2025-04-24 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978334', 'tblTempUsageDetail_20' ) end [2025-04-24 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978334', 'tblTempVendorCDR_20' ) start [2025-04-24 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978334', 'tblTempVendorCDR_20' ) end [2025-04-24 08:18:19] Production.INFO: ProcessCDR(1,14978334,1,1,2) [2025-04-24 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978334', 'tblTempUsageDetail_20' ) start [2025-04-24 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978334', 'tblTempUsageDetail_20' ) end [2025-04-24 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:18:22] Production.INFO: ==17576== Releasing lock... [2025-04-24 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:19:04 [end_date_ymd] => 2025-04-24 08:19:04 [RateCDR] => 1 ) [2025-04-24 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:19:04' and `end` < '2025-04-24 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:19:17] Production.INFO: count ==345 [2025-04-24 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:19:04 - End Time 2025-04-24 08:19:04 [2025-04-24 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978339', 'tblTempUsageDetail_20' ) start [2025-04-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978339', 'tblTempUsageDetail_20' ) end [2025-04-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978339', 'tblTempVendorCDR_20' ) start [2025-04-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978339', 'tblTempVendorCDR_20' ) end [2025-04-24 08:19:17] Production.INFO: ProcessCDR(1,14978339,1,1,2) [2025-04-24 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978339', 'tblTempUsageDetail_20' ) start [2025-04-24 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978339', 'tblTempUsageDetail_20' ) end [2025-04-24 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:19:21] Production.INFO: ==17647== Releasing lock... [2025-04-24 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-24 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:20:06 [end_date_ymd] => 2025-04-24 08:20:06 [RateCDR] => 1 ) [2025-04-24 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:20:06' and `end` < '2025-04-24 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:20:19] Production.INFO: count ==353 [2025-04-24 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:20:06 - End Time 2025-04-24 08:20:06 [2025-04-24 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978345', 'tblTempUsageDetail_20' ) start [2025-04-24 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978345', 'tblTempUsageDetail_20' ) end [2025-04-24 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978345', 'tblTempVendorCDR_20' ) start [2025-04-24 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978345', 'tblTempVendorCDR_20' ) end [2025-04-24 08:20:19] Production.INFO: ProcessCDR(1,14978345,1,1,2) [2025-04-24 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978345', 'tblTempUsageDetail_20' ) start [2025-04-24 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978345', 'tblTempUsageDetail_20' ) end [2025-04-24 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:20:22] Production.INFO: ==17720== Releasing lock... [2025-04-24 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-24 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:21:05 [end_date_ymd] => 2025-04-24 08:21:05 [RateCDR] => 1 ) [2025-04-24 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:21:05' and `end` < '2025-04-24 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:21:17] Production.INFO: count ==377 [2025-04-24 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:21:05 - End Time 2025-04-24 08:21:05 [2025-04-24 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978350', 'tblTempUsageDetail_20' ) start [2025-04-24 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978350', 'tblTempUsageDetail_20' ) end [2025-04-24 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978350', 'tblTempVendorCDR_20' ) start [2025-04-24 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978350', 'tblTempVendorCDR_20' ) end [2025-04-24 08:21:18] Production.INFO: ProcessCDR(1,14978350,1,1,2) [2025-04-24 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978350', 'tblTempUsageDetail_20' ) start [2025-04-24 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978350', 'tblTempUsageDetail_20' ) end [2025-04-24 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:21:23] Production.INFO: ==17791== Releasing lock... [2025-04-24 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:21:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:22:05 [end_date_ymd] => 2025-04-24 08:22:05 [RateCDR] => 1 ) [2025-04-24 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:22:05' and `end` < '2025-04-24 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:22:18] Production.INFO: count ==385 [2025-04-24 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:22:05 - End Time 2025-04-24 08:22:05 [2025-04-24 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978355', 'tblTempUsageDetail_20' ) start [2025-04-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978355', 'tblTempUsageDetail_20' ) end [2025-04-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978355', 'tblTempVendorCDR_20' ) start [2025-04-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978355', 'tblTempVendorCDR_20' ) end [2025-04-24 08:22:18] Production.INFO: ProcessCDR(1,14978355,1,1,2) [2025-04-24 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978355', 'tblTempUsageDetail_20' ) start [2025-04-24 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978355', 'tblTempUsageDetail_20' ) end [2025-04-24 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:22:23] Production.INFO: ==17862== Releasing lock... [2025-04-24 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:23:04 [end_date_ymd] => 2025-04-24 08:23:04 [RateCDR] => 1 ) [2025-04-24 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:23:04' and `end` < '2025-04-24 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:23:17] Production.INFO: count ==395 [2025-04-24 08:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:23:04 - End Time 2025-04-24 08:23:04 [2025-04-24 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978360', 'tblTempUsageDetail_20' ) start [2025-04-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978360', 'tblTempUsageDetail_20' ) end [2025-04-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978360', 'tblTempVendorCDR_20' ) start [2025-04-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978360', 'tblTempVendorCDR_20' ) end [2025-04-24 08:23:17] Production.INFO: ProcessCDR(1,14978360,1,1,2) [2025-04-24 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978360', 'tblTempUsageDetail_20' ) start [2025-04-24 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978360', 'tblTempUsageDetail_20' ) end [2025-04-24 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:23:21] Production.INFO: ==17934== Releasing lock... [2025-04-24 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:24:05 [end_date_ymd] => 2025-04-24 08:24:05 [RateCDR] => 1 ) [2025-04-24 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:24:05' and `end` < '2025-04-24 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:24:18] Production.INFO: count ==400 [2025-04-24 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:24:05 - End Time 2025-04-24 08:24:05 [2025-04-24 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978365', 'tblTempUsageDetail_20' ) start [2025-04-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978365', 'tblTempUsageDetail_20' ) end [2025-04-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978365', 'tblTempVendorCDR_20' ) start [2025-04-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978365', 'tblTempVendorCDR_20' ) end [2025-04-24 08:24:18] Production.INFO: ProcessCDR(1,14978365,1,1,2) [2025-04-24 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978365', 'tblTempUsageDetail_20' ) start [2025-04-24 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978365', 'tblTempUsageDetail_20' ) end [2025-04-24 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:24:23] Production.INFO: ==18007== Releasing lock... [2025-04-24 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:25:05 [end_date_ymd] => 2025-04-24 08:25:05 [RateCDR] => 1 ) [2025-04-24 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:25:05' and `end` < '2025-04-24 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:25:18] Production.INFO: count ==400 [2025-04-24 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:25:05 - End Time 2025-04-24 08:25:05 [2025-04-24 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978370', 'tblTempUsageDetail_20' ) start [2025-04-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978370', 'tblTempUsageDetail_20' ) end [2025-04-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978370', 'tblTempVendorCDR_20' ) start [2025-04-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978370', 'tblTempVendorCDR_20' ) end [2025-04-24 08:25:18] Production.INFO: ProcessCDR(1,14978370,1,1,2) [2025-04-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978370', 'tblTempUsageDetail_20' ) start [2025-04-24 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978370', 'tblTempUsageDetail_20' ) end [2025-04-24 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:25:21] Production.INFO: ==18079== Releasing lock... [2025-04-24 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:26:05 [end_date_ymd] => 2025-04-24 08:26:05 [RateCDR] => 1 ) [2025-04-24 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:26:05' and `end` < '2025-04-24 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:26:17] Production.INFO: count ==402 [2025-04-24 08:26:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:26:05 - End Time 2025-04-24 08:26:05 [2025-04-24 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978375', 'tblTempUsageDetail_20' ) start [2025-04-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978375', 'tblTempUsageDetail_20' ) end [2025-04-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978375', 'tblTempVendorCDR_20' ) start [2025-04-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978375', 'tblTempVendorCDR_20' ) end [2025-04-24 08:26:17] Production.INFO: ProcessCDR(1,14978375,1,1,2) [2025-04-24 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978375', 'tblTempUsageDetail_20' ) start [2025-04-24 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978375', 'tblTempUsageDetail_20' ) end [2025-04-24 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:26:22] Production.INFO: ==18154== Releasing lock... [2025-04-24 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-24 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:27:06 [end_date_ymd] => 2025-04-24 08:27:06 [RateCDR] => 1 ) [2025-04-24 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:27:06' and `end` < '2025-04-24 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:27:18] Production.INFO: count ==408 [2025-04-24 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:27:06 - End Time 2025-04-24 08:27:06 [2025-04-24 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978380', 'tblTempUsageDetail_20' ) start [2025-04-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978380', 'tblTempUsageDetail_20' ) end [2025-04-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978380', 'tblTempVendorCDR_20' ) start [2025-04-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978380', 'tblTempVendorCDR_20' ) end [2025-04-24 08:27:18] Production.INFO: ProcessCDR(1,14978380,1,1,2) [2025-04-24 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978380', 'tblTempUsageDetail_20' ) start [2025-04-24 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978380', 'tblTempUsageDetail_20' ) end [2025-04-24 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:27:22] Production.INFO: ==18226== Releasing lock... [2025-04-24 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:28:05 [end_date_ymd] => 2025-04-24 08:28:05 [RateCDR] => 1 ) [2025-04-24 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:28:05' and `end` < '2025-04-24 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:28:18] Production.INFO: count ==408 [2025-04-24 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:28:05 - End Time 2025-04-24 08:28:05 [2025-04-24 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978385', 'tblTempUsageDetail_20' ) start [2025-04-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978385', 'tblTempUsageDetail_20' ) end [2025-04-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978385', 'tblTempVendorCDR_20' ) start [2025-04-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978385', 'tblTempVendorCDR_20' ) end [2025-04-24 08:28:18] Production.INFO: ProcessCDR(1,14978385,1,1,2) [2025-04-24 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978385', 'tblTempUsageDetail_20' ) start [2025-04-24 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978385', 'tblTempUsageDetail_20' ) end [2025-04-24 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:28:21] Production.INFO: ==18296== Releasing lock... [2025-04-24 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-24 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:29:05 [end_date_ymd] => 2025-04-24 08:29:05 [RateCDR] => 1 ) [2025-04-24 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:29:05' and `end` < '2025-04-24 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:29:18] Production.INFO: count ==417 [2025-04-24 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:29:05 - End Time 2025-04-24 08:29:05 [2025-04-24 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978390', 'tblTempUsageDetail_20' ) start [2025-04-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978390', 'tblTempUsageDetail_20' ) end [2025-04-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978390', 'tblTempVendorCDR_20' ) start [2025-04-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978390', 'tblTempVendorCDR_20' ) end [2025-04-24 08:29:18] Production.INFO: ProcessCDR(1,14978390,1,1,2) [2025-04-24 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978390', 'tblTempUsageDetail_20' ) start [2025-04-24 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978390', 'tblTempUsageDetail_20' ) end [2025-04-24 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:29:23] Production.INFO: ==18406== Releasing lock... [2025-04-24 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:30:06 [end_date_ymd] => 2025-04-24 08:30:06 [RateCDR] => 1 ) [2025-04-24 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:30:06' and `end` < '2025-04-24 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:30:19] Production.INFO: count ==436 [2025-04-24 08:30:20] Production.ERROR: pbx CDR StartTime 2025-04-24 05:30:06 - End Time 2025-04-24 08:30:06 [2025-04-24 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978396', 'tblTempUsageDetail_20' ) start [2025-04-24 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978396', 'tblTempUsageDetail_20' ) end [2025-04-24 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978396', 'tblTempVendorCDR_20' ) start [2025-04-24 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978396', 'tblTempVendorCDR_20' ) end [2025-04-24 08:30:20] Production.INFO: ProcessCDR(1,14978396,1,1,2) [2025-04-24 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978396', 'tblTempUsageDetail_20' ) start [2025-04-24 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978396', 'tblTempUsageDetail_20' ) end [2025-04-24 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:30:23] Production.INFO: ==18486== Releasing lock... [2025-04-24 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:30:23] Production.INFO: 32 MB #Memory Used# [2025-04-24 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:31:05 [end_date_ymd] => 2025-04-24 08:31:05 [RateCDR] => 1 ) [2025-04-24 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:31:05' and `end` < '2025-04-24 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:31:18] Production.INFO: count ==453 [2025-04-24 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:31:05 - End Time 2025-04-24 08:31:05 [2025-04-24 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978401', 'tblTempUsageDetail_20' ) start [2025-04-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978401', 'tblTempUsageDetail_20' ) end [2025-04-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978401', 'tblTempVendorCDR_20' ) start [2025-04-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978401', 'tblTempVendorCDR_20' ) end [2025-04-24 08:31:18] Production.INFO: ProcessCDR(1,14978401,1,1,2) [2025-04-24 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978401', 'tblTempUsageDetail_20' ) start [2025-04-24 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978401', 'tblTempUsageDetail_20' ) end [2025-04-24 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:31:23] Production.INFO: ==18561== Releasing lock... [2025-04-24 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:31:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:32:05 [end_date_ymd] => 2025-04-24 08:32:05 [RateCDR] => 1 ) [2025-04-24 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:32:05' and `end` < '2025-04-24 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:32:17] Production.INFO: count ==461 [2025-04-24 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:32:05 - End Time 2025-04-24 08:32:05 [2025-04-24 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978406', 'tblTempUsageDetail_20' ) start [2025-04-24 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978406', 'tblTempUsageDetail_20' ) end [2025-04-24 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978406', 'tblTempVendorCDR_20' ) start [2025-04-24 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978406', 'tblTempVendorCDR_20' ) end [2025-04-24 08:32:18] Production.INFO: ProcessCDR(1,14978406,1,1,2) [2025-04-24 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978406', 'tblTempUsageDetail_20' ) start [2025-04-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978406', 'tblTempUsageDetail_20' ) end [2025-04-24 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:32:21] Production.INFO: ==18631== Releasing lock... [2025-04-24 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-24 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:33:05 [end_date_ymd] => 2025-04-24 08:33:05 [RateCDR] => 1 ) [2025-04-24 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:33:05' and `end` < '2025-04-24 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:33:17] Production.INFO: count ==461 [2025-04-24 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:33:05 - End Time 2025-04-24 08:33:05 [2025-04-24 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978411', 'tblTempUsageDetail_20' ) start [2025-04-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978411', 'tblTempUsageDetail_20' ) end [2025-04-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978411', 'tblTempVendorCDR_20' ) start [2025-04-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978411', 'tblTempVendorCDR_20' ) end [2025-04-24 08:33:18] Production.INFO: ProcessCDR(1,14978411,1,1,2) [2025-04-24 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978411', 'tblTempUsageDetail_20' ) start [2025-04-24 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978411', 'tblTempUsageDetail_20' ) end [2025-04-24 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:33:21] Production.INFO: ==18706== Releasing lock... [2025-04-24 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:34:05 [end_date_ymd] => 2025-04-24 08:34:05 [RateCDR] => 1 ) [2025-04-24 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:34:05' and `end` < '2025-04-24 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:34:18] Production.INFO: count ==466 [2025-04-24 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:34:05 - End Time 2025-04-24 08:34:05 [2025-04-24 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978416', 'tblTempUsageDetail_20' ) start [2025-04-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978416', 'tblTempUsageDetail_20' ) end [2025-04-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978416', 'tblTempVendorCDR_20' ) start [2025-04-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978416', 'tblTempVendorCDR_20' ) end [2025-04-24 08:34:18] Production.INFO: ProcessCDR(1,14978416,1,1,2) [2025-04-24 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978416', 'tblTempUsageDetail_20' ) start [2025-04-24 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978416', 'tblTempUsageDetail_20' ) end [2025-04-24 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:34:23] Production.INFO: ==18778== Releasing lock... [2025-04-24 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:34:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:35:05 [end_date_ymd] => 2025-04-24 08:35:05 [RateCDR] => 1 ) [2025-04-24 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:35:05' and `end` < '2025-04-24 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:35:18] Production.INFO: count ==468 [2025-04-24 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:35:05 - End Time 2025-04-24 08:35:05 [2025-04-24 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978421', 'tblTempUsageDetail_20' ) start [2025-04-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978421', 'tblTempUsageDetail_20' ) end [2025-04-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978421', 'tblTempVendorCDR_20' ) start [2025-04-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978421', 'tblTempVendorCDR_20' ) end [2025-04-24 08:35:18] Production.INFO: ProcessCDR(1,14978421,1,1,2) [2025-04-24 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978421', 'tblTempUsageDetail_20' ) start [2025-04-24 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978421', 'tblTempUsageDetail_20' ) end [2025-04-24 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:35:21] Production.INFO: ==18850== Releasing lock... [2025-04-24 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-24 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:36:06 [end_date_ymd] => 2025-04-24 08:36:06 [RateCDR] => 1 ) [2025-04-24 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:36:06' and `end` < '2025-04-24 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:36:18] Production.INFO: count ==475 [2025-04-24 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:36:06 - End Time 2025-04-24 08:36:06 [2025-04-24 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978426', 'tblTempUsageDetail_20' ) start [2025-04-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978426', 'tblTempUsageDetail_20' ) end [2025-04-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978426', 'tblTempVendorCDR_20' ) start [2025-04-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978426', 'tblTempVendorCDR_20' ) end [2025-04-24 08:36:18] Production.INFO: ProcessCDR(1,14978426,1,1,2) [2025-04-24 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978426', 'tblTempUsageDetail_20' ) start [2025-04-24 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978426', 'tblTempUsageDetail_20' ) end [2025-04-24 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:36:22] Production.INFO: ==18922== Releasing lock... [2025-04-24 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-24 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:37:04 [end_date_ymd] => 2025-04-24 08:37:04 [RateCDR] => 1 ) [2025-04-24 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:37:04' and `end` < '2025-04-24 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:37:17] Production.INFO: count ==475 [2025-04-24 08:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:37:04 - End Time 2025-04-24 08:37:04 [2025-04-24 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978431', 'tblTempUsageDetail_20' ) start [2025-04-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978431', 'tblTempUsageDetail_20' ) end [2025-04-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978431', 'tblTempVendorCDR_20' ) start [2025-04-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978431', 'tblTempVendorCDR_20' ) end [2025-04-24 08:37:17] Production.INFO: ProcessCDR(1,14978431,1,1,2) [2025-04-24 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978431', 'tblTempUsageDetail_20' ) start [2025-04-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978431', 'tblTempUsageDetail_20' ) end [2025-04-24 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:37:21] Production.INFO: ==18993== Releasing lock... [2025-04-24 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:37:21] Production.INFO: 32 MB #Memory Used# [2025-04-24 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:38:05 [end_date_ymd] => 2025-04-24 08:38:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 05:38:05' and `end` < '2025-04-24 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-04-24 08:38:18] Production.INFO: count ==482 [2025-04-24 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:38:05 - End Time 2025-04-24 08:38:05 [2025-04-24 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978436', 'tblTempUsageDetail_20' ) start [2025-04-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978436', 'tblTempUsageDetail_20' ) end [2025-04-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978436', 'tblTempVendorCDR_20' ) start [2025-04-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978436', 'tblTempVendorCDR_20' ) end [2025-04-24 08:38:18] Production.INFO: ProcessCDR(1,14978436,1,1,2) [2025-04-24 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978436', 'tblTempUsageDetail_20' ) start [2025-04-24 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978436', 'tblTempUsageDetail_20' ) end [2025-04-24 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:38:23] Production.INFO: ==19066== Releasing lock... [2025-04-24 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-24 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:39:04 [end_date_ymd] => 2025-04-24 08:39:04 [RateCDR] => 1 ) [2025-04-24 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:39:04' and `end` < '2025-04-24 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:39:17] Production.INFO: count ==488 [2025-04-24 08:39:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:39:04 - End Time 2025-04-24 08:39:04 [2025-04-24 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978441', 'tblTempUsageDetail_20' ) start [2025-04-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978441', 'tblTempUsageDetail_20' ) end [2025-04-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978441', 'tblTempVendorCDR_20' ) start [2025-04-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978441', 'tblTempVendorCDR_20' ) end [2025-04-24 08:39:17] Production.INFO: ProcessCDR(1,14978441,1,1,2) [2025-04-24 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978441', 'tblTempUsageDetail_20' ) start [2025-04-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978441', 'tblTempUsageDetail_20' ) end [2025-04-24 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:39:22] Production.INFO: ==19137== Releasing lock... [2025-04-24 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-24 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:40:06 [end_date_ymd] => 2025-04-24 08:40:06 [RateCDR] => 1 ) [2025-04-24 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:40:06' and `end` < '2025-04-24 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:40:19] Production.INFO: count ==500 [2025-04-24 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:40:06 - End Time 2025-04-24 08:40:06 [2025-04-24 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978447', 'tblTempUsageDetail_20' ) start [2025-04-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978447', 'tblTempUsageDetail_20' ) end [2025-04-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978447', 'tblTempVendorCDR_20' ) start [2025-04-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978447', 'tblTempVendorCDR_20' ) end [2025-04-24 08:40:19] Production.INFO: ProcessCDR(1,14978447,1,1,2) [2025-04-24 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978447', 'tblTempUsageDetail_20' ) start [2025-04-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978447', 'tblTempUsageDetail_20' ) end [2025-04-24 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:40:24] Production.INFO: ==19211== Releasing lock... [2025-04-24 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:40:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-24 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:41:05 [end_date_ymd] => 2025-04-24 08:41:05 [RateCDR] => 1 ) [2025-04-24 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:41:05' and `end` < '2025-04-24 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:41:18] Production.INFO: count ==531 [2025-04-24 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:41:05 - End Time 2025-04-24 08:41:05 [2025-04-24 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978452', 'tblTempUsageDetail_20' ) start [2025-04-24 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978452', 'tblTempUsageDetail_20' ) end [2025-04-24 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978452', 'tblTempVendorCDR_20' ) start [2025-04-24 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978452', 'tblTempVendorCDR_20' ) end [2025-04-24 08:41:18] Production.INFO: ProcessCDR(1,14978452,1,1,2) [2025-04-24 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978452', 'tblTempUsageDetail_20' ) start [2025-04-24 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978452', 'tblTempUsageDetail_20' ) end [2025-04-24 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:41:23] Production.INFO: ==19284== Releasing lock... [2025-04-24 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-24 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:42:05 [end_date_ymd] => 2025-04-24 08:42:05 [RateCDR] => 1 ) [2025-04-24 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:42:05' and `end` < '2025-04-24 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:42:18] Production.INFO: count ==544 [2025-04-24 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:42:05 - End Time 2025-04-24 08:42:05 [2025-04-24 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978457', 'tblTempUsageDetail_20' ) start [2025-04-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978457', 'tblTempUsageDetail_20' ) end [2025-04-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978457', 'tblTempVendorCDR_20' ) start [2025-04-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978457', 'tblTempVendorCDR_20' ) end [2025-04-24 08:42:18] Production.INFO: ProcessCDR(1,14978457,1,1,2) [2025-04-24 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978457', 'tblTempUsageDetail_20' ) start [2025-04-24 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978457', 'tblTempUsageDetail_20' ) end [2025-04-24 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:42:23] Production.INFO: ==19354== Releasing lock... [2025-04-24 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:42:23] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:43:06 [end_date_ymd] => 2025-04-24 08:43:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 05:43:06' and `end` < '2025-04-24 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-04-24 08:43:18] Production.INFO: count ==549 [2025-04-24 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:43:06 - End Time 2025-04-24 08:43:06 [2025-04-24 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978462', 'tblTempUsageDetail_20' ) start [2025-04-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978462', 'tblTempUsageDetail_20' ) end [2025-04-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978462', 'tblTempVendorCDR_20' ) start [2025-04-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978462', 'tblTempVendorCDR_20' ) end [2025-04-24 08:43:18] Production.INFO: ProcessCDR(1,14978462,1,1,2) [2025-04-24 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978462', 'tblTempUsageDetail_20' ) start [2025-04-24 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978462', 'tblTempUsageDetail_20' ) end [2025-04-24 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:43:22] Production.INFO: ==19424== Releasing lock... [2025-04-24 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:43:22] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:44:05 [end_date_ymd] => 2025-04-24 08:44:05 [RateCDR] => 1 ) [2025-04-24 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:44:05' and `end` < '2025-04-24 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:44:18] Production.INFO: count ==550 [2025-04-24 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:44:05 - End Time 2025-04-24 08:44:05 [2025-04-24 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978467', 'tblTempUsageDetail_20' ) start [2025-04-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978467', 'tblTempUsageDetail_20' ) end [2025-04-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978467', 'tblTempVendorCDR_20' ) start [2025-04-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978467', 'tblTempVendorCDR_20' ) end [2025-04-24 08:44:18] Production.INFO: ProcessCDR(1,14978467,1,1,2) [2025-04-24 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978467', 'tblTempUsageDetail_20' ) start [2025-04-24 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978467', 'tblTempUsageDetail_20' ) end [2025-04-24 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:44:22] Production.INFO: ==19541== Releasing lock... [2025-04-24 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:44:22] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:45:05 [end_date_ymd] => 2025-04-24 08:45:05 [RateCDR] => 1 ) [2025-04-24 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:45:05' and `end` < '2025-04-24 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:45:18] Production.INFO: count ==558 [2025-04-24 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:45:05 - End Time 2025-04-24 08:45:05 [2025-04-24 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978472', 'tblTempUsageDetail_20' ) start [2025-04-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978472', 'tblTempUsageDetail_20' ) end [2025-04-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978472', 'tblTempVendorCDR_20' ) start [2025-04-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978472', 'tblTempVendorCDR_20' ) end [2025-04-24 08:45:18] Production.INFO: ProcessCDR(1,14978472,1,1,2) [2025-04-24 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978472', 'tblTempUsageDetail_20' ) start [2025-04-24 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978472', 'tblTempUsageDetail_20' ) end [2025-04-24 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:45:21] Production.INFO: ==19612== Releasing lock... [2025-04-24 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-24 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:46:05 [end_date_ymd] => 2025-04-24 08:46:05 [RateCDR] => 1 ) [2025-04-24 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:46:05' and `end` < '2025-04-24 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:46:17] Production.INFO: count ==560 [2025-04-24 08:46:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:46:05 - End Time 2025-04-24 08:46:05 [2025-04-24 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978477', 'tblTempUsageDetail_20' ) start [2025-04-24 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978477', 'tblTempUsageDetail_20' ) end [2025-04-24 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978477', 'tblTempVendorCDR_20' ) start [2025-04-24 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978477', 'tblTempVendorCDR_20' ) end [2025-04-24 08:46:17] Production.INFO: ProcessCDR(1,14978477,1,1,2) [2025-04-24 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978477', 'tblTempUsageDetail_20' ) start [2025-04-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978477', 'tblTempUsageDetail_20' ) end [2025-04-24 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:46:22] Production.INFO: ==19682== Releasing lock... [2025-04-24 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-24 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:47:05 [end_date_ymd] => 2025-04-24 08:47:05 [RateCDR] => 1 ) [2025-04-24 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:47:05' and `end` < '2025-04-24 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:47:18] Production.INFO: count ==562 [2025-04-24 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:47:05 - End Time 2025-04-24 08:47:05 [2025-04-24 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978482', 'tblTempUsageDetail_20' ) start [2025-04-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978482', 'tblTempUsageDetail_20' ) end [2025-04-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978482', 'tblTempVendorCDR_20' ) start [2025-04-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978482', 'tblTempVendorCDR_20' ) end [2025-04-24 08:47:18] Production.INFO: ProcessCDR(1,14978482,1,1,2) [2025-04-24 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978482', 'tblTempUsageDetail_20' ) start [2025-04-24 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978482', 'tblTempUsageDetail_20' ) end [2025-04-24 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:47:21] Production.INFO: ==19756== Releasing lock... [2025-04-24 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:47:21] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:48:06 [end_date_ymd] => 2025-04-24 08:48:06 [RateCDR] => 1 ) [2025-04-24 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:48:06' and `end` < '2025-04-24 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:48:18] Production.INFO: count ==567 [2025-04-24 08:48:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:48:06 - End Time 2025-04-24 08:48:06 [2025-04-24 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978487', 'tblTempUsageDetail_20' ) start [2025-04-24 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978487', 'tblTempUsageDetail_20' ) end [2025-04-24 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978487', 'tblTempVendorCDR_20' ) start [2025-04-24 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978487', 'tblTempVendorCDR_20' ) end [2025-04-24 08:48:19] Production.INFO: ProcessCDR(1,14978487,1,1,2) [2025-04-24 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978487', 'tblTempUsageDetail_20' ) start [2025-04-24 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978487', 'tblTempUsageDetail_20' ) end [2025-04-24 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:48:23] Production.INFO: ==19830== Releasing lock... [2025-04-24 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:48:23] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:49:05 [end_date_ymd] => 2025-04-24 08:49:05 [RateCDR] => 1 ) [2025-04-24 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:49:05' and `end` < '2025-04-24 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:49:17] Production.INFO: count ==571 [2025-04-24 08:49:17] Production.ERROR: pbx CDR StartTime 2025-04-24 05:49:05 - End Time 2025-04-24 08:49:05 [2025-04-24 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978492', 'tblTempUsageDetail_20' ) start [2025-04-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978492', 'tblTempUsageDetail_20' ) end [2025-04-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978492', 'tblTempVendorCDR_20' ) start [2025-04-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978492', 'tblTempVendorCDR_20' ) end [2025-04-24 08:49:18] Production.INFO: ProcessCDR(1,14978492,1,1,2) [2025-04-24 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978492', 'tblTempUsageDetail_20' ) start [2025-04-24 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978492', 'tblTempUsageDetail_20' ) end [2025-04-24 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:49:21] Production.INFO: ==19901== Releasing lock... [2025-04-24 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:49:21] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:50:07 [end_date_ymd] => 2025-04-24 08:50:07 [RateCDR] => 1 ) [2025-04-24 08:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:50:07' and `end` < '2025-04-24 08:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:50:19] Production.INFO: count ==599 [2025-04-24 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:50:07 - End Time 2025-04-24 08:50:07 [2025-04-24 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978498', 'tblTempUsageDetail_20' ) start [2025-04-24 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978498', 'tblTempUsageDetail_20' ) end [2025-04-24 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978498', 'tblTempVendorCDR_20' ) start [2025-04-24 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978498', 'tblTempVendorCDR_20' ) end [2025-04-24 08:50:20] Production.INFO: ProcessCDR(1,14978498,1,1,2) [2025-04-24 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978498', 'tblTempUsageDetail_20' ) start [2025-04-24 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978498', 'tblTempUsageDetail_20' ) end [2025-04-24 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:50:25] Production.INFO: ==19975== Releasing lock... [2025-04-24 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:50:25] Production.INFO: 33 MB #Memory Used# [2025-04-24 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:51:05 [end_date_ymd] => 2025-04-24 08:51:05 [RateCDR] => 1 ) [2025-04-24 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:51:05' and `end` < '2025-04-24 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:51:17] Production.INFO: count ==659 [2025-04-24 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:51:05 - End Time 2025-04-24 08:51:05 [2025-04-24 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978503', 'tblTempUsageDetail_20' ) start [2025-04-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978503', 'tblTempUsageDetail_20' ) end [2025-04-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978503', 'tblTempVendorCDR_20' ) start [2025-04-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978503', 'tblTempVendorCDR_20' ) end [2025-04-24 08:51:18] Production.INFO: ProcessCDR(1,14978503,1,1,2) [2025-04-24 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978503', 'tblTempUsageDetail_20' ) start [2025-04-24 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978503', 'tblTempUsageDetail_20' ) end [2025-04-24 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:51:23] Production.INFO: ==20048== Releasing lock... [2025-04-24 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-24 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:52:05 [end_date_ymd] => 2025-04-24 08:52:05 [RateCDR] => 1 ) [2025-04-24 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:52:05' and `end` < '2025-04-24 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:52:18] Production.INFO: count ==665 [2025-04-24 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:52:05 - End Time 2025-04-24 08:52:05 [2025-04-24 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978508', 'tblTempUsageDetail_20' ) start [2025-04-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978508', 'tblTempUsageDetail_20' ) end [2025-04-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978508', 'tblTempVendorCDR_20' ) start [2025-04-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978508', 'tblTempVendorCDR_20' ) end [2025-04-24 08:52:18] Production.INFO: ProcessCDR(1,14978508,1,1,2) [2025-04-24 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978508', 'tblTempUsageDetail_20' ) start [2025-04-24 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978508', 'tblTempUsageDetail_20' ) end [2025-04-24 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:52:21] Production.INFO: ==20121== Releasing lock... [2025-04-24 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-24 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:53:05 [end_date_ymd] => 2025-04-24 08:53:05 [RateCDR] => 1 ) [2025-04-24 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:53:05' and `end` < '2025-04-24 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:53:17] Production.INFO: count ==667 [2025-04-24 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:53:05 - End Time 2025-04-24 08:53:05 [2025-04-24 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978513', 'tblTempUsageDetail_20' ) start [2025-04-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978513', 'tblTempUsageDetail_20' ) end [2025-04-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978513', 'tblTempVendorCDR_20' ) start [2025-04-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978513', 'tblTempVendorCDR_20' ) end [2025-04-24 08:53:18] Production.INFO: ProcessCDR(1,14978513,1,1,2) [2025-04-24 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978513', 'tblTempUsageDetail_20' ) start [2025-04-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978513', 'tblTempUsageDetail_20' ) end [2025-04-24 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:53:22] Production.INFO: ==20191== Releasing lock... [2025-04-24 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-24 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:54:05 [end_date_ymd] => 2025-04-24 08:54:05 [RateCDR] => 1 ) [2025-04-24 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:54:05' and `end` < '2025-04-24 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:54:18] Production.INFO: count ==674 [2025-04-24 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:54:05 - End Time 2025-04-24 08:54:05 [2025-04-24 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978518', 'tblTempUsageDetail_20' ) start [2025-04-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978518', 'tblTempUsageDetail_20' ) end [2025-04-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978518', 'tblTempVendorCDR_20' ) start [2025-04-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978518', 'tblTempVendorCDR_20' ) end [2025-04-24 08:54:18] Production.INFO: ProcessCDR(1,14978518,1,1,2) [2025-04-24 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978518', 'tblTempUsageDetail_20' ) start [2025-04-24 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978518', 'tblTempUsageDetail_20' ) end [2025-04-24 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:54:22] Production.INFO: ==20263== Releasing lock... [2025-04-24 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-24 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:55:05 [end_date_ymd] => 2025-04-24 08:55:05 [RateCDR] => 1 ) [2025-04-24 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:55:05' and `end` < '2025-04-24 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:55:17] Production.INFO: count ==678 [2025-04-24 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:55:05 - End Time 2025-04-24 08:55:05 [2025-04-24 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978523', 'tblTempUsageDetail_20' ) start [2025-04-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978523', 'tblTempUsageDetail_20' ) end [2025-04-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978523', 'tblTempVendorCDR_20' ) start [2025-04-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978523', 'tblTempVendorCDR_20' ) end [2025-04-24 08:55:18] Production.INFO: ProcessCDR(1,14978523,1,1,2) [2025-04-24 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978523', 'tblTempUsageDetail_20' ) start [2025-04-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978523', 'tblTempUsageDetail_20' ) end [2025-04-24 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:55:23] Production.INFO: ==20335== Releasing lock... [2025-04-24 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-24 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:56:05 [end_date_ymd] => 2025-04-24 08:56:05 [RateCDR] => 1 ) [2025-04-24 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:56:05' and `end` < '2025-04-24 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:56:18] Production.INFO: count ==680 [2025-04-24 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:56:05 - End Time 2025-04-24 08:56:05 [2025-04-24 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978528', 'tblTempUsageDetail_20' ) start [2025-04-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978528', 'tblTempUsageDetail_20' ) end [2025-04-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978528', 'tblTempVendorCDR_20' ) start [2025-04-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978528', 'tblTempVendorCDR_20' ) end [2025-04-24 08:56:18] Production.INFO: ProcessCDR(1,14978528,1,1,2) [2025-04-24 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978528', 'tblTempUsageDetail_20' ) start [2025-04-24 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978528', 'tblTempUsageDetail_20' ) end [2025-04-24 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:56:24] Production.INFO: ==20405== Releasing lock... [2025-04-24 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:56:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-24 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:57:04 [end_date_ymd] => 2025-04-24 08:57:04 [RateCDR] => 1 ) [2025-04-24 08: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-04-24 05:57:04' and `end` < '2025-04-24 08: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-04-24 08:57:17] Production.INFO: count ==684 [2025-04-24 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:57:04 - End Time 2025-04-24 08:57:04 [2025-04-24 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978533', 'tblTempUsageDetail_20' ) start [2025-04-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978533', 'tblTempUsageDetail_20' ) end [2025-04-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978533', 'tblTempVendorCDR_20' ) start [2025-04-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978533', 'tblTempVendorCDR_20' ) end [2025-04-24 08:57:18] Production.INFO: ProcessCDR(1,14978533,1,1,2) [2025-04-24 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978533', 'tblTempUsageDetail_20' ) start [2025-04-24 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978533', 'tblTempUsageDetail_20' ) end [2025-04-24 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:57:21] Production.INFO: ==20483== Releasing lock... [2025-04-24 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:57:21] Production.INFO: 34 MB #Memory Used# [2025-04-24 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:58:05 [end_date_ymd] => 2025-04-24 08:58:05 [RateCDR] => 1 ) [2025-04-24 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:58:05' and `end` < '2025-04-24 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:58:18] Production.INFO: count ==712 [2025-04-24 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 05:58:05 - End Time 2025-04-24 08:58:05 [2025-04-24 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978538', 'tblTempUsageDetail_20' ) start [2025-04-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978538', 'tblTempUsageDetail_20' ) end [2025-04-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978538', 'tblTempVendorCDR_20' ) start [2025-04-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978538', 'tblTempVendorCDR_20' ) end [2025-04-24 08:58:18] Production.INFO: ProcessCDR(1,14978538,1,1,2) [2025-04-24 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978538', 'tblTempUsageDetail_20' ) start [2025-04-24 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978538', 'tblTempUsageDetail_20' ) end [2025-04-24 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:58:23] Production.INFO: ==20553== Releasing lock... [2025-04-24 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:58:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-24 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 05:59:06 [end_date_ymd] => 2025-04-24 08:59:06 [RateCDR] => 1 ) [2025-04-24 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 05:59:06' and `end` < '2025-04-24 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 08:59:19] Production.INFO: count ==720 [2025-04-24 08:59:19] Production.ERROR: pbx CDR StartTime 2025-04-24 05:59:06 - End Time 2025-04-24 08:59:06 [2025-04-24 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978543', 'tblTempUsageDetail_20' ) start [2025-04-24 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978543', 'tblTempUsageDetail_20' ) end [2025-04-24 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978543', 'tblTempVendorCDR_20' ) start [2025-04-24 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978543', 'tblTempVendorCDR_20' ) end [2025-04-24 08:59:19] Production.INFO: ProcessCDR(1,14978543,1,1,2) [2025-04-24 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978543', 'tblTempUsageDetail_20' ) start [2025-04-24 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978543', 'tblTempUsageDetail_20' ) end [2025-04-24 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 08:59:24] Production.INFO: ==20627== Releasing lock... [2025-04-24 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 08:59:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-24 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:00:06 [end_date_ymd] => 2025-04-24 09:00:06 [RateCDR] => 1 ) [2025-04-24 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:00:06' and `end` < '2025-04-24 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:00:19] Production.INFO: count ==737 [2025-04-24 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:00:06 - End Time 2025-04-24 09:00:06 [2025-04-24 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978549', 'tblTempUsageDetail_20' ) start [2025-04-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978549', 'tblTempUsageDetail_20' ) end [2025-04-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978549', 'tblTempVendorCDR_20' ) start [2025-04-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978549', 'tblTempVendorCDR_20' ) end [2025-04-24 09:00:19] Production.INFO: ProcessCDR(1,14978549,1,1,2) [2025-04-24 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978549', 'tblTempUsageDetail_20' ) start [2025-04-24 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978549', 'tblTempUsageDetail_20' ) end [2025-04-24 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:00:22] Production.INFO: ==20739== Releasing lock... [2025-04-24 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:00:22] Production.INFO: 34 MB #Memory Used# [2025-04-24 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:01:05 [end_date_ymd] => 2025-04-24 09:01:05 [RateCDR] => 1 ) [2025-04-24 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:01:05' and `end` < '2025-04-24 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:01:18] Production.INFO: count ==796 [2025-04-24 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:01:05 - End Time 2025-04-24 09:01:05 [2025-04-24 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978554', 'tblTempUsageDetail_20' ) start [2025-04-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978554', 'tblTempUsageDetail_20' ) end [2025-04-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978554', 'tblTempVendorCDR_20' ) start [2025-04-24 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978554', 'tblTempVendorCDR_20' ) end [2025-04-24 09:01:19] Production.INFO: ProcessCDR(1,14978554,1,1,2) [2025-04-24 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978554', 'tblTempUsageDetail_20' ) start [2025-04-24 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978554', 'tblTempUsageDetail_20' ) end [2025-04-24 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:01:23] Production.INFO: ==20824== Releasing lock... [2025-04-24 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:01:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-24 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:02:05 [end_date_ymd] => 2025-04-24 09:02:05 [RateCDR] => 1 ) [2025-04-24 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:02:05' and `end` < '2025-04-24 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:02:17] Production.INFO: count ==816 [2025-04-24 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:02:05 - End Time 2025-04-24 09:02:05 [2025-04-24 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978559', 'tblTempUsageDetail_20' ) start [2025-04-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978559', 'tblTempUsageDetail_20' ) end [2025-04-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978559', 'tblTempVendorCDR_20' ) start [2025-04-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978559', 'tblTempVendorCDR_20' ) end [2025-04-24 09:02:18] Production.INFO: ProcessCDR(1,14978559,1,1,2) [2025-04-24 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978559', 'tblTempUsageDetail_20' ) start [2025-04-24 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978559', 'tblTempUsageDetail_20' ) end [2025-04-24 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:02:23] Production.INFO: ==20893== Releasing lock... [2025-04-24 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-24 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:03:06 [end_date_ymd] => 2025-04-24 09:03:06 [RateCDR] => 1 ) [2025-04-24 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:03:06' and `end` < '2025-04-24 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:03:18] Production.INFO: count ==817 [2025-04-24 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:03:06 - End Time 2025-04-24 09:03:06 [2025-04-24 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978564', 'tblTempUsageDetail_20' ) start [2025-04-24 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978564', 'tblTempUsageDetail_20' ) end [2025-04-24 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978564', 'tblTempVendorCDR_20' ) start [2025-04-24 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978564', 'tblTempVendorCDR_20' ) end [2025-04-24 09:03:19] Production.INFO: ProcessCDR(1,14978564,1,1,2) [2025-04-24 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978564', 'tblTempUsageDetail_20' ) start [2025-04-24 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978564', 'tblTempUsageDetail_20' ) end [2025-04-24 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:03:24] Production.INFO: ==20968== Releasing lock... [2025-04-24 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-24 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:04:05 [end_date_ymd] => 2025-04-24 09:04:05 [RateCDR] => 1 ) [2025-04-24 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:04:05' and `end` < '2025-04-24 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:04:17] Production.INFO: count ==820 [2025-04-24 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:04:05 - End Time 2025-04-24 09:04:05 [2025-04-24 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978569', 'tblTempUsageDetail_20' ) start [2025-04-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978569', 'tblTempUsageDetail_20' ) end [2025-04-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978569', 'tblTempVendorCDR_20' ) start [2025-04-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978569', 'tblTempVendorCDR_20' ) end [2025-04-24 09:04:18] Production.INFO: ProcessCDR(1,14978569,1,1,2) [2025-04-24 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978569', 'tblTempUsageDetail_20' ) start [2025-04-24 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978569', 'tblTempUsageDetail_20' ) end [2025-04-24 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:04:22] Production.INFO: ==21037== Releasing lock... [2025-04-24 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-24 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:05:05 [end_date_ymd] => 2025-04-24 09:05:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:05:05' and `end` < '2025-04-24 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-04-24 09:05:18] Production.INFO: count ==829 [2025-04-24 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:05:05 - End Time 2025-04-24 09:05:05 [2025-04-24 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978574', 'tblTempUsageDetail_20' ) start [2025-04-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978574', 'tblTempUsageDetail_20' ) end [2025-04-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978574', 'tblTempVendorCDR_20' ) start [2025-04-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978574', 'tblTempVendorCDR_20' ) end [2025-04-24 09:05:18] Production.INFO: ProcessCDR(1,14978574,1,1,2) [2025-04-24 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978574', 'tblTempUsageDetail_20' ) start [2025-04-24 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978574', 'tblTempUsageDetail_20' ) end [2025-04-24 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:05:23] Production.INFO: ==21112== Releasing lock... [2025-04-24 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-24 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:06:05 [end_date_ymd] => 2025-04-24 09:06:05 [RateCDR] => 1 ) [2025-04-24 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:06:05' and `end` < '2025-04-24 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:06:18] Production.INFO: count ==839 [2025-04-24 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:06:05 - End Time 2025-04-24 09:06:05 [2025-04-24 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978579', 'tblTempUsageDetail_20' ) start [2025-04-24 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978579', 'tblTempUsageDetail_20' ) end [2025-04-24 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978579', 'tblTempVendorCDR_20' ) start [2025-04-24 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978579', 'tblTempVendorCDR_20' ) end [2025-04-24 09:06:18] Production.INFO: ProcessCDR(1,14978579,1,1,2) [2025-04-24 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978579', 'tblTempUsageDetail_20' ) start [2025-04-24 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978579', 'tblTempUsageDetail_20' ) end [2025-04-24 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:06:23] Production.INFO: ==21183== Releasing lock... [2025-04-24 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-24 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:07:05 [end_date_ymd] => 2025-04-24 09:07:05 [RateCDR] => 1 ) [2025-04-24 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:07:05' and `end` < '2025-04-24 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:07:18] Production.INFO: count ==851 [2025-04-24 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:07:05 - End Time 2025-04-24 09:07:05 [2025-04-24 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978584', 'tblTempUsageDetail_20' ) start [2025-04-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978584', 'tblTempUsageDetail_20' ) end [2025-04-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978584', 'tblTempVendorCDR_20' ) start [2025-04-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978584', 'tblTempVendorCDR_20' ) end [2025-04-24 09:07:18] Production.INFO: ProcessCDR(1,14978584,1,1,2) [2025-04-24 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978584', 'tblTempUsageDetail_20' ) start [2025-04-24 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978584', 'tblTempUsageDetail_20' ) end [2025-04-24 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:07:23] Production.INFO: ==21254== Releasing lock... [2025-04-24 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:07:23] Production.INFO: 35 MB #Memory Used# [2025-04-24 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:08:06 [end_date_ymd] => 2025-04-24 09:08:06 [RateCDR] => 1 ) [2025-04-24 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:08:06' and `end` < '2025-04-24 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:08:18] Production.INFO: count ==853 [2025-04-24 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:08:06 - End Time 2025-04-24 09:08:06 [2025-04-24 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978589', 'tblTempUsageDetail_20' ) start [2025-04-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978589', 'tblTempUsageDetail_20' ) end [2025-04-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978589', 'tblTempVendorCDR_20' ) start [2025-04-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978589', 'tblTempVendorCDR_20' ) end [2025-04-24 09:08:19] Production.INFO: ProcessCDR(1,14978589,1,1,2) [2025-04-24 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978589', 'tblTempUsageDetail_20' ) start [2025-04-24 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978589', 'tblTempUsageDetail_20' ) end [2025-04-24 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:08:22] Production.INFO: ==21323== Releasing lock... [2025-04-24 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:08:22] Production.INFO: 35 MB #Memory Used# [2025-04-24 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:09:05 [end_date_ymd] => 2025-04-24 09:09:05 [RateCDR] => 1 ) [2025-04-24 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:09:05' and `end` < '2025-04-24 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:09:17] Production.INFO: count ==863 [2025-04-24 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:09:05 - End Time 2025-04-24 09:09:05 [2025-04-24 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978594', 'tblTempUsageDetail_20' ) start [2025-04-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978594', 'tblTempUsageDetail_20' ) end [2025-04-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978594', 'tblTempVendorCDR_20' ) start [2025-04-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978594', 'tblTempVendorCDR_20' ) end [2025-04-24 09:09:18] Production.INFO: ProcessCDR(1,14978594,1,1,2) [2025-04-24 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978594', 'tblTempUsageDetail_20' ) start [2025-04-24 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978594', 'tblTempUsageDetail_20' ) end [2025-04-24 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:09:23] Production.INFO: ==21394== Releasing lock... [2025-04-24 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:09:23] Production.INFO: 35 MB #Memory Used# [2025-04-24 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:10:06 [end_date_ymd] => 2025-04-24 09:10:06 [RateCDR] => 1 ) [2025-04-24 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:10:06' and `end` < '2025-04-24 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:10:19] Production.INFO: count ==879 [2025-04-24 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:10:06 - End Time 2025-04-24 09:10:06 [2025-04-24 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978599', 'tblTempUsageDetail_20' ) start [2025-04-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978599', 'tblTempUsageDetail_20' ) end [2025-04-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978599', 'tblTempVendorCDR_20' ) start [2025-04-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978599', 'tblTempVendorCDR_20' ) end [2025-04-24 09:10:19] Production.INFO: ProcessCDR(1,14978599,1,1,2) [2025-04-24 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978599', 'tblTempUsageDetail_20' ) start [2025-04-24 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978599', 'tblTempUsageDetail_20' ) end [2025-04-24 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:10:24] Production.INFO: ==21467== Releasing lock... [2025-04-24 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-24 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:11:04 [end_date_ymd] => 2025-04-24 09:11:04 [RateCDR] => 1 ) [2025-04-24 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:11:04' and `end` < '2025-04-24 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:11:17] Production.INFO: count ==948 [2025-04-24 09:11:17] Production.ERROR: pbx CDR StartTime 2025-04-24 06:11:04 - End Time 2025-04-24 09:11:04 [2025-04-24 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978605', 'tblTempUsageDetail_20' ) start [2025-04-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978605', 'tblTempUsageDetail_20' ) end [2025-04-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978605', 'tblTempVendorCDR_20' ) start [2025-04-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978605', 'tblTempVendorCDR_20' ) end [2025-04-24 09:11:17] Production.INFO: ProcessCDR(1,14978605,1,1,2) [2025-04-24 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978605', 'tblTempUsageDetail_20' ) start [2025-04-24 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978605', 'tblTempUsageDetail_20' ) end [2025-04-24 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:11:22] Production.INFO: ==21547== Releasing lock... [2025-04-24 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:11:22] Production.INFO: 36 MB #Memory Used# [2025-04-24 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:12:05 [end_date_ymd] => 2025-04-24 09:12:05 [RateCDR] => 1 ) [2025-04-24 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:12:05' and `end` < '2025-04-24 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:12:18] Production.INFO: count ==952 [2025-04-24 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:12:05 - End Time 2025-04-24 09:12:05 [2025-04-24 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978610', 'tblTempUsageDetail_20' ) start [2025-04-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978610', 'tblTempUsageDetail_20' ) end [2025-04-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978610', 'tblTempVendorCDR_20' ) start [2025-04-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978610', 'tblTempVendorCDR_20' ) end [2025-04-24 09:12:18] Production.INFO: ProcessCDR(1,14978610,1,1,2) [2025-04-24 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978610', 'tblTempUsageDetail_20' ) start [2025-04-24 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978610', 'tblTempUsageDetail_20' ) end [2025-04-24 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:12:23] Production.INFO: ==21621== Releasing lock... [2025-04-24 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:12:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-24 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:13:04 [end_date_ymd] => 2025-04-24 09:13:04 [RateCDR] => 1 ) [2025-04-24 09: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-04-24 06:13:04' and `end` < '2025-04-24 09: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-04-24 09:13:17] Production.INFO: count ==952 [2025-04-24 09:13:17] Production.ERROR: pbx CDR StartTime 2025-04-24 06:13:04 - End Time 2025-04-24 09:13:04 [2025-04-24 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978615', 'tblTempUsageDetail_20' ) start [2025-04-24 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978615', 'tblTempUsageDetail_20' ) end [2025-04-24 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978615', 'tblTempVendorCDR_20' ) start [2025-04-24 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978615', 'tblTempVendorCDR_20' ) end [2025-04-24 09:13:17] Production.INFO: ProcessCDR(1,14978615,1,1,2) [2025-04-24 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978615', 'tblTempUsageDetail_20' ) start [2025-04-24 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978615', 'tblTempUsageDetail_20' ) end [2025-04-24 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:13:22] Production.INFO: ==21690== Releasing lock... [2025-04-24 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:14:05 [end_date_ymd] => 2025-04-24 09:14:05 [RateCDR] => 1 ) [2025-04-24 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:14:05' and `end` < '2025-04-24 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:14:18] Production.INFO: count ==986 [2025-04-24 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:14:05 - End Time 2025-04-24 09:14:05 [2025-04-24 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978620', 'tblTempUsageDetail_20' ) start [2025-04-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978620', 'tblTempUsageDetail_20' ) end [2025-04-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978620', 'tblTempVendorCDR_20' ) start [2025-04-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978620', 'tblTempVendorCDR_20' ) end [2025-04-24 09:14:18] Production.INFO: ProcessCDR(1,14978620,1,1,2) [2025-04-24 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978620', 'tblTempUsageDetail_20' ) start [2025-04-24 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978620', 'tblTempUsageDetail_20' ) end [2025-04-24 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:14:23] Production.INFO: ==21763== Releasing lock... [2025-04-24 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:15:06 [end_date_ymd] => 2025-04-24 09:15:06 [RateCDR] => 1 ) [2025-04-24 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:15:06' and `end` < '2025-04-24 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:15:18] Production.INFO: count ==996 [2025-04-24 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:15:06 - End Time 2025-04-24 09:15:06 [2025-04-24 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978625', 'tblTempUsageDetail_20' ) start [2025-04-24 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978625', 'tblTempUsageDetail_20' ) end [2025-04-24 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978625', 'tblTempVendorCDR_20' ) start [2025-04-24 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978625', 'tblTempVendorCDR_20' ) end [2025-04-24 09:15:19] Production.INFO: ProcessCDR(1,14978625,1,1,2) [2025-04-24 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978625', 'tblTempUsageDetail_20' ) start [2025-04-24 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978625', 'tblTempUsageDetail_20' ) end [2025-04-24 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:15:24] Production.INFO: ==21874== Releasing lock... [2025-04-24 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:15:24] Production.INFO: 36 MB #Memory Used# [2025-04-24 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:16:05 [end_date_ymd] => 2025-04-24 09:16:05 [RateCDR] => 1 ) [2025-04-24 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:16:05' and `end` < '2025-04-24 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:16:18] Production.INFO: count ==1016 [2025-04-24 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:16:05 - End Time 2025-04-24 09:16:05 [2025-04-24 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978630', 'tblTempUsageDetail_20' ) start [2025-04-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978630', 'tblTempUsageDetail_20' ) end [2025-04-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978630', 'tblTempVendorCDR_20' ) start [2025-04-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978630', 'tblTempVendorCDR_20' ) end [2025-04-24 09:16:18] Production.INFO: ProcessCDR(1,14978630,1,1,2) [2025-04-24 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978630', 'tblTempUsageDetail_20' ) start [2025-04-24 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978630', 'tblTempUsageDetail_20' ) end [2025-04-24 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:16:23] Production.INFO: ==21944== Releasing lock... [2025-04-24 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:17:05 [end_date_ymd] => 2025-04-24 09:17:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:17:05' and `end` < '2025-04-24 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-04-24 09:17:18] Production.INFO: count ==1035 [2025-04-24 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:17:05 - End Time 2025-04-24 09:17:05 [2025-04-24 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978635', 'tblTempUsageDetail_20' ) start [2025-04-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978635', 'tblTempUsageDetail_20' ) end [2025-04-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978635', 'tblTempVendorCDR_20' ) start [2025-04-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978635', 'tblTempVendorCDR_20' ) end [2025-04-24 09:17:18] Production.INFO: ProcessCDR(1,14978635,1,1,2) [2025-04-24 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978635', 'tblTempUsageDetail_20' ) start [2025-04-24 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978635', 'tblTempUsageDetail_20' ) end [2025-04-24 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:17:23] Production.INFO: ==22014== Releasing lock... [2025-04-24 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:17:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:18:05 [end_date_ymd] => 2025-04-24 09:18:05 [RateCDR] => 1 ) [2025-04-24 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:18:05' and `end` < '2025-04-24 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:18:18] Production.INFO: count ==1046 [2025-04-24 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:18:05 - End Time 2025-04-24 09:18:05 [2025-04-24 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978640', 'tblTempUsageDetail_20' ) start [2025-04-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978640', 'tblTempUsageDetail_20' ) end [2025-04-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978640', 'tblTempVendorCDR_20' ) start [2025-04-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978640', 'tblTempVendorCDR_20' ) end [2025-04-24 09:18:18] Production.INFO: ProcessCDR(1,14978640,1,1,2) [2025-04-24 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978640', 'tblTempUsageDetail_20' ) start [2025-04-24 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978640', 'tblTempUsageDetail_20' ) end [2025-04-24 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:18:23] Production.INFO: ==22094== Releasing lock... [2025-04-24 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:18:23] Production.INFO: 36 MB #Memory Used# [2025-04-24 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:19:05 [end_date_ymd] => 2025-04-24 09:19:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:19:05' and `end` < '2025-04-24 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-04-24 09:19:18] Production.INFO: count ==1065 [2025-04-24 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:19:05 - End Time 2025-04-24 09:19:05 [2025-04-24 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978645', 'tblTempUsageDetail_20' ) start [2025-04-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978645', 'tblTempUsageDetail_20' ) end [2025-04-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978645', 'tblTempVendorCDR_20' ) start [2025-04-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978645', 'tblTempVendorCDR_20' ) end [2025-04-24 09:19:18] Production.INFO: ProcessCDR(1,14978645,1,1,2) [2025-04-24 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978645', 'tblTempUsageDetail_20' ) start [2025-04-24 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978645', 'tblTempUsageDetail_20' ) end [2025-04-24 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:19:23] Production.INFO: ==22166== Releasing lock... [2025-04-24 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:20:06 [end_date_ymd] => 2025-04-24 09:20:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:20:06' and `end` < '2025-04-24 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-04-24 09:20:19] Production.INFO: count ==1112 [2025-04-24 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:20:06 - End Time 2025-04-24 09:20:06 [2025-04-24 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978651', 'tblTempUsageDetail_20' ) start [2025-04-24 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978651', 'tblTempUsageDetail_20' ) end [2025-04-24 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978651', 'tblTempVendorCDR_20' ) start [2025-04-24 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978651', 'tblTempVendorCDR_20' ) end [2025-04-24 09:20:19] Production.INFO: ProcessCDR(1,14978651,1,1,2) [2025-04-24 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978651', 'tblTempUsageDetail_20' ) start [2025-04-24 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978651', 'tblTempUsageDetail_20' ) end [2025-04-24 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:20:24] Production.INFO: ==22239== Releasing lock... [2025-04-24 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:21:05 [end_date_ymd] => 2025-04-24 09:21:05 [RateCDR] => 1 ) [2025-04-24 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:21:05' and `end` < '2025-04-24 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:21:18] Production.INFO: count ==1198 [2025-04-24 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:21:05 - End Time 2025-04-24 09:21:05 [2025-04-24 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978656', 'tblTempUsageDetail_20' ) start [2025-04-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978656', 'tblTempUsageDetail_20' ) end [2025-04-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978656', 'tblTempVendorCDR_20' ) start [2025-04-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978656', 'tblTempVendorCDR_20' ) end [2025-04-24 09:21:18] Production.INFO: ProcessCDR(1,14978656,1,1,2) [2025-04-24 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978656', 'tblTempUsageDetail_20' ) start [2025-04-24 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978656', 'tblTempUsageDetail_20' ) end [2025-04-24 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:21:23] Production.INFO: ==22315== Releasing lock... [2025-04-24 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:21:23] Production.INFO: 37 MB #Memory Used# [2025-04-24 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:22:05 [end_date_ymd] => 2025-04-24 09:22:05 [RateCDR] => 1 ) [2025-04-24 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:22:05' and `end` < '2025-04-24 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:22:19] Production.INFO: count ==1225 [2025-04-24 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:22:05 - End Time 2025-04-24 09:22:05 [2025-04-24 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978661', 'tblTempUsageDetail_20' ) start [2025-04-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978661', 'tblTempUsageDetail_20' ) end [2025-04-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978661', 'tblTempVendorCDR_20' ) start [2025-04-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978661', 'tblTempVendorCDR_20' ) end [2025-04-24 09:22:19] Production.INFO: ProcessCDR(1,14978661,1,1,2) [2025-04-24 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978661', 'tblTempUsageDetail_20' ) start [2025-04-24 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978661', 'tblTempUsageDetail_20' ) end [2025-04-24 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:22:24] Production.INFO: ==22385== Releasing lock... [2025-04-24 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:22:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:23:05 [end_date_ymd] => 2025-04-24 09:23:05 [RateCDR] => 1 ) [2025-04-24 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:23:05' and `end` < '2025-04-24 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:23:18] Production.INFO: count ==1239 [2025-04-24 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:23:05 - End Time 2025-04-24 09:23:05 [2025-04-24 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978666', 'tblTempUsageDetail_20' ) start [2025-04-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978666', 'tblTempUsageDetail_20' ) end [2025-04-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978666', 'tblTempVendorCDR_20' ) start [2025-04-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978666', 'tblTempVendorCDR_20' ) end [2025-04-24 09:23:18] Production.INFO: ProcessCDR(1,14978666,1,1,2) [2025-04-24 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978666', 'tblTempUsageDetail_20' ) start [2025-04-24 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978666', 'tblTempUsageDetail_20' ) end [2025-04-24 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:23:23] Production.INFO: ==22458== Releasing lock... [2025-04-24 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:24:06 [end_date_ymd] => 2025-04-24 09:24:06 [RateCDR] => 1 ) [2025-04-24 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:24:06' and `end` < '2025-04-24 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:24:18] Production.INFO: count ==1242 [2025-04-24 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:24:06 - End Time 2025-04-24 09:24:06 [2025-04-24 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978671', 'tblTempUsageDetail_20' ) start [2025-04-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978671', 'tblTempUsageDetail_20' ) end [2025-04-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978671', 'tblTempVendorCDR_20' ) start [2025-04-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978671', 'tblTempVendorCDR_20' ) end [2025-04-24 09:24:19] Production.INFO: ProcessCDR(1,14978671,1,1,2) [2025-04-24 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978671', 'tblTempUsageDetail_20' ) start [2025-04-24 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978671', 'tblTempUsageDetail_20' ) end [2025-04-24 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:24:24] Production.INFO: ==22528== Releasing lock... [2025-04-24 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:25:05 [end_date_ymd] => 2025-04-24 09:25:05 [RateCDR] => 1 ) [2025-04-24 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:25:05' and `end` < '2025-04-24 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:25:18] Production.INFO: count ==1279 [2025-04-24 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:25:05 - End Time 2025-04-24 09:25:05 [2025-04-24 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978676', 'tblTempUsageDetail_20' ) start [2025-04-24 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978676', 'tblTempUsageDetail_20' ) end [2025-04-24 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978676', 'tblTempVendorCDR_20' ) start [2025-04-24 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978676', 'tblTempVendorCDR_20' ) end [2025-04-24 09:25:19] Production.INFO: ProcessCDR(1,14978676,1,1,2) [2025-04-24 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978676', 'tblTempUsageDetail_20' ) start [2025-04-24 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978676', 'tblTempUsageDetail_20' ) end [2025-04-24 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:25:24] Production.INFO: ==22604== Releasing lock... [2025-04-24 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:25:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:26:06 [end_date_ymd] => 2025-04-24 09:26:06 [RateCDR] => 1 ) [2025-04-24 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:26:06' and `end` < '2025-04-24 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:26:18] Production.INFO: count ==1292 [2025-04-24 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:26:06 - End Time 2025-04-24 09:26:06 [2025-04-24 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978681', 'tblTempUsageDetail_20' ) start [2025-04-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978681', 'tblTempUsageDetail_20' ) end [2025-04-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978681', 'tblTempVendorCDR_20' ) start [2025-04-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978681', 'tblTempVendorCDR_20' ) end [2025-04-24 09:26:19] Production.INFO: ProcessCDR(1,14978681,1,1,2) [2025-04-24 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978681', 'tblTempUsageDetail_20' ) start [2025-04-24 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978681', 'tblTempUsageDetail_20' ) end [2025-04-24 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:26:24] Production.INFO: ==22676== Releasing lock... [2025-04-24 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:27:04 [end_date_ymd] => 2025-04-24 09:27:04 [RateCDR] => 1 ) [2025-04-24 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:27:04' and `end` < '2025-04-24 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:27:17] Production.INFO: count ==1306 [2025-04-24 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:27:04 - End Time 2025-04-24 09:27:04 [2025-04-24 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978686', 'tblTempUsageDetail_20' ) start [2025-04-24 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978686', 'tblTempUsageDetail_20' ) end [2025-04-24 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978686', 'tblTempVendorCDR_20' ) start [2025-04-24 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978686', 'tblTempVendorCDR_20' ) end [2025-04-24 09:27:18] Production.INFO: ProcessCDR(1,14978686,1,1,2) [2025-04-24 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978686', 'tblTempUsageDetail_20' ) start [2025-04-24 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978686', 'tblTempUsageDetail_20' ) end [2025-04-24 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:27:21] Production.INFO: ==22745== Releasing lock... [2025-04-24 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:27:21] Production.INFO: 38 MB #Memory Used# [2025-04-24 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:28:06 [end_date_ymd] => 2025-04-24 09:28:06 [RateCDR] => 1 ) [2025-04-24 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:28:06' and `end` < '2025-04-24 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:28:19] Production.INFO: count ==1313 [2025-04-24 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:28:06 - End Time 2025-04-24 09:28:06 [2025-04-24 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978691', 'tblTempUsageDetail_20' ) start [2025-04-24 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978691', 'tblTempUsageDetail_20' ) end [2025-04-24 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978691', 'tblTempVendorCDR_20' ) start [2025-04-24 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978691', 'tblTempVendorCDR_20' ) end [2025-04-24 09:28:20] Production.INFO: ProcessCDR(1,14978691,1,1,2) [2025-04-24 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978691', 'tblTempUsageDetail_20' ) start [2025-04-24 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978691', 'tblTempUsageDetail_20' ) end [2025-04-24 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:28:24] Production.INFO: ==22819== Releasing lock... [2025-04-24 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-04-24 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:29:05 [end_date_ymd] => 2025-04-24 09:29:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:29:05' and `end` < '2025-04-24 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-04-24 09:29:18] Production.INFO: count ==1324 [2025-04-24 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:29:05 - End Time 2025-04-24 09:29:05 [2025-04-24 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978696', 'tblTempUsageDetail_20' ) start [2025-04-24 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978696', 'tblTempUsageDetail_20' ) end [2025-04-24 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978696', 'tblTempVendorCDR_20' ) start [2025-04-24 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978696', 'tblTempVendorCDR_20' ) end [2025-04-24 09:29:18] Production.INFO: ProcessCDR(1,14978696,1,1,2) [2025-04-24 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978696', 'tblTempUsageDetail_20' ) start [2025-04-24 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978696', 'tblTempUsageDetail_20' ) end [2025-04-24 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:29:24] Production.INFO: ==22889== Releasing lock... [2025-04-24 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:29:24] Production.INFO: 38 MB #Memory Used# [2025-04-24 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:30:06 [end_date_ymd] => 2025-04-24 09:30:06 [RateCDR] => 1 ) [2025-04-24 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:30:06' and `end` < '2025-04-24 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:30:19] Production.INFO: count ==1335 [2025-04-24 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:30:06 - End Time 2025-04-24 09:30:06 [2025-04-24 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978701', 'tblTempUsageDetail_20' ) start [2025-04-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978701', 'tblTempUsageDetail_20' ) end [2025-04-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978701', 'tblTempVendorCDR_20' ) start [2025-04-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978701', 'tblTempVendorCDR_20' ) end [2025-04-24 09:30:19] Production.INFO: ProcessCDR(1,14978701,1,1,2) [2025-04-24 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978701', 'tblTempUsageDetail_20' ) start [2025-04-24 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978701', 'tblTempUsageDetail_20' ) end [2025-04-24 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:30:23] Production.INFO: ==22964== Releasing lock... [2025-04-24 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:30:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:31:05 [end_date_ymd] => 2025-04-24 09:31:05 [RateCDR] => 1 ) [2025-04-24 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:31:05' and `end` < '2025-04-24 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:31:18] Production.INFO: count ==1412 [2025-04-24 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:31:05 - End Time 2025-04-24 09:31:05 [2025-04-24 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978707', 'tblTempUsageDetail_20' ) start [2025-04-24 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978707', 'tblTempUsageDetail_20' ) end [2025-04-24 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978707', 'tblTempVendorCDR_20' ) start [2025-04-24 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978707', 'tblTempVendorCDR_20' ) end [2025-04-24 09:31:18] Production.INFO: ProcessCDR(1,14978707,1,1,2) [2025-04-24 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978707', 'tblTempUsageDetail_20' ) start [2025-04-24 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978707', 'tblTempUsageDetail_20' ) end [2025-04-24 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:31:22] Production.INFO: ==23077== Releasing lock... [2025-04-24 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:32:05 [end_date_ymd] => 2025-04-24 09:32:05 [RateCDR] => 1 ) [2025-04-24 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:32:05' and `end` < '2025-04-24 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:32:19] Production.INFO: count ==1414 [2025-04-24 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:32:05 - End Time 2025-04-24 09:32:05 [2025-04-24 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978712', 'tblTempUsageDetail_20' ) start [2025-04-24 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978712', 'tblTempUsageDetail_20' ) end [2025-04-24 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978712', 'tblTempVendorCDR_20' ) start [2025-04-24 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978712', 'tblTempVendorCDR_20' ) end [2025-04-24 09:32:19] Production.INFO: ProcessCDR(1,14978712,1,1,2) [2025-04-24 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978712', 'tblTempUsageDetail_20' ) start [2025-04-24 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978712', 'tblTempUsageDetail_20' ) end [2025-04-24 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:32:22] Production.INFO: ==23148== Releasing lock... [2025-04-24 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:32:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:33:04 [end_date_ymd] => 2025-04-24 09:33:04 [RateCDR] => 1 ) [2025-04-24 09:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:33:04' and `end` < '2025-04-24 09:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:33:17] Production.INFO: count ==1422 [2025-04-24 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:33:04 - End Time 2025-04-24 09:33:04 [2025-04-24 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978717', 'tblTempUsageDetail_20' ) start [2025-04-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978717', 'tblTempUsageDetail_20' ) end [2025-04-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978717', 'tblTempVendorCDR_20' ) start [2025-04-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978717', 'tblTempVendorCDR_20' ) end [2025-04-24 09:33:18] Production.INFO: ProcessCDR(1,14978717,1,1,2) [2025-04-24 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978717', 'tblTempUsageDetail_20' ) start [2025-04-24 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978717', 'tblTempUsageDetail_20' ) end [2025-04-24 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:33:23] Production.INFO: ==23218== Releasing lock... [2025-04-24 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:33:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:34:05 [end_date_ymd] => 2025-04-24 09:34:05 [RateCDR] => 1 ) [2025-04-24 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:34:05' and `end` < '2025-04-24 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:34:18] Production.INFO: count ==1443 [2025-04-24 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:34:05 - End Time 2025-04-24 09:34:05 [2025-04-24 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978722', 'tblTempUsageDetail_20' ) start [2025-04-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978722', 'tblTempUsageDetail_20' ) end [2025-04-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978722', 'tblTempVendorCDR_20' ) start [2025-04-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978722', 'tblTempVendorCDR_20' ) end [2025-04-24 09:34:19] Production.INFO: ProcessCDR(1,14978722,1,1,2) [2025-04-24 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978722', 'tblTempUsageDetail_20' ) start [2025-04-24 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978722', 'tblTempUsageDetail_20' ) end [2025-04-24 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:34:24] Production.INFO: ==23291== Releasing lock... [2025-04-24 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:35:06 [end_date_ymd] => 2025-04-24 09:35:06 [RateCDR] => 1 ) [2025-04-24 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:35:06' and `end` < '2025-04-24 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:35:19] Production.INFO: count ==1463 [2025-04-24 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:35:06 - End Time 2025-04-24 09:35:06 [2025-04-24 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978727', 'tblTempUsageDetail_20' ) start [2025-04-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978727', 'tblTempUsageDetail_20' ) end [2025-04-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978727', 'tblTempVendorCDR_20' ) start [2025-04-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978727', 'tblTempVendorCDR_20' ) end [2025-04-24 09:35:19] Production.INFO: ProcessCDR(1,14978727,1,1,2) [2025-04-24 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978727', 'tblTempUsageDetail_20' ) start [2025-04-24 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978727', 'tblTempUsageDetail_20' ) end [2025-04-24 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:35:25] Production.INFO: ==23369== Releasing lock... [2025-04-24 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:35:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:36:05 [end_date_ymd] => 2025-04-24 09:36:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:36:05' and `end` < '2025-04-24 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-04-24 09:36:18] Production.INFO: count ==1476 [2025-04-24 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 06:36:05 - End Time 2025-04-24 09:36:05 [2025-04-24 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978732', 'tblTempUsageDetail_20' ) start [2025-04-24 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978732', 'tblTempUsageDetail_20' ) end [2025-04-24 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978732', 'tblTempVendorCDR_20' ) start [2025-04-24 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978732', 'tblTempVendorCDR_20' ) end [2025-04-24 09:36:18] Production.INFO: ProcessCDR(1,14978732,1,1,2) [2025-04-24 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978732', 'tblTempUsageDetail_20' ) start [2025-04-24 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978732', 'tblTempUsageDetail_20' ) end [2025-04-24 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:36:24] Production.INFO: ==23442== Releasing lock... [2025-04-24 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:36:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:37:05 [end_date_ymd] => 2025-04-24 09:37:05 [RateCDR] => 1 ) [2025-04-24 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:37:05' and `end` < '2025-04-24 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:37:19] Production.INFO: count ==1501 [2025-04-24 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:37:05 - End Time 2025-04-24 09:37:05 [2025-04-24 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978737', 'tblTempUsageDetail_20' ) start [2025-04-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978737', 'tblTempUsageDetail_20' ) end [2025-04-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978737', 'tblTempVendorCDR_20' ) start [2025-04-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978737', 'tblTempVendorCDR_20' ) end [2025-04-24 09:37:19] Production.INFO: ProcessCDR(1,14978737,1,1,2) [2025-04-24 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978737', 'tblTempUsageDetail_20' ) start [2025-04-24 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978737', 'tblTempUsageDetail_20' ) end [2025-04-24 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:37:23] Production.INFO: ==23515== Releasing lock... [2025-04-24 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:37:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:38:05 [end_date_ymd] => 2025-04-24 09:38:05 [RateCDR] => 1 ) [2025-04-24 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:38:05' and `end` < '2025-04-24 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:38:18] Production.INFO: count ==1521 [2025-04-24 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:38:05 - End Time 2025-04-24 09:38:05 [2025-04-24 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978742', 'tblTempUsageDetail_20' ) start [2025-04-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978742', 'tblTempUsageDetail_20' ) end [2025-04-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978742', 'tblTempVendorCDR_20' ) start [2025-04-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978742', 'tblTempVendorCDR_20' ) end [2025-04-24 09:38:19] Production.INFO: ProcessCDR(1,14978742,1,1,2) [2025-04-24 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978742', 'tblTempUsageDetail_20' ) start [2025-04-24 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978742', 'tblTempUsageDetail_20' ) end [2025-04-24 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:38:24] Production.INFO: ==23590== Releasing lock... [2025-04-24 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:38:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:39:05 [end_date_ymd] => 2025-04-24 09:39:05 [RateCDR] => 1 ) [2025-04-24 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:39:05' and `end` < '2025-04-24 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:39:18] Production.INFO: count ==1545 [2025-04-24 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:39:05 - End Time 2025-04-24 09:39:05 [2025-04-24 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978747', 'tblTempUsageDetail_20' ) start [2025-04-24 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978747', 'tblTempUsageDetail_20' ) end [2025-04-24 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978747', 'tblTempVendorCDR_20' ) start [2025-04-24 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978747', 'tblTempVendorCDR_20' ) end [2025-04-24 09:39:19] Production.INFO: ProcessCDR(1,14978747,1,1,2) [2025-04-24 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978747', 'tblTempUsageDetail_20' ) start [2025-04-24 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978747', 'tblTempUsageDetail_20' ) end [2025-04-24 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:39:24] Production.INFO: ==23661== Releasing lock... [2025-04-24 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:39:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:40:06 [end_date_ymd] => 2025-04-24 09:40:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:40:06' and `end` < '2025-04-24 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-04-24 09:40:19] Production.INFO: count ==1577 [2025-04-24 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-24 06:40:06 - End Time 2025-04-24 09:40:06 [2025-04-24 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978753', 'tblTempUsageDetail_20' ) start [2025-04-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978753', 'tblTempUsageDetail_20' ) end [2025-04-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978753', 'tblTempVendorCDR_20' ) start [2025-04-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978753', 'tblTempVendorCDR_20' ) end [2025-04-24 09:40:20] Production.INFO: ProcessCDR(1,14978753,1,1,2) [2025-04-24 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978753', 'tblTempUsageDetail_20' ) start [2025-04-24 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978753', 'tblTempUsageDetail_20' ) end [2025-04-24 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:40:25] Production.INFO: ==23737== Releasing lock... [2025-04-24 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:40:25] Production.INFO: 40 MB #Memory Used# [2025-04-24 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:41:05 [end_date_ymd] => 2025-04-24 09:41:05 [RateCDR] => 1 ) [2025-04-24 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:41:05' and `end` < '2025-04-24 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:41:18] Production.INFO: count ==1699 [2025-04-24 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:41:05 - End Time 2025-04-24 09:41:05 [2025-04-24 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978758', 'tblTempUsageDetail_20' ) start [2025-04-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978758', 'tblTempUsageDetail_20' ) end [2025-04-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978758', 'tblTempVendorCDR_20' ) start [2025-04-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978758', 'tblTempVendorCDR_20' ) end [2025-04-24 09:41:19] Production.INFO: ProcessCDR(1,14978758,1,1,2) [2025-04-24 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978758', 'tblTempUsageDetail_20' ) start [2025-04-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978758', 'tblTempUsageDetail_20' ) end [2025-04-24 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:41:24] Production.INFO: ==23808== Releasing lock... [2025-04-24 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-24 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:42:05 [end_date_ymd] => 2025-04-24 09:42:05 [RateCDR] => 1 ) [2025-04-24 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:42:05' and `end` < '2025-04-24 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:42:18] Production.INFO: count ==1719 [2025-04-24 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:42:05 - End Time 2025-04-24 09:42:05 [2025-04-24 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978763', 'tblTempUsageDetail_20' ) start [2025-04-24 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978763', 'tblTempUsageDetail_20' ) end [2025-04-24 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978763', 'tblTempVendorCDR_20' ) start [2025-04-24 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978763', 'tblTempVendorCDR_20' ) end [2025-04-24 09:42:19] Production.INFO: ProcessCDR(1,14978763,1,1,2) [2025-04-24 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978763', 'tblTempUsageDetail_20' ) start [2025-04-24 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978763', 'tblTempUsageDetail_20' ) end [2025-04-24 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:42:24] Production.INFO: ==23878== Releasing lock... [2025-04-24 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:42:24] Production.INFO: 41 MB #Memory Used# [2025-04-24 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:43:05 [end_date_ymd] => 2025-04-24 09:43:05 [RateCDR] => 1 ) [2025-04-24 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:43:05' and `end` < '2025-04-24 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:43:19] Production.INFO: count ==1746 [2025-04-24 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:43:05 - End Time 2025-04-24 09:43:05 [2025-04-24 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978768', 'tblTempUsageDetail_20' ) start [2025-04-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978768', 'tblTempUsageDetail_20' ) end [2025-04-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978768', 'tblTempVendorCDR_20' ) start [2025-04-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978768', 'tblTempVendorCDR_20' ) end [2025-04-24 09:43:19] Production.INFO: ProcessCDR(1,14978768,1,1,2) [2025-04-24 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978768', 'tblTempUsageDetail_20' ) start [2025-04-24 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978768', 'tblTempUsageDetail_20' ) end [2025-04-24 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:43:24] Production.INFO: ==23950== Releasing lock... [2025-04-24 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-24 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:44:05 [end_date_ymd] => 2025-04-24 09:44:05 [RateCDR] => 1 ) [2025-04-24 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:44:05' and `end` < '2025-04-24 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:44:18] Production.INFO: count ==1765 [2025-04-24 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:44:05 - End Time 2025-04-24 09:44:05 [2025-04-24 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978773', 'tblTempUsageDetail_20' ) start [2025-04-24 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978773', 'tblTempUsageDetail_20' ) end [2025-04-24 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978773', 'tblTempVendorCDR_20' ) start [2025-04-24 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978773', 'tblTempVendorCDR_20' ) end [2025-04-24 09:44:19] Production.INFO: ProcessCDR(1,14978773,1,1,2) [2025-04-24 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978773', 'tblTempUsageDetail_20' ) start [2025-04-24 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978773', 'tblTempUsageDetail_20' ) end [2025-04-24 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:44:24] Production.INFO: ==24024== Releasing lock... [2025-04-24 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:45:05 [end_date_ymd] => 2025-04-24 09:45:05 [RateCDR] => 1 ) [2025-04-24 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:45:05' and `end` < '2025-04-24 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:45:19] Production.INFO: count ==1799 [2025-04-24 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:45:05 - End Time 2025-04-24 09:45:05 [2025-04-24 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978778', 'tblTempUsageDetail_20' ) start [2025-04-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978778', 'tblTempUsageDetail_20' ) end [2025-04-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978778', 'tblTempVendorCDR_20' ) start [2025-04-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978778', 'tblTempVendorCDR_20' ) end [2025-04-24 09:45:19] Production.INFO: ProcessCDR(1,14978778,1,1,2) [2025-04-24 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978778', 'tblTempUsageDetail_20' ) start [2025-04-24 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978778', 'tblTempUsageDetail_20' ) end [2025-04-24 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:45:23] Production.INFO: ==24094== Releasing lock... [2025-04-24 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:45:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:46:05 [end_date_ymd] => 2025-04-24 09:46:05 [RateCDR] => 1 ) [2025-04-24 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:46:05' and `end` < '2025-04-24 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:46:18] Production.INFO: count ==1807 [2025-04-24 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:46:05 - End Time 2025-04-24 09:46:05 [2025-04-24 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978783', 'tblTempUsageDetail_20' ) start [2025-04-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978783', 'tblTempUsageDetail_20' ) end [2025-04-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978783', 'tblTempVendorCDR_20' ) start [2025-04-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978783', 'tblTempVendorCDR_20' ) end [2025-04-24 09:46:19] Production.INFO: ProcessCDR(1,14978783,1,1,2) [2025-04-24 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978783', 'tblTempUsageDetail_20' ) start [2025-04-24 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978783', 'tblTempUsageDetail_20' ) end [2025-04-24 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:46:24] Production.INFO: ==24203== Releasing lock... [2025-04-24 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:46:24] Production.INFO: 42 MB #Memory Used# [2025-04-24 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:47:05 [end_date_ymd] => 2025-04-24 09:47:05 [RateCDR] => 1 ) [2025-04-24 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:47:05' and `end` < '2025-04-24 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:47:18] Production.INFO: count ==1819 [2025-04-24 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:47:05 - End Time 2025-04-24 09:47:05 [2025-04-24 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978788', 'tblTempUsageDetail_20' ) start [2025-04-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978788', 'tblTempUsageDetail_20' ) end [2025-04-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978788', 'tblTempVendorCDR_20' ) start [2025-04-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978788', 'tblTempVendorCDR_20' ) end [2025-04-24 09:47:19] Production.INFO: ProcessCDR(1,14978788,1,1,2) [2025-04-24 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978788', 'tblTempUsageDetail_20' ) start [2025-04-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978788', 'tblTempUsageDetail_20' ) end [2025-04-24 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:47:24] Production.INFO: ==24276== Releasing lock... [2025-04-24 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-24 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:48:05 [end_date_ymd] => 2025-04-24 09:48:05 [RateCDR] => 1 ) [2025-04-24 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:48:05' and `end` < '2025-04-24 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:48:19] Production.INFO: count ==1832 [2025-04-24 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:48:05 - End Time 2025-04-24 09:48:05 [2025-04-24 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978793', 'tblTempUsageDetail_20' ) start [2025-04-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978793', 'tblTempUsageDetail_20' ) end [2025-04-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978793', 'tblTempVendorCDR_20' ) start [2025-04-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978793', 'tblTempVendorCDR_20' ) end [2025-04-24 09:48:20] Production.INFO: ProcessCDR(1,14978793,1,1,2) [2025-04-24 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978793', 'tblTempUsageDetail_20' ) start [2025-04-24 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978793', 'tblTempUsageDetail_20' ) end [2025-04-24 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:48:25] Production.INFO: ==24349== Releasing lock... [2025-04-24 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:48:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-24 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:49:05 [end_date_ymd] => 2025-04-24 09:49:05 [RateCDR] => 1 ) [2025-04-24 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:49:05' and `end` < '2025-04-24 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:49:18] Production.INFO: count ==1847 [2025-04-24 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:49:05 - End Time 2025-04-24 09:49:05 [2025-04-24 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978798', 'tblTempUsageDetail_20' ) start [2025-04-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978798', 'tblTempUsageDetail_20' ) end [2025-04-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978798', 'tblTempVendorCDR_20' ) start [2025-04-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978798', 'tblTempVendorCDR_20' ) end [2025-04-24 09:49:19] Production.INFO: ProcessCDR(1,14978798,1,1,2) [2025-04-24 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978798', 'tblTempUsageDetail_20' ) start [2025-04-24 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978798', 'tblTempUsageDetail_20' ) end [2025-04-24 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:49:24] Production.INFO: ==24421== Releasing lock... [2025-04-24 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:49:24] Production.INFO: 42 MB #Memory Used# [2025-04-24 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:50:06 [end_date_ymd] => 2025-04-24 09:50:06 [RateCDR] => 1 ) [2025-04-24 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:50:06' and `end` < '2025-04-24 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:50:19] Production.INFO: count ==1873 [2025-04-24 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:50:06 - End Time 2025-04-24 09:50:06 [2025-04-24 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978804', 'tblTempUsageDetail_20' ) start [2025-04-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978804', 'tblTempUsageDetail_20' ) end [2025-04-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978804', 'tblTempVendorCDR_20' ) start [2025-04-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978804', 'tblTempVendorCDR_20' ) end [2025-04-24 09:50:19] Production.INFO: ProcessCDR(1,14978804,1,1,2) [2025-04-24 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978804', 'tblTempUsageDetail_20' ) start [2025-04-24 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978804', 'tblTempUsageDetail_20' ) end [2025-04-24 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:50:25] Production.INFO: ==24501== Releasing lock... [2025-04-24 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:50:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-24 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:51:05 [end_date_ymd] => 2025-04-24 09:51:05 [RateCDR] => 1 ) [2025-04-24 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:51:05' and `end` < '2025-04-24 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:51:18] Production.INFO: count ==1939 [2025-04-24 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:51:05 - End Time 2025-04-24 09:51:05 [2025-04-24 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978809', 'tblTempUsageDetail_20' ) start [2025-04-24 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978809', 'tblTempUsageDetail_20' ) end [2025-04-24 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978809', 'tblTempVendorCDR_20' ) start [2025-04-24 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978809', 'tblTempVendorCDR_20' ) end [2025-04-24 09:51:19] Production.INFO: ProcessCDR(1,14978809,1,1,2) [2025-04-24 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978809', 'tblTempUsageDetail_20' ) start [2025-04-24 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978809', 'tblTempUsageDetail_20' ) end [2025-04-24 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:51:22] Production.INFO: ==24575== Releasing lock... [2025-04-24 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:52:05 [end_date_ymd] => 2025-04-24 09:52:05 [RateCDR] => 1 ) [2025-04-24 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:52:05' and `end` < '2025-04-24 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:52:18] Production.INFO: count ==1957 [2025-04-24 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:52:05 - End Time 2025-04-24 09:52:05 [2025-04-24 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978814', 'tblTempUsageDetail_20' ) start [2025-04-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978814', 'tblTempUsageDetail_20' ) end [2025-04-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978814', 'tblTempVendorCDR_20' ) start [2025-04-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978814', 'tblTempVendorCDR_20' ) end [2025-04-24 09:52:19] Production.INFO: ProcessCDR(1,14978814,1,1,2) [2025-04-24 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978814', 'tblTempUsageDetail_20' ) start [2025-04-24 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978814', 'tblTempUsageDetail_20' ) end [2025-04-24 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:52:24] Production.INFO: ==24654== Releasing lock... [2025-04-24 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:52:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:53:06 [end_date_ymd] => 2025-04-24 09:53:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:53:06' and `end` < '2025-04-24 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-04-24 09:53:19] Production.INFO: count ==1969 [2025-04-24 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:53:06 - End Time 2025-04-24 09:53:06 [2025-04-24 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978819', 'tblTempUsageDetail_20' ) start [2025-04-24 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978819', 'tblTempUsageDetail_20' ) end [2025-04-24 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978819', 'tblTempVendorCDR_20' ) start [2025-04-24 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978819', 'tblTempVendorCDR_20' ) end [2025-04-24 09:53:19] Production.INFO: ProcessCDR(1,14978819,1,1,2) [2025-04-24 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978819', 'tblTempUsageDetail_20' ) start [2025-04-24 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978819', 'tblTempUsageDetail_20' ) end [2025-04-24 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:53:24] Production.INFO: ==24728== Releasing lock... [2025-04-24 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:53:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:54:05 [end_date_ymd] => 2025-04-24 09:54:05 [RateCDR] => 1 ) [2025-04-24 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:54:05' and `end` < '2025-04-24 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:54:18] Production.INFO: count ==1982 [2025-04-24 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:54:05 - End Time 2025-04-24 09:54:05 [2025-04-24 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978824', 'tblTempUsageDetail_20' ) start [2025-04-24 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978824', 'tblTempUsageDetail_20' ) end [2025-04-24 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978824', 'tblTempVendorCDR_20' ) start [2025-04-24 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978824', 'tblTempVendorCDR_20' ) end [2025-04-24 09:54:19] Production.INFO: ProcessCDR(1,14978824,1,1,2) [2025-04-24 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978824', 'tblTempUsageDetail_20' ) start [2025-04-24 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978824', 'tblTempUsageDetail_20' ) end [2025-04-24 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:54:24] Production.INFO: ==24798== Releasing lock... [2025-04-24 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:54:24] Production.INFO: 43 MB #Memory Used# [2025-04-24 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:55:06 [end_date_ymd] => 2025-04-24 09:55:06 [RateCDR] => 1 ) [2025-04-24 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:55:06' and `end` < '2025-04-24 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:55:19] Production.INFO: count ==1998 [2025-04-24 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-24 06:55:06 - End Time 2025-04-24 09:55:06 [2025-04-24 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978829', 'tblTempUsageDetail_20' ) start [2025-04-24 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978829', 'tblTempUsageDetail_20' ) end [2025-04-24 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978829', 'tblTempVendorCDR_20' ) start [2025-04-24 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978829', 'tblTempVendorCDR_20' ) end [2025-04-24 09:55:20] Production.INFO: ProcessCDR(1,14978829,1,1,2) [2025-04-24 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978829', 'tblTempUsageDetail_20' ) start [2025-04-24 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978829', 'tblTempUsageDetail_20' ) end [2025-04-24 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:55:25] Production.INFO: ==24871== Releasing lock... [2025-04-24 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:55:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-24 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:56:06 [end_date_ymd] => 2025-04-24 09:56:06 [RateCDR] => 1 ) [2025-04-24 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:56:06' and `end` < '2025-04-24 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:56:19] Production.INFO: count ==2036 [2025-04-24 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:56:06 - End Time 2025-04-24 09:56:06 [2025-04-24 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978834', 'tblTempUsageDetail_20' ) start [2025-04-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978834', 'tblTempUsageDetail_20' ) end [2025-04-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978834', 'tblTempVendorCDR_20' ) start [2025-04-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978834', 'tblTempVendorCDR_20' ) end [2025-04-24 09:56:20] Production.INFO: ProcessCDR(1,14978834,1,1,2) [2025-04-24 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978834', 'tblTempUsageDetail_20' ) start [2025-04-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978834', 'tblTempUsageDetail_20' ) end [2025-04-24 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:56:25] Production.INFO: ==24943== Releasing lock... [2025-04-24 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:56:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-24 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:57:05 [end_date_ymd] => 2025-04-24 09:57:05 [RateCDR] => 1 ) [2025-04-24 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:57:05' and `end` < '2025-04-24 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:57:18] Production.INFO: count ==2043 [2025-04-24 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:57:05 - End Time 2025-04-24 09:57:05 [2025-04-24 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978839', 'tblTempUsageDetail_20' ) start [2025-04-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978839', 'tblTempUsageDetail_20' ) end [2025-04-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978839', 'tblTempVendorCDR_20' ) start [2025-04-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978839', 'tblTempVendorCDR_20' ) end [2025-04-24 09:57:19] Production.INFO: ProcessCDR(1,14978839,1,1,2) [2025-04-24 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978839', 'tblTempUsageDetail_20' ) start [2025-04-24 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978839', 'tblTempUsageDetail_20' ) end [2025-04-24 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:57:24] Production.INFO: ==25017== Releasing lock... [2025-04-24 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:57:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:58:05 [end_date_ymd] => 2025-04-24 09:58:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 06:58:05' and `end` < '2025-04-24 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-04-24 09:58:18] Production.INFO: count ==2075 [2025-04-24 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-24 06:58:05 - End Time 2025-04-24 09:58:05 [2025-04-24 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978844', 'tblTempUsageDetail_20' ) start [2025-04-24 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978844', 'tblTempUsageDetail_20' ) end [2025-04-24 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978844', 'tblTempVendorCDR_20' ) start [2025-04-24 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978844', 'tblTempVendorCDR_20' ) end [2025-04-24 09:58:19] Production.INFO: ProcessCDR(1,14978844,1,1,2) [2025-04-24 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978844', 'tblTempUsageDetail_20' ) start [2025-04-24 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978844', 'tblTempUsageDetail_20' ) end [2025-04-24 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:58:25] Production.INFO: ==25090== Releasing lock... [2025-04-24 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:58:25] Production.INFO: 44 MB #Memory Used# [2025-04-24 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 06:59:06 [end_date_ymd] => 2025-04-24 09:59:06 [RateCDR] => 1 ) [2025-04-24 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 06:59:06' and `end` < '2025-04-24 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 09:59:19] Production.INFO: count ==2099 [2025-04-24 09:59:20] Production.ERROR: pbx CDR StartTime 2025-04-24 06:59:06 - End Time 2025-04-24 09:59:06 [2025-04-24 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978849', 'tblTempUsageDetail_20' ) start [2025-04-24 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978849', 'tblTempUsageDetail_20' ) end [2025-04-24 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978849', 'tblTempVendorCDR_20' ) start [2025-04-24 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978849', 'tblTempVendorCDR_20' ) end [2025-04-24 09:59:20] Production.INFO: ProcessCDR(1,14978849,1,1,2) [2025-04-24 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978849', 'tblTempUsageDetail_20' ) start [2025-04-24 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978849', 'tblTempUsageDetail_20' ) end [2025-04-24 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 09:59:25] Production.INFO: ==25160== Releasing lock... [2025-04-24 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 09:59:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-24 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:00:06 [end_date_ymd] => 2025-04-24 10:00:06 [RateCDR] => 1 ) [2025-04-24 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:00:06' and `end` < '2025-04-24 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:00:19] Production.INFO: count ==2131 [2025-04-24 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:00:06 - End Time 2025-04-24 10:00:06 [2025-04-24 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978855', 'tblTempUsageDetail_20' ) start [2025-04-24 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978855', 'tblTempUsageDetail_20' ) end [2025-04-24 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978855', 'tblTempVendorCDR_20' ) start [2025-04-24 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978855', 'tblTempVendorCDR_20' ) end [2025-04-24 10:00:20] Production.INFO: ProcessCDR(1,14978855,1,1,2) [2025-04-24 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978855', 'tblTempUsageDetail_20' ) start [2025-04-24 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978855', 'tblTempUsageDetail_20' ) end [2025-04-24 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:00:25] Production.INFO: ==25238== Releasing lock... [2025-04-24 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:00:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-24 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:01:05 [end_date_ymd] => 2025-04-24 10:01:05 [RateCDR] => 1 ) [2025-04-24 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:01:05' and `end` < '2025-04-24 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:01:18] Production.INFO: count ==2238 [2025-04-24 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:01:05 - End Time 2025-04-24 10:01:05 [2025-04-24 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978860', 'tblTempUsageDetail_20' ) start [2025-04-24 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978860', 'tblTempUsageDetail_20' ) end [2025-04-24 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978860', 'tblTempVendorCDR_20' ) start [2025-04-24 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978860', 'tblTempVendorCDR_20' ) end [2025-04-24 10:01:19] Production.INFO: ProcessCDR(1,14978860,1,1,2) [2025-04-24 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978860', 'tblTempUsageDetail_20' ) start [2025-04-24 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978860', 'tblTempUsageDetail_20' ) end [2025-04-24 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:01:24] Production.INFO: ==25329== Releasing lock... [2025-04-24 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:01:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-24 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:02:05 [end_date_ymd] => 2025-04-24 10:02:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:02:05' and `end` < '2025-04-24 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-04-24 10:02:18] Production.INFO: count ==2261 [2025-04-24 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:02:05 - End Time 2025-04-24 10:02:05 [2025-04-24 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978865', 'tblTempUsageDetail_20' ) start [2025-04-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978865', 'tblTempUsageDetail_20' ) end [2025-04-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978865', 'tblTempVendorCDR_20' ) start [2025-04-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978865', 'tblTempVendorCDR_20' ) end [2025-04-24 10:02:19] Production.INFO: ProcessCDR(1,14978865,1,1,2) [2025-04-24 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978865', 'tblTempUsageDetail_20' ) start [2025-04-24 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978865', 'tblTempUsageDetail_20' ) end [2025-04-24 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:02:24] Production.INFO: ==25440== Releasing lock... [2025-04-24 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:02:24] Production.INFO: 45 MB #Memory Used# [2025-04-24 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:03:05 [end_date_ymd] => 2025-04-24 10:03:05 [RateCDR] => 1 ) [2025-04-24 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:03:05' and `end` < '2025-04-24 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:03:19] Production.INFO: count ==2269 [2025-04-24 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:03:05 - End Time 2025-04-24 10:03:05 [2025-04-24 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978870', 'tblTempUsageDetail_20' ) start [2025-04-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978870', 'tblTempUsageDetail_20' ) end [2025-04-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978870', 'tblTempVendorCDR_20' ) start [2025-04-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978870', 'tblTempVendorCDR_20' ) end [2025-04-24 10:03:20] Production.INFO: ProcessCDR(1,14978870,1,1,2) [2025-04-24 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978870', 'tblTempUsageDetail_20' ) start [2025-04-24 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978870', 'tblTempUsageDetail_20' ) end [2025-04-24 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:03:25] Production.INFO: ==25510== Releasing lock... [2025-04-24 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:03:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-24 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:04:05 [end_date_ymd] => 2025-04-24 10:04:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:04:05' and `end` < '2025-04-24 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-04-24 10:04:18] Production.INFO: count ==2273 [2025-04-24 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:04:05 - End Time 2025-04-24 10:04:05 [2025-04-24 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978875', 'tblTempUsageDetail_20' ) start [2025-04-24 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978875', 'tblTempUsageDetail_20' ) end [2025-04-24 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978875', 'tblTempVendorCDR_20' ) start [2025-04-24 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978875', 'tblTempVendorCDR_20' ) end [2025-04-24 10:04:19] Production.INFO: ProcessCDR(1,14978875,1,1,2) [2025-04-24 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978875', 'tblTempUsageDetail_20' ) start [2025-04-24 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978875', 'tblTempUsageDetail_20' ) end [2025-04-24 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:04:24] Production.INFO: ==25585== Releasing lock... [2025-04-24 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:04:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-24 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:05:05 [end_date_ymd] => 2025-04-24 10:05:05 [RateCDR] => 1 ) [2025-04-24 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:05:05' and `end` < '2025-04-24 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:05:18] Production.INFO: count ==2289 [2025-04-24 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:05:05 - End Time 2025-04-24 10:05:05 [2025-04-24 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978880', 'tblTempUsageDetail_20' ) start [2025-04-24 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978880', 'tblTempUsageDetail_20' ) end [2025-04-24 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978880', 'tblTempVendorCDR_20' ) start [2025-04-24 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978880', 'tblTempVendorCDR_20' ) end [2025-04-24 10:05:19] Production.INFO: ProcessCDR(1,14978880,1,1,2) [2025-04-24 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978880', 'tblTempUsageDetail_20' ) start [2025-04-24 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978880', 'tblTempUsageDetail_20' ) end [2025-04-24 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:05:24] Production.INFO: ==25661== Releasing lock... [2025-04-24 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:05:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-24 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:06:05 [end_date_ymd] => 2025-04-24 10:06:05 [RateCDR] => 1 ) [2025-04-24 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:06:05' and `end` < '2025-04-24 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:06:18] Production.INFO: count ==2305 [2025-04-24 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:06:05 - End Time 2025-04-24 10:06:05 [2025-04-24 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978885', 'tblTempUsageDetail_20' ) start [2025-04-24 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978885', 'tblTempUsageDetail_20' ) end [2025-04-24 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978885', 'tblTempVendorCDR_20' ) start [2025-04-24 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978885', 'tblTempVendorCDR_20' ) end [2025-04-24 10:06:19] Production.INFO: ProcessCDR(1,14978885,1,1,2) [2025-04-24 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978885', 'tblTempUsageDetail_20' ) start [2025-04-24 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978885', 'tblTempUsageDetail_20' ) end [2025-04-24 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:06:24] Production.INFO: ==25743== Releasing lock... [2025-04-24 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:06:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-24 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:07:05 [end_date_ymd] => 2025-04-24 10:07:05 [RateCDR] => 1 ) [2025-04-24 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:07:05' and `end` < '2025-04-24 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:07:18] Production.INFO: count ==2342 [2025-04-24 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:07:05 - End Time 2025-04-24 10:07:05 [2025-04-24 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978890', 'tblTempUsageDetail_20' ) start [2025-04-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978890', 'tblTempUsageDetail_20' ) end [2025-04-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978890', 'tblTempVendorCDR_20' ) start [2025-04-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978890', 'tblTempVendorCDR_20' ) end [2025-04-24 10:07:19] Production.INFO: ProcessCDR(1,14978890,1,1,2) [2025-04-24 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978890', 'tblTempUsageDetail_20' ) start [2025-04-24 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978890', 'tblTempUsageDetail_20' ) end [2025-04-24 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:07:24] Production.INFO: ==25821== Releasing lock... [2025-04-24 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:07:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-24 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:08:05 [end_date_ymd] => 2025-04-24 10:08:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:08:05' and `end` < '2025-04-24 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-04-24 10:08:18] Production.INFO: count ==2361 [2025-04-24 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:08:05 - End Time 2025-04-24 10:08:05 [2025-04-24 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978895', 'tblTempUsageDetail_20' ) start [2025-04-24 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978895', 'tblTempUsageDetail_20' ) end [2025-04-24 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978895', 'tblTempVendorCDR_20' ) start [2025-04-24 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978895', 'tblTempVendorCDR_20' ) end [2025-04-24 10:08:19] Production.INFO: ProcessCDR(1,14978895,1,1,2) [2025-04-24 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978895', 'tblTempUsageDetail_20' ) start [2025-04-24 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978895', 'tblTempUsageDetail_20' ) end [2025-04-24 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:08:24] Production.INFO: ==25891== Releasing lock... [2025-04-24 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:08:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-24 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:09:05 [end_date_ymd] => 2025-04-24 10:09:05 [RateCDR] => 1 ) [2025-04-24 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:09:05' and `end` < '2025-04-24 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:09:18] Production.INFO: count ==2373 [2025-04-24 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:09:05 - End Time 2025-04-24 10:09:05 [2025-04-24 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978900', 'tblTempUsageDetail_20' ) start [2025-04-24 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978900', 'tblTempUsageDetail_20' ) end [2025-04-24 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978900', 'tblTempVendorCDR_20' ) start [2025-04-24 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978900', 'tblTempVendorCDR_20' ) end [2025-04-24 10:09:19] Production.INFO: ProcessCDR(1,14978900,1,1,2) [2025-04-24 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978900', 'tblTempUsageDetail_20' ) start [2025-04-24 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978900', 'tblTempUsageDetail_20' ) end [2025-04-24 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:09:24] Production.INFO: ==25967== Releasing lock... [2025-04-24 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:09:24] Production.INFO: 46 MB #Memory Used# [2025-04-24 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:10:07 [end_date_ymd] => 2025-04-24 10:10:07 [RateCDR] => 1 ) [2025-04-24 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:10:07' and `end` < '2025-04-24 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:10:20] Production.INFO: count ==2397 [2025-04-24 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 07:10:07 - End Time 2025-04-24 10:10:07 [2025-04-24 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978906', 'tblTempUsageDetail_20' ) start [2025-04-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978906', 'tblTempUsageDetail_20' ) end [2025-04-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978906', 'tblTempVendorCDR_20' ) start [2025-04-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978906', 'tblTempVendorCDR_20' ) end [2025-04-24 10:10:21] Production.INFO: ProcessCDR(1,14978906,1,1,2) [2025-04-24 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978906', 'tblTempUsageDetail_20' ) start [2025-04-24 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978906', 'tblTempUsageDetail_20' ) end [2025-04-24 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:10:26] Production.INFO: ==26044== Releasing lock... [2025-04-24 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:10:26] Production.INFO: 46 MB #Memory Used# [2025-04-24 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:11:06 [end_date_ymd] => 2025-04-24 10:11:06 [RateCDR] => 1 ) [2025-04-24 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:11:06' and `end` < '2025-04-24 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:11:19] Production.INFO: count ==2515 [2025-04-24 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:11:06 - End Time 2025-04-24 10:11:06 [2025-04-24 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978911', 'tblTempUsageDetail_20' ) start [2025-04-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978911', 'tblTempUsageDetail_20' ) end [2025-04-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978911', 'tblTempVendorCDR_20' ) start [2025-04-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978911', 'tblTempVendorCDR_20' ) end [2025-04-24 10:11:20] Production.INFO: ProcessCDR(1,14978911,1,1,2) [2025-04-24 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978911', 'tblTempUsageDetail_20' ) start [2025-04-24 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978911', 'tblTempUsageDetail_20' ) end [2025-04-24 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:11:25] Production.INFO: ==26117== Releasing lock... [2025-04-24 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:11:25] Production.INFO: 47 MB #Memory Used# [2025-04-24 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:12:05 [end_date_ymd] => 2025-04-24 10:12:05 [RateCDR] => 1 ) [2025-04-24 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:12:05' and `end` < '2025-04-24 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:12:18] Production.INFO: count ==2529 [2025-04-24 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:12:05 - End Time 2025-04-24 10:12:05 [2025-04-24 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978915', 'tblTempUsageDetail_20' ) start [2025-04-24 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978915', 'tblTempUsageDetail_20' ) end [2025-04-24 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978915', 'tblTempVendorCDR_20' ) start [2025-04-24 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978915', 'tblTempVendorCDR_20' ) end [2025-04-24 10:12:19] Production.INFO: ProcessCDR(1,14978915,1,1,2) [2025-04-24 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978915', 'tblTempUsageDetail_20' ) start [2025-04-24 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978915', 'tblTempUsageDetail_20' ) end [2025-04-24 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:12:24] Production.INFO: ==26193== Releasing lock... [2025-04-24 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:12:24] Production.INFO: 47 MB #Memory Used# [2025-04-24 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:13:05 [end_date_ymd] => 2025-04-24 10:13:05 [RateCDR] => 1 ) [2025-04-24 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:13:05' and `end` < '2025-04-24 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:13:18] Production.INFO: count ==2547 [2025-04-24 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:13:05 - End Time 2025-04-24 10:13:05 [2025-04-24 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978921', 'tblTempUsageDetail_20' ) start [2025-04-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978921', 'tblTempUsageDetail_20' ) end [2025-04-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978921', 'tblTempVendorCDR_20' ) start [2025-04-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978921', 'tblTempVendorCDR_20' ) end [2025-04-24 10:13:19] Production.INFO: ProcessCDR(1,14978921,1,1,2) [2025-04-24 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978921', 'tblTempUsageDetail_20' ) start [2025-04-24 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978921', 'tblTempUsageDetail_20' ) end [2025-04-24 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:13:24] Production.INFO: ==26263== Releasing lock... [2025-04-24 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:13:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-24 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:14:05 [end_date_ymd] => 2025-04-24 10:14:05 [RateCDR] => 1 ) [2025-04-24 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:14:05' and `end` < '2025-04-24 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:14:19] Production.INFO: count ==2554 [2025-04-24 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:14:05 - End Time 2025-04-24 10:14:05 [2025-04-24 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978926', 'tblTempUsageDetail_20' ) start [2025-04-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978926', 'tblTempUsageDetail_20' ) end [2025-04-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978926', 'tblTempVendorCDR_20' ) start [2025-04-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978926', 'tblTempVendorCDR_20' ) end [2025-04-24 10:14:20] Production.INFO: ProcessCDR(1,14978926,1,1,2) [2025-04-24 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978926', 'tblTempUsageDetail_20' ) start [2025-04-24 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978926', 'tblTempUsageDetail_20' ) end [2025-04-24 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:14:25] Production.INFO: ==26342== Releasing lock... [2025-04-24 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:14:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-24 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:15:05 [end_date_ymd] => 2025-04-24 10:15:05 [RateCDR] => 1 ) [2025-04-24 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:15:05' and `end` < '2025-04-24 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:15:18] Production.INFO: count ==2587 [2025-04-24 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:15:05 - End Time 2025-04-24 10:15:05 [2025-04-24 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978931', 'tblTempUsageDetail_20' ) start [2025-04-24 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978931', 'tblTempUsageDetail_20' ) end [2025-04-24 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978931', 'tblTempVendorCDR_20' ) start [2025-04-24 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978931', 'tblTempVendorCDR_20' ) end [2025-04-24 10:15:19] Production.INFO: ProcessCDR(1,14978931,1,1,2) [2025-04-24 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978931', 'tblTempUsageDetail_20' ) start [2025-04-24 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978931', 'tblTempUsageDetail_20' ) end [2025-04-24 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:15:24] Production.INFO: ==26418== Releasing lock... [2025-04-24 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:15:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-24 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:16:05 [end_date_ymd] => 2025-04-24 10:16:05 [RateCDR] => 1 ) [2025-04-24 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:16:05' and `end` < '2025-04-24 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:16:18] Production.INFO: count ==2606 [2025-04-24 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:16:05 - End Time 2025-04-24 10:16:05 [2025-04-24 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978936', 'tblTempUsageDetail_20' ) start [2025-04-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978936', 'tblTempUsageDetail_20' ) end [2025-04-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978936', 'tblTempVendorCDR_20' ) start [2025-04-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978936', 'tblTempVendorCDR_20' ) end [2025-04-24 10:16:19] Production.INFO: ProcessCDR(1,14978936,1,1,2) [2025-04-24 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978936', 'tblTempUsageDetail_20' ) start [2025-04-24 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978936', 'tblTempUsageDetail_20' ) end [2025-04-24 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:16:24] Production.INFO: ==26491== Releasing lock... [2025-04-24 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:16:24] Production.INFO: 48 MB #Memory Used# [2025-04-24 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:17:05 [end_date_ymd] => 2025-04-24 10:17:05 [RateCDR] => 1 ) [2025-04-24 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:17:05' and `end` < '2025-04-24 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:17:18] Production.INFO: count ==2620 [2025-04-24 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:17:05 - End Time 2025-04-24 10:17:05 [2025-04-24 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978941', 'tblTempUsageDetail_20' ) start [2025-04-24 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978941', 'tblTempUsageDetail_20' ) end [2025-04-24 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978941', 'tblTempVendorCDR_20' ) start [2025-04-24 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978941', 'tblTempVendorCDR_20' ) end [2025-04-24 10:17:19] Production.INFO: ProcessCDR(1,14978941,1,1,2) [2025-04-24 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978941', 'tblTempUsageDetail_20' ) start [2025-04-24 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978941', 'tblTempUsageDetail_20' ) end [2025-04-24 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:17:24] Production.INFO: ==26605== Releasing lock... [2025-04-24 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:17:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:18:05 [end_date_ymd] => 2025-04-24 10:18:05 [RateCDR] => 1 ) [2025-04-24 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:18:05' and `end` < '2025-04-24 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:18:18] Production.INFO: count ==2636 [2025-04-24 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:18:05 - End Time 2025-04-24 10:18:05 [2025-04-24 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978946', 'tblTempUsageDetail_20' ) start [2025-04-24 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978946', 'tblTempUsageDetail_20' ) end [2025-04-24 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978946', 'tblTempVendorCDR_20' ) start [2025-04-24 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978946', 'tblTempVendorCDR_20' ) end [2025-04-24 10:18:19] Production.INFO: ProcessCDR(1,14978946,1,1,2) [2025-04-24 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978946', 'tblTempUsageDetail_20' ) start [2025-04-24 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978946', 'tblTempUsageDetail_20' ) end [2025-04-24 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:18:24] Production.INFO: ==26680== Releasing lock... [2025-04-24 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:18:24] Production.INFO: 48 MB #Memory Used# [2025-04-24 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:19:05 [end_date_ymd] => 2025-04-24 10:19:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:19:05' and `end` < '2025-04-24 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-04-24 10:19:18] Production.INFO: count ==2679 [2025-04-24 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:19:05 - End Time 2025-04-24 10:19:05 [2025-04-24 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978951', 'tblTempUsageDetail_20' ) start [2025-04-24 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978951', 'tblTempUsageDetail_20' ) end [2025-04-24 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978951', 'tblTempVendorCDR_20' ) start [2025-04-24 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978951', 'tblTempVendorCDR_20' ) end [2025-04-24 10:19:19] Production.INFO: ProcessCDR(1,14978951,1,1,2) [2025-04-24 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978951', 'tblTempUsageDetail_20' ) start [2025-04-24 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978951', 'tblTempUsageDetail_20' ) end [2025-04-24 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:19:24] Production.INFO: ==26760== Releasing lock... [2025-04-24 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:19:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-24 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:20:06 [end_date_ymd] => 2025-04-24 10:20:06 [RateCDR] => 1 ) [2025-04-24 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:20:06' and `end` < '2025-04-24 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:20:19] Production.INFO: count ==2715 [2025-04-24 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:20:06 - End Time 2025-04-24 10:20:06 [2025-04-24 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978956', 'tblTempUsageDetail_20' ) start [2025-04-24 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978956', 'tblTempUsageDetail_20' ) end [2025-04-24 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978956', 'tblTempVendorCDR_20' ) start [2025-04-24 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978956', 'tblTempVendorCDR_20' ) end [2025-04-24 10:20:20] Production.INFO: ProcessCDR(1,14978956,1,1,2) [2025-04-24 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978956', 'tblTempUsageDetail_20' ) start [2025-04-24 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978956', 'tblTempUsageDetail_20' ) end [2025-04-24 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:20:25] Production.INFO: ==26839== Releasing lock... [2025-04-24 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:20:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-24 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:21:05 [end_date_ymd] => 2025-04-24 10:21:05 [RateCDR] => 1 ) [2025-04-24 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:21:05' and `end` < '2025-04-24 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:21:19] Production.INFO: count ==2824 [2025-04-24 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:21:05 - End Time 2025-04-24 10:21:05 [2025-04-24 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978962', 'tblTempUsageDetail_20' ) start [2025-04-24 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978962', 'tblTempUsageDetail_20' ) end [2025-04-24 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978962', 'tblTempVendorCDR_20' ) start [2025-04-24 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978962', 'tblTempVendorCDR_20' ) end [2025-04-24 10:21:20] Production.INFO: ProcessCDR(1,14978962,1,1,2) [2025-04-24 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978962', 'tblTempUsageDetail_20' ) start [2025-04-24 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978962', 'tblTempUsageDetail_20' ) end [2025-04-24 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:21:25] Production.INFO: ==26923== Releasing lock... [2025-04-24 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:21:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:22:05 [end_date_ymd] => 2025-04-24 10:22:05 [RateCDR] => 1 ) [2025-04-24 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:22:05' and `end` < '2025-04-24 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:22:18] Production.INFO: count ==2831 [2025-04-24 10:22:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:22:05 - End Time 2025-04-24 10:22:05 [2025-04-24 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978967', 'tblTempUsageDetail_20' ) start [2025-04-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978967', 'tblTempUsageDetail_20' ) end [2025-04-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978967', 'tblTempVendorCDR_20' ) start [2025-04-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978967', 'tblTempVendorCDR_20' ) end [2025-04-24 10:22:19] Production.INFO: ProcessCDR(1,14978967,1,1,2) [2025-04-24 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978967', 'tblTempUsageDetail_20' ) start [2025-04-24 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978967', 'tblTempUsageDetail_20' ) end [2025-04-24 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:22:24] Production.INFO: ==26997== Releasing lock... [2025-04-24 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:22:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:23:05 [end_date_ymd] => 2025-04-24 10:23:05 [RateCDR] => 1 ) [2025-04-24 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:23:05' and `end` < '2025-04-24 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:23:18] Production.INFO: count ==2846 [2025-04-24 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:23:05 - End Time 2025-04-24 10:23:05 [2025-04-24 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978972', 'tblTempUsageDetail_20' ) start [2025-04-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978972', 'tblTempUsageDetail_20' ) end [2025-04-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978972', 'tblTempVendorCDR_20' ) start [2025-04-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978972', 'tblTempVendorCDR_20' ) end [2025-04-24 10:23:20] Production.INFO: ProcessCDR(1,14978972,1,1,2) [2025-04-24 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978972', 'tblTempUsageDetail_20' ) start [2025-04-24 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978972', 'tblTempUsageDetail_20' ) end [2025-04-24 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:23:24] Production.INFO: ==27070== Releasing lock... [2025-04-24 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:23:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:24:05 [end_date_ymd] => 2025-04-24 10:24:05 [RateCDR] => 1 ) [2025-04-24 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:24:05' and `end` < '2025-04-24 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:24:18] Production.INFO: count ==2857 [2025-04-24 10:24:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:24:05 - End Time 2025-04-24 10:24:05 [2025-04-24 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978977', 'tblTempUsageDetail_20' ) start [2025-04-24 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978977', 'tblTempUsageDetail_20' ) end [2025-04-24 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978977', 'tblTempVendorCDR_20' ) start [2025-04-24 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978977', 'tblTempVendorCDR_20' ) end [2025-04-24 10:24:19] Production.INFO: ProcessCDR(1,14978977,1,1,2) [2025-04-24 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978977', 'tblTempUsageDetail_20' ) start [2025-04-24 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978977', 'tblTempUsageDetail_20' ) end [2025-04-24 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:24:24] Production.INFO: ==27142== Releasing lock... [2025-04-24 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:24:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-24 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:25:05 [end_date_ymd] => 2025-04-24 10:25:05 [RateCDR] => 1 ) [2025-04-24 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:25:05' and `end` < '2025-04-24 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:25:18] Production.INFO: count ==2859 [2025-04-24 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:25:05 - End Time 2025-04-24 10:25:05 [2025-04-24 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978982', 'tblTempUsageDetail_20' ) start [2025-04-24 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978982', 'tblTempUsageDetail_20' ) end [2025-04-24 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978982', 'tblTempVendorCDR_20' ) start [2025-04-24 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978982', 'tblTempVendorCDR_20' ) end [2025-04-24 10:25:19] Production.INFO: ProcessCDR(1,14978982,1,1,2) [2025-04-24 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978982', 'tblTempUsageDetail_20' ) start [2025-04-24 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978982', 'tblTempUsageDetail_20' ) end [2025-04-24 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:25:23] Production.INFO: ==27216== Releasing lock... [2025-04-24 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:25:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-24 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:26:05 [end_date_ymd] => 2025-04-24 10:26:05 [RateCDR] => 1 ) [2025-04-24 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:26:05' and `end` < '2025-04-24 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:26:18] Production.INFO: count ==2891 [2025-04-24 10:26:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:26:05 - End Time 2025-04-24 10:26:05 [2025-04-24 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978987', 'tblTempUsageDetail_20' ) start [2025-04-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978987', 'tblTempUsageDetail_20' ) end [2025-04-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978987', 'tblTempVendorCDR_20' ) start [2025-04-24 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978987', 'tblTempVendorCDR_20' ) end [2025-04-24 10:26:20] Production.INFO: ProcessCDR(1,14978987,1,1,2) [2025-04-24 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978987', 'tblTempUsageDetail_20' ) start [2025-04-24 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978987', 'tblTempUsageDetail_20' ) end [2025-04-24 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:26:25] Production.INFO: ==27292== Releasing lock... [2025-04-24 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:26:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-24 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:27:05 [end_date_ymd] => 2025-04-24 10:27:05 [RateCDR] => 1 ) [2025-04-24 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:27:05' and `end` < '2025-04-24 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:27:18] Production.INFO: count ==2903 [2025-04-24 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:27:05 - End Time 2025-04-24 10:27:05 [2025-04-24 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978992', 'tblTempUsageDetail_20' ) start [2025-04-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978992', 'tblTempUsageDetail_20' ) end [2025-04-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978992', 'tblTempVendorCDR_20' ) start [2025-04-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978992', 'tblTempVendorCDR_20' ) end [2025-04-24 10:27:20] Production.INFO: ProcessCDR(1,14978992,1,1,2) [2025-04-24 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978992', 'tblTempUsageDetail_20' ) start [2025-04-24 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978992', 'tblTempUsageDetail_20' ) end [2025-04-24 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:27:25] Production.INFO: ==27365== Releasing lock... [2025-04-24 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:27:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-24 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:28:05 [end_date_ymd] => 2025-04-24 10:28:05 [RateCDR] => 1 ) [2025-04-24 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:28:05' and `end` < '2025-04-24 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:28:18] Production.INFO: count ==2922 [2025-04-24 10:28:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:28:05 - End Time 2025-04-24 10:28:05 [2025-04-24 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978997', 'tblTempUsageDetail_20' ) start [2025-04-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14978997', 'tblTempUsageDetail_20' ) end [2025-04-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978997', 'tblTempVendorCDR_20' ) start [2025-04-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14978997', 'tblTempVendorCDR_20' ) end [2025-04-24 10:28:20] Production.INFO: ProcessCDR(1,14978997,1,1,2) [2025-04-24 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14978997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14978997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14978997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14978997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978997', 'tblTempUsageDetail_20' ) start [2025-04-24 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14978997', 'tblTempUsageDetail_20' ) end [2025-04-24 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:28:24] Production.INFO: ==27443== Releasing lock... [2025-04-24 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:28:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-24 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:29:04 [end_date_ymd] => 2025-04-24 10:29:04 [RateCDR] => 1 ) [2025-04-24 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:29:04' and `end` < '2025-04-24 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:29:18] Production.INFO: count ==2926 [2025-04-24 10:29:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:29:04 - End Time 2025-04-24 10:29:04 [2025-04-24 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979002', 'tblTempUsageDetail_20' ) start [2025-04-24 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979002', 'tblTempUsageDetail_20' ) end [2025-04-24 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979002', 'tblTempVendorCDR_20' ) start [2025-04-24 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979002', 'tblTempVendorCDR_20' ) end [2025-04-24 10:29:19] Production.INFO: ProcessCDR(1,14979002,1,1,2) [2025-04-24 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979002', 'tblTempUsageDetail_20' ) start [2025-04-24 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979002', 'tblTempUsageDetail_20' ) end [2025-04-24 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:29:22] Production.INFO: ==27518== Releasing lock... [2025-04-24 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:29:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-24 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:30:06 [end_date_ymd] => 2025-04-24 10:30:06 [RateCDR] => 1 ) [2025-04-24 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:30:06' and `end` < '2025-04-24 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:30:19] Production.INFO: count ==2937 [2025-04-24 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:30:06 - End Time 2025-04-24 10:30:06 [2025-04-24 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979007', 'tblTempUsageDetail_20' ) start [2025-04-24 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979007', 'tblTempUsageDetail_20' ) end [2025-04-24 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979007', 'tblTempVendorCDR_20' ) start [2025-04-24 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979007', 'tblTempVendorCDR_20' ) end [2025-04-24 10:30:20] Production.INFO: ProcessCDR(1,14979007,1,1,2) [2025-04-24 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979007', 'tblTempUsageDetail_20' ) start [2025-04-24 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979007', 'tblTempUsageDetail_20' ) end [2025-04-24 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:30:25] Production.INFO: ==27594== Releasing lock... [2025-04-24 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:30:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-24 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:31:05 [end_date_ymd] => 2025-04-24 10:31:05 [RateCDR] => 1 ) [2025-04-24 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:31:05' and `end` < '2025-04-24 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:31:18] Production.INFO: count ==3061 [2025-04-24 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:31:05 - End Time 2025-04-24 10:31:05 [2025-04-24 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979013', 'tblTempUsageDetail_20' ) start [2025-04-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979013', 'tblTempUsageDetail_20' ) end [2025-04-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979013', 'tblTempVendorCDR_20' ) start [2025-04-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979013', 'tblTempVendorCDR_20' ) end [2025-04-24 10:31:20] Production.INFO: ProcessCDR(1,14979013,1,1,2) [2025-04-24 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979013', 'tblTempUsageDetail_20' ) start [2025-04-24 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979013', 'tblTempUsageDetail_20' ) end [2025-04-24 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:31:25] Production.INFO: ==27675== Releasing lock... [2025-04-24 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:31:25] Production.INFO: 51 MB #Memory Used# [2025-04-24 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:32:05 [end_date_ymd] => 2025-04-24 10:32:05 [RateCDR] => 1 ) [2025-04-24 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:32:05' and `end` < '2025-04-24 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:32:19] Production.INFO: count ==3076 [2025-04-24 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:32:05 - End Time 2025-04-24 10:32:05 [2025-04-24 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979018', 'tblTempUsageDetail_20' ) start [2025-04-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979018', 'tblTempUsageDetail_20' ) end [2025-04-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979018', 'tblTempVendorCDR_20' ) start [2025-04-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979018', 'tblTempVendorCDR_20' ) end [2025-04-24 10:32:20] Production.INFO: ProcessCDR(1,14979018,1,1,2) [2025-04-24 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979018', 'tblTempUsageDetail_20' ) start [2025-04-24 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979018', 'tblTempUsageDetail_20' ) end [2025-04-24 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:32:25] Production.INFO: ==27749== Releasing lock... [2025-04-24 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:32:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-24 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:33:05 [end_date_ymd] => 2025-04-24 10:33:05 [RateCDR] => 1 ) [2025-04-24 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:33:05' and `end` < '2025-04-24 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:33:18] Production.INFO: count ==3093 [2025-04-24 10:33:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:33:05 - End Time 2025-04-24 10:33:05 [2025-04-24 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979023', 'tblTempUsageDetail_20' ) start [2025-04-24 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979023', 'tblTempUsageDetail_20' ) end [2025-04-24 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979023', 'tblTempVendorCDR_20' ) start [2025-04-24 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979023', 'tblTempVendorCDR_20' ) end [2025-04-24 10:33:19] Production.INFO: ProcessCDR(1,14979023,1,1,2) [2025-04-24 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979023', 'tblTempUsageDetail_20' ) start [2025-04-24 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979023', 'tblTempUsageDetail_20' ) end [2025-04-24 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:33:24] Production.INFO: ==27866== Releasing lock... [2025-04-24 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:33:24] Production.INFO: 51 MB #Memory Used# [2025-04-24 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:34:05 [end_date_ymd] => 2025-04-24 10:34:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:34:05' and `end` < '2025-04-24 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-04-24 10:34:18] Production.INFO: count ==3090 [2025-04-24 10:34:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:34:05 - End Time 2025-04-24 10:34:05 [2025-04-24 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979028', 'tblTempUsageDetail_20' ) start [2025-04-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979028', 'tblTempUsageDetail_20' ) end [2025-04-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979028', 'tblTempVendorCDR_20' ) start [2025-04-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979028', 'tblTempVendorCDR_20' ) end [2025-04-24 10:34:20] Production.INFO: ProcessCDR(1,14979028,1,1,2) [2025-04-24 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979028', 'tblTempUsageDetail_20' ) start [2025-04-24 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979028', 'tblTempUsageDetail_20' ) end [2025-04-24 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:34:25] Production.INFO: ==27940== Releasing lock... [2025-04-24 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:34:25] Production.INFO: 51 MB #Memory Used# [2025-04-24 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:35:05 [end_date_ymd] => 2025-04-24 10:35:05 [RateCDR] => 1 ) [2025-04-24 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:35:05' and `end` < '2025-04-24 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:35:19] Production.INFO: count ==3099 [2025-04-24 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:35:05 - End Time 2025-04-24 10:35:05 [2025-04-24 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979033', 'tblTempUsageDetail_20' ) start [2025-04-24 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979033', 'tblTempUsageDetail_20' ) end [2025-04-24 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979033', 'tblTempVendorCDR_20' ) start [2025-04-24 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979033', 'tblTempVendorCDR_20' ) end [2025-04-24 10:35:20] Production.INFO: ProcessCDR(1,14979033,1,1,2) [2025-04-24 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979033', 'tblTempUsageDetail_20' ) start [2025-04-24 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979033', 'tblTempUsageDetail_20' ) end [2025-04-24 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:35:25] Production.INFO: ==28009== Releasing lock... [2025-04-24 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:35:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-24 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:36:05 [end_date_ymd] => 2025-04-24 10:36:05 [RateCDR] => 1 ) [2025-04-24 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:36:05' and `end` < '2025-04-24 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:36:18] Production.INFO: count ==3107 [2025-04-24 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:36:05 - End Time 2025-04-24 10:36:05 [2025-04-24 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979038', 'tblTempUsageDetail_20' ) start [2025-04-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979038', 'tblTempUsageDetail_20' ) end [2025-04-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979038', 'tblTempVendorCDR_20' ) start [2025-04-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979038', 'tblTempVendorCDR_20' ) end [2025-04-24 10:36:19] Production.INFO: ProcessCDR(1,14979038,1,1,2) [2025-04-24 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979038', 'tblTempUsageDetail_20' ) start [2025-04-24 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979038', 'tblTempUsageDetail_20' ) end [2025-04-24 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:36:24] Production.INFO: ==28083== Releasing lock... [2025-04-24 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:36:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-24 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:37:05 [end_date_ymd] => 2025-04-24 10:37:05 [RateCDR] => 1 ) [2025-04-24 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:37:05' and `end` < '2025-04-24 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:37:19] Production.INFO: count ==3117 [2025-04-24 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:37:05 - End Time 2025-04-24 10:37:05 [2025-04-24 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979043', 'tblTempUsageDetail_20' ) start [2025-04-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979043', 'tblTempUsageDetail_20' ) end [2025-04-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979043', 'tblTempVendorCDR_20' ) start [2025-04-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979043', 'tblTempVendorCDR_20' ) end [2025-04-24 10:37:20] Production.INFO: ProcessCDR(1,14979043,1,1,2) [2025-04-24 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979043', 'tblTempUsageDetail_20' ) start [2025-04-24 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979043', 'tblTempUsageDetail_20' ) end [2025-04-24 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:37:25] Production.INFO: ==28157== Releasing lock... [2025-04-24 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:37:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-24 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:38:05 [end_date_ymd] => 2025-04-24 10:38:05 [RateCDR] => 1 ) [2025-04-24 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:38:05' and `end` < '2025-04-24 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:38:18] Production.INFO: count ==3138 [2025-04-24 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:38:05 - End Time 2025-04-24 10:38:05 [2025-04-24 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979048', 'tblTempUsageDetail_20' ) start [2025-04-24 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979048', 'tblTempUsageDetail_20' ) end [2025-04-24 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979048', 'tblTempVendorCDR_20' ) start [2025-04-24 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979048', 'tblTempVendorCDR_20' ) end [2025-04-24 10:38:20] Production.INFO: ProcessCDR(1,14979048,1,1,2) [2025-04-24 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979048', 'tblTempUsageDetail_20' ) start [2025-04-24 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979048', 'tblTempUsageDetail_20' ) end [2025-04-24 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:38:25] Production.INFO: ==28233== Releasing lock... [2025-04-24 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:38:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-24 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:39:05 [end_date_ymd] => 2025-04-24 10:39:05 [RateCDR] => 1 ) [2025-04-24 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:39:05' and `end` < '2025-04-24 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:39:18] Production.INFO: count ==3158 [2025-04-24 10:39:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:39:05 - End Time 2025-04-24 10:39:05 [2025-04-24 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979053', 'tblTempUsageDetail_20' ) start [2025-04-24 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979053', 'tblTempUsageDetail_20' ) end [2025-04-24 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979053', 'tblTempVendorCDR_20' ) start [2025-04-24 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979053', 'tblTempVendorCDR_20' ) end [2025-04-24 10:39:19] Production.INFO: ProcessCDR(1,14979053,1,1,2) [2025-04-24 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979053', 'tblTempUsageDetail_20' ) start [2025-04-24 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979053', 'tblTempUsageDetail_20' ) end [2025-04-24 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:39:24] Production.INFO: ==28305== Releasing lock... [2025-04-24 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:39:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-24 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:40:06 [end_date_ymd] => 2025-04-24 10:40:06 [RateCDR] => 1 ) [2025-04-24 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:40:06' and `end` < '2025-04-24 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:40:19] Production.INFO: count ==3201 [2025-04-24 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:40:06 - End Time 2025-04-24 10:40:06 [2025-04-24 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979059', 'tblTempUsageDetail_20' ) start [2025-04-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979059', 'tblTempUsageDetail_20' ) end [2025-04-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979059', 'tblTempVendorCDR_20' ) start [2025-04-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979059', 'tblTempVendorCDR_20' ) end [2025-04-24 10:40:21] Production.INFO: ProcessCDR(1,14979059,1,1,2) [2025-04-24 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979059', 'tblTempUsageDetail_20' ) start [2025-04-24 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979059', 'tblTempUsageDetail_20' ) end [2025-04-24 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:40:26] Production.INFO: ==28381== Releasing lock... [2025-04-24 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:40:26] Production.INFO: 52 MB #Memory Used# [2025-04-24 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:41:05 [end_date_ymd] => 2025-04-24 10:41:05 [RateCDR] => 1 ) [2025-04-24 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:41:05' and `end` < '2025-04-24 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:41:19] Production.INFO: count ==3327 [2025-04-24 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:41:05 - End Time 2025-04-24 10:41:05 [2025-04-24 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979064', 'tblTempUsageDetail_20' ) start [2025-04-24 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979064', 'tblTempUsageDetail_20' ) end [2025-04-24 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979064', 'tblTempVendorCDR_20' ) start [2025-04-24 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979064', 'tblTempVendorCDR_20' ) end [2025-04-24 10:41:20] Production.INFO: ProcessCDR(1,14979064,1,1,2) [2025-04-24 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979064', 'tblTempUsageDetail_20' ) start [2025-04-24 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979064', 'tblTempUsageDetail_20' ) end [2025-04-24 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:41:25] Production.INFO: ==28459== Releasing lock... [2025-04-24 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:41:25] Production.INFO: 53 MB #Memory Used# [2025-04-24 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:42:05 [end_date_ymd] => 2025-04-24 10:42:05 [RateCDR] => 1 ) [2025-04-24 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:42:05' and `end` < '2025-04-24 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:42:18] Production.INFO: count ==3332 [2025-04-24 10:42:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:42:05 - End Time 2025-04-24 10:42:05 [2025-04-24 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979069', 'tblTempUsageDetail_20' ) start [2025-04-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979069', 'tblTempUsageDetail_20' ) end [2025-04-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979069', 'tblTempVendorCDR_20' ) start [2025-04-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979069', 'tblTempVendorCDR_20' ) end [2025-04-24 10:42:19] Production.INFO: ProcessCDR(1,14979069,1,1,2) [2025-04-24 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979069', 'tblTempUsageDetail_20' ) start [2025-04-24 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979069', 'tblTempUsageDetail_20' ) end [2025-04-24 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:42:24] Production.INFO: ==28532== Releasing lock... [2025-04-24 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:42:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-24 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:43:05 [end_date_ymd] => 2025-04-24 10:43:05 [RateCDR] => 1 ) [2025-04-24 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:43:05' and `end` < '2025-04-24 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:43:18] Production.INFO: count ==3341 [2025-04-24 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:43:05 - End Time 2025-04-24 10:43:05 [2025-04-24 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979074', 'tblTempUsageDetail_20' ) start [2025-04-24 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979074', 'tblTempUsageDetail_20' ) end [2025-04-24 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979074', 'tblTempVendorCDR_20' ) start [2025-04-24 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979074', 'tblTempVendorCDR_20' ) end [2025-04-24 10:43:20] Production.INFO: ProcessCDR(1,14979074,1,1,2) [2025-04-24 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979074', 'tblTempUsageDetail_20' ) start [2025-04-24 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979074', 'tblTempUsageDetail_20' ) end [2025-04-24 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:43:25] Production.INFO: ==28603== Releasing lock... [2025-04-24 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:43:25] Production.INFO: 53 MB #Memory Used# [2025-04-24 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:44:05 [end_date_ymd] => 2025-04-24 10:44:05 [RateCDR] => 1 ) [2025-04-24 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:44:05' and `end` < '2025-04-24 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:44:19] Production.INFO: count ==3357 [2025-04-24 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:44:05 - End Time 2025-04-24 10:44:05 [2025-04-24 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979079', 'tblTempUsageDetail_20' ) start [2025-04-24 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979079', 'tblTempUsageDetail_20' ) end [2025-04-24 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979079', 'tblTempVendorCDR_20' ) start [2025-04-24 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979079', 'tblTempVendorCDR_20' ) end [2025-04-24 10:44:20] Production.INFO: ProcessCDR(1,14979079,1,1,2) [2025-04-24 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979079', 'tblTempUsageDetail_20' ) start [2025-04-24 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979079', 'tblTempUsageDetail_20' ) end [2025-04-24 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:44:25] Production.INFO: ==28675== Releasing lock... [2025-04-24 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:44:25] Production.INFO: 53 MB #Memory Used# [2025-04-24 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:45:05 [end_date_ymd] => 2025-04-24 10:45:05 [RateCDR] => 1 ) [2025-04-24 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:45:05' and `end` < '2025-04-24 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:45:18] Production.INFO: count ==3384 [2025-04-24 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:45:05 - End Time 2025-04-24 10:45:05 [2025-04-24 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979084', 'tblTempUsageDetail_20' ) start [2025-04-24 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979084', 'tblTempUsageDetail_20' ) end [2025-04-24 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979084', 'tblTempVendorCDR_20' ) start [2025-04-24 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979084', 'tblTempVendorCDR_20' ) end [2025-04-24 10:45:20] Production.INFO: ProcessCDR(1,14979084,1,1,2) [2025-04-24 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979084', 'tblTempUsageDetail_20' ) start [2025-04-24 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979084', 'tblTempUsageDetail_20' ) end [2025-04-24 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:45:25] Production.INFO: ==28750== Releasing lock... [2025-04-24 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:45:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-24 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:46:05 [end_date_ymd] => 2025-04-24 10:46:05 [RateCDR] => 1 ) [2025-04-24 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:46:05' and `end` < '2025-04-24 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:46:19] Production.INFO: count ==3395 [2025-04-24 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:46:05 - End Time 2025-04-24 10:46:05 [2025-04-24 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979089', 'tblTempUsageDetail_20' ) start [2025-04-24 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979089', 'tblTempUsageDetail_20' ) end [2025-04-24 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979089', 'tblTempVendorCDR_20' ) start [2025-04-24 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979089', 'tblTempVendorCDR_20' ) end [2025-04-24 10:46:20] Production.INFO: ProcessCDR(1,14979089,1,1,2) [2025-04-24 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979089', 'tblTempUsageDetail_20' ) start [2025-04-24 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979089', 'tblTempUsageDetail_20' ) end [2025-04-24 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:46:25] Production.INFO: ==28830== Releasing lock... [2025-04-24 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:46:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-24 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:47:05 [end_date_ymd] => 2025-04-24 10:47:05 [RateCDR] => 1 ) [2025-04-24 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:47:05' and `end` < '2025-04-24 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:47:19] Production.INFO: count ==3403 [2025-04-24 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:47:05 - End Time 2025-04-24 10:47:05 [2025-04-24 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979094', 'tblTempUsageDetail_20' ) start [2025-04-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979094', 'tblTempUsageDetail_20' ) end [2025-04-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979094', 'tblTempVendorCDR_20' ) start [2025-04-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979094', 'tblTempVendorCDR_20' ) end [2025-04-24 10:47:20] Production.INFO: ProcessCDR(1,14979094,1,1,2) [2025-04-24 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979094', 'tblTempUsageDetail_20' ) start [2025-04-24 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979094', 'tblTempUsageDetail_20' ) end [2025-04-24 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:47:25] Production.INFO: ==28905== Releasing lock... [2025-04-24 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:47:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-24 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:48:06 [end_date_ymd] => 2025-04-24 10:48:06 [RateCDR] => 1 ) [2025-04-24 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:48:06' and `end` < '2025-04-24 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:48:19] Production.INFO: count ==3429 [2025-04-24 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:48:06 - End Time 2025-04-24 10:48:06 [2025-04-24 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979099', 'tblTempUsageDetail_20' ) start [2025-04-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979099', 'tblTempUsageDetail_20' ) end [2025-04-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979099', 'tblTempVendorCDR_20' ) start [2025-04-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979099', 'tblTempVendorCDR_20' ) end [2025-04-24 10:48:21] Production.INFO: ProcessCDR(1,14979099,1,1,2) [2025-04-24 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979099', 'tblTempUsageDetail_20' ) start [2025-04-24 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979099', 'tblTempUsageDetail_20' ) end [2025-04-24 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:48:26] Production.INFO: ==29016== Releasing lock... [2025-04-24 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:48:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-24 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:49:05 [end_date_ymd] => 2025-04-24 10:49:05 [RateCDR] => 1 ) [2025-04-24 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:49:05' and `end` < '2025-04-24 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:49:19] Production.INFO: count ==3449 [2025-04-24 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:49:05 - End Time 2025-04-24 10:49:05 [2025-04-24 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979104', 'tblTempUsageDetail_20' ) start [2025-04-24 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979104', 'tblTempUsageDetail_20' ) end [2025-04-24 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979104', 'tblTempVendorCDR_20' ) start [2025-04-24 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979104', 'tblTempVendorCDR_20' ) end [2025-04-24 10:49:20] Production.INFO: ProcessCDR(1,14979104,1,1,2) [2025-04-24 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979104', 'tblTempUsageDetail_20' ) start [2025-04-24 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979104', 'tblTempUsageDetail_20' ) end [2025-04-24 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:49:25] Production.INFO: ==29085== Releasing lock... [2025-04-24 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:49:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-24 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:50:06 [end_date_ymd] => 2025-04-24 10:50:06 [RateCDR] => 1 ) [2025-04-24 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:50:06' and `end` < '2025-04-24 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:50:19] Production.INFO: count ==3457 [2025-04-24 10:50:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:50:06 - End Time 2025-04-24 10:50:06 [2025-04-24 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979109', 'tblTempUsageDetail_20' ) start [2025-04-24 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979109', 'tblTempUsageDetail_20' ) end [2025-04-24 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979109', 'tblTempVendorCDR_20' ) start [2025-04-24 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979109', 'tblTempVendorCDR_20' ) end [2025-04-24 10:50:20] Production.INFO: ProcessCDR(1,14979109,1,1,2) [2025-04-24 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979109', 'tblTempUsageDetail_20' ) start [2025-04-24 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979109', 'tblTempUsageDetail_20' ) end [2025-04-24 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:50:25] Production.INFO: ==29163== Releasing lock... [2025-04-24 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:50:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-24 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:51:05 [end_date_ymd] => 2025-04-24 10:51:05 [RateCDR] => 1 ) [2025-04-24 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:51:05' and `end` < '2025-04-24 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:51:18] Production.INFO: count ==3546 [2025-04-24 10:51:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:51:05 - End Time 2025-04-24 10:51:05 [2025-04-24 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979115', 'tblTempUsageDetail_20' ) start [2025-04-24 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979115', 'tblTempUsageDetail_20' ) end [2025-04-24 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979115', 'tblTempVendorCDR_20' ) start [2025-04-24 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979115', 'tblTempVendorCDR_20' ) end [2025-04-24 10:51:19] Production.INFO: ProcessCDR(1,14979115,1,1,2) [2025-04-24 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979115', 'tblTempUsageDetail_20' ) start [2025-04-24 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979115', 'tblTempUsageDetail_20' ) end [2025-04-24 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:51:24] Production.INFO: ==29241== Releasing lock... [2025-04-24 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:51:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-24 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:52:05 [end_date_ymd] => 2025-04-24 10:52:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 07:52:05' and `end` < '2025-04-24 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-04-24 10:52:19] Production.INFO: count ==3570 [2025-04-24 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:52:05 - End Time 2025-04-24 10:52:05 [2025-04-24 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979120', 'tblTempUsageDetail_20' ) start [2025-04-24 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979120', 'tblTempUsageDetail_20' ) end [2025-04-24 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979120', 'tblTempVendorCDR_20' ) start [2025-04-24 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979120', 'tblTempVendorCDR_20' ) end [2025-04-24 10:52:20] Production.INFO: ProcessCDR(1,14979120,1,1,2) [2025-04-24 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979120', 'tblTempUsageDetail_20' ) start [2025-04-24 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979120', 'tblTempUsageDetail_20' ) end [2025-04-24 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:52:25] Production.INFO: ==29319== Releasing lock... [2025-04-24 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:52:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-24 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:53:05 [end_date_ymd] => 2025-04-24 10:53:05 [RateCDR] => 1 ) [2025-04-24 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:53:05' and `end` < '2025-04-24 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:53:18] Production.INFO: count ==3584 [2025-04-24 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:53:05 - End Time 2025-04-24 10:53:05 [2025-04-24 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979125', 'tblTempUsageDetail_20' ) start [2025-04-24 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979125', 'tblTempUsageDetail_20' ) end [2025-04-24 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979125', 'tblTempVendorCDR_20' ) start [2025-04-24 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979125', 'tblTempVendorCDR_20' ) end [2025-04-24 10:53:20] Production.INFO: ProcessCDR(1,14979125,1,1,2) [2025-04-24 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979125', 'tblTempUsageDetail_20' ) start [2025-04-24 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979125', 'tblTempUsageDetail_20' ) end [2025-04-24 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:53:25] Production.INFO: ==29396== Releasing lock... [2025-04-24 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:53:25] Production.INFO: 55 MB #Memory Used# [2025-04-24 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:54:05 [end_date_ymd] => 2025-04-24 10:54:05 [RateCDR] => 1 ) [2025-04-24 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:54:05' and `end` < '2025-04-24 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:54:18] Production.INFO: count ==3594 [2025-04-24 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:54:05 - End Time 2025-04-24 10:54:05 [2025-04-24 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979130', 'tblTempUsageDetail_20' ) start [2025-04-24 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979130', 'tblTempUsageDetail_20' ) end [2025-04-24 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979130', 'tblTempVendorCDR_20' ) start [2025-04-24 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979130', 'tblTempVendorCDR_20' ) end [2025-04-24 10:54:20] Production.INFO: ProcessCDR(1,14979130,1,1,2) [2025-04-24 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979130', 'tblTempUsageDetail_20' ) start [2025-04-24 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979130', 'tblTempUsageDetail_20' ) end [2025-04-24 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:54:25] Production.INFO: ==29473== Releasing lock... [2025-04-24 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:54:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-24 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:55:05 [end_date_ymd] => 2025-04-24 10:55:05 [RateCDR] => 1 ) [2025-04-24 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:55:05' and `end` < '2025-04-24 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:55:18] Production.INFO: count ==3606 [2025-04-24 10:55:19] Production.ERROR: pbx CDR StartTime 2025-04-24 07:55:05 - End Time 2025-04-24 10:55:05 [2025-04-24 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979135', 'tblTempUsageDetail_20' ) start [2025-04-24 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979135', 'tblTempUsageDetail_20' ) end [2025-04-24 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979135', 'tblTempVendorCDR_20' ) start [2025-04-24 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979135', 'tblTempVendorCDR_20' ) end [2025-04-24 10:55:20] Production.INFO: ProcessCDR(1,14979135,1,1,2) [2025-04-24 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979135', 'tblTempUsageDetail_20' ) start [2025-04-24 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979135', 'tblTempUsageDetail_20' ) end [2025-04-24 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:55:24] Production.INFO: ==29544== Releasing lock... [2025-04-24 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:55:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-24 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:56:05 [end_date_ymd] => 2025-04-24 10:56:05 [RateCDR] => 1 ) [2025-04-24 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:56:05' and `end` < '2025-04-24 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:56:18] Production.INFO: count ==3617 [2025-04-24 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:56:05 - End Time 2025-04-24 10:56:05 [2025-04-24 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979140', 'tblTempUsageDetail_20' ) start [2025-04-24 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979140', 'tblTempUsageDetail_20' ) end [2025-04-24 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979140', 'tblTempVendorCDR_20' ) start [2025-04-24 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979140', 'tblTempVendorCDR_20' ) end [2025-04-24 10:56:20] Production.INFO: ProcessCDR(1,14979140,1,1,2) [2025-04-24 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979140', 'tblTempUsageDetail_20' ) start [2025-04-24 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979140', 'tblTempUsageDetail_20' ) end [2025-04-24 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:56:25] Production.INFO: ==29618== Releasing lock... [2025-04-24 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:56:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-24 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:57:05 [end_date_ymd] => 2025-04-24 10:57:05 [RateCDR] => 1 ) [2025-04-24 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:57:05' and `end` < '2025-04-24 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:57:19] Production.INFO: count ==3632 [2025-04-24 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:57:05 - End Time 2025-04-24 10:57:05 [2025-04-24 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979145', 'tblTempUsageDetail_20' ) start [2025-04-24 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979145', 'tblTempUsageDetail_20' ) end [2025-04-24 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979145', 'tblTempVendorCDR_20' ) start [2025-04-24 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979145', 'tblTempVendorCDR_20' ) end [2025-04-24 10:57:20] Production.INFO: ProcessCDR(1,14979145,1,1,2) [2025-04-24 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979145', 'tblTempUsageDetail_20' ) start [2025-04-24 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979145', 'tblTempUsageDetail_20' ) end [2025-04-24 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:57:25] Production.INFO: ==29692== Releasing lock... [2025-04-24 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:57:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:58:05 [end_date_ymd] => 2025-04-24 10:58:05 [RateCDR] => 1 ) [2025-04-24 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:58:05' and `end` < '2025-04-24 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:58:18] Production.INFO: count ==3637 [2025-04-24 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:58:05 - End Time 2025-04-24 10:58:05 [2025-04-24 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979150', 'tblTempUsageDetail_20' ) start [2025-04-24 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979150', 'tblTempUsageDetail_20' ) end [2025-04-24 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979150', 'tblTempVendorCDR_20' ) start [2025-04-24 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979150', 'tblTempVendorCDR_20' ) end [2025-04-24 10:58:20] Production.INFO: ProcessCDR(1,14979150,1,1,2) [2025-04-24 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979150', 'tblTempUsageDetail_20' ) start [2025-04-24 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979150', 'tblTempUsageDetail_20' ) end [2025-04-24 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:58:25] Production.INFO: ==29766== Releasing lock... [2025-04-24 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:58:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-24 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 07:59:05 [end_date_ymd] => 2025-04-24 10:59:05 [RateCDR] => 1 ) [2025-04-24 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 07:59:05' and `end` < '2025-04-24 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 10:59:19] Production.INFO: count ==3686 [2025-04-24 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-24 07:59:05 - End Time 2025-04-24 10:59:05 [2025-04-24 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979155', 'tblTempUsageDetail_20' ) start [2025-04-24 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979155', 'tblTempUsageDetail_20' ) end [2025-04-24 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979155', 'tblTempVendorCDR_20' ) start [2025-04-24 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979155', 'tblTempVendorCDR_20' ) end [2025-04-24 10:59:21] Production.INFO: ProcessCDR(1,14979155,1,1,2) [2025-04-24 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979155', 'tblTempUsageDetail_20' ) start [2025-04-24 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979155', 'tblTempUsageDetail_20' ) end [2025-04-24 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 10:59:26] Production.INFO: ==29842== Releasing lock... [2025-04-24 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 10:59:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:00:06 [end_date_ymd] => 2025-04-24 11:00:06 [RateCDR] => 1 ) [2025-04-24 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:00:06' and `end` < '2025-04-24 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:00:20] Production.INFO: count ==3781 [2025-04-24 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:00:06 - End Time 2025-04-24 11:00:06 [2025-04-24 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979161', 'tblTempUsageDetail_20' ) start [2025-04-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979161', 'tblTempUsageDetail_20' ) end [2025-04-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979161', 'tblTempVendorCDR_20' ) start [2025-04-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979161', 'tblTempVendorCDR_20' ) end [2025-04-24 11:00:21] Production.INFO: ProcessCDR(1,14979161,1,1,2) [2025-04-24 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979161', 'tblTempUsageDetail_20' ) start [2025-04-24 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979161', 'tblTempUsageDetail_20' ) end [2025-04-24 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:00:26] Production.INFO: ==29923== Releasing lock... [2025-04-24 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:00:26] Production.INFO: 57 MB #Memory Used# [2025-04-24 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:01:05 [end_date_ymd] => 2025-04-24 11:01:05 [RateCDR] => 1 ) [2025-04-24 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:01:05' and `end` < '2025-04-24 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:01:19] Production.INFO: count ==3857 [2025-04-24 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:01:05 - End Time 2025-04-24 11:01:05 [2025-04-24 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979166', 'tblTempUsageDetail_20' ) start [2025-04-24 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979166', 'tblTempUsageDetail_20' ) end [2025-04-24 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979166', 'tblTempVendorCDR_20' ) start [2025-04-24 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979166', 'tblTempVendorCDR_20' ) end [2025-04-24 11:01:20] Production.INFO: ProcessCDR(1,14979166,1,1,2) [2025-04-24 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979166', 'tblTempUsageDetail_20' ) start [2025-04-24 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979166', 'tblTempUsageDetail_20' ) end [2025-04-24 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:01:25] Production.INFO: ==30093== Releasing lock... [2025-04-24 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:01:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-24 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:02:05 [end_date_ymd] => 2025-04-24 11:02:05 [RateCDR] => 1 ) [2025-04-24 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:02:05' and `end` < '2025-04-24 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:02:19] Production.INFO: count ==3871 [2025-04-24 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:02:05 - End Time 2025-04-24 11:02:05 [2025-04-24 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979171', 'tblTempUsageDetail_20' ) start [2025-04-24 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979171', 'tblTempUsageDetail_20' ) end [2025-04-24 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979171', 'tblTempVendorCDR_20' ) start [2025-04-24 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979171', 'tblTempVendorCDR_20' ) end [2025-04-24 11:02:20] Production.INFO: ProcessCDR(1,14979171,1,1,2) [2025-04-24 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979171', 'tblTempUsageDetail_20' ) start [2025-04-24 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979171', 'tblTempUsageDetail_20' ) end [2025-04-24 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:02:25] Production.INFO: ==30165== Releasing lock... [2025-04-24 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:02:25] Production.INFO: 57 MB #Memory Used# [2025-04-24 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:03:05 [end_date_ymd] => 2025-04-24 11:03:05 [RateCDR] => 1 ) [2025-04-24 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:03:05' and `end` < '2025-04-24 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:03:19] Production.INFO: count ==3881 [2025-04-24 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:03:05 - End Time 2025-04-24 11:03:05 [2025-04-24 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979176', 'tblTempUsageDetail_20' ) start [2025-04-24 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979176', 'tblTempUsageDetail_20' ) end [2025-04-24 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979176', 'tblTempVendorCDR_20' ) start [2025-04-24 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979176', 'tblTempVendorCDR_20' ) end [2025-04-24 11:03:21] Production.INFO: ProcessCDR(1,14979176,1,1,2) [2025-04-24 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979176', 'tblTempUsageDetail_20' ) start [2025-04-24 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979176', 'tblTempUsageDetail_20' ) end [2025-04-24 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:03:26] Production.INFO: ==30239== Releasing lock... [2025-04-24 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:03:26] Production.INFO: 57 MB #Memory Used# [2025-04-24 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:04:05 [end_date_ymd] => 2025-04-24 11:04:05 [RateCDR] => 1 ) [2025-04-24 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:04:05' and `end` < '2025-04-24 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:04:18] Production.INFO: count ==3884 [2025-04-24 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:04:05 - End Time 2025-04-24 11:04:05 [2025-04-24 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979181', 'tblTempUsageDetail_20' ) start [2025-04-24 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979181', 'tblTempUsageDetail_20' ) end [2025-04-24 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979181', 'tblTempVendorCDR_20' ) start [2025-04-24 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979181', 'tblTempVendorCDR_20' ) end [2025-04-24 11:04:20] Production.INFO: ProcessCDR(1,14979181,1,1,2) [2025-04-24 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979181', 'tblTempUsageDetail_20' ) start [2025-04-24 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979181', 'tblTempUsageDetail_20' ) end [2025-04-24 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:04:25] Production.INFO: ==30352== Releasing lock... [2025-04-24 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:04:25] Production.INFO: 57 MB #Memory Used# [2025-04-24 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:05:05 [end_date_ymd] => 2025-04-24 11:05:05 [RateCDR] => 1 ) [2025-04-24 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:05:05' and `end` < '2025-04-24 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:05:18] Production.INFO: count ==3893 [2025-04-24 11:05:19] Production.ERROR: pbx CDR StartTime 2025-04-24 08:05:05 - End Time 2025-04-24 11:05:05 [2025-04-24 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979186', 'tblTempUsageDetail_20' ) start [2025-04-24 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979186', 'tblTempUsageDetail_20' ) end [2025-04-24 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979186', 'tblTempVendorCDR_20' ) start [2025-04-24 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979186', 'tblTempVendorCDR_20' ) end [2025-04-24 11:05:20] Production.INFO: ProcessCDR(1,14979186,1,1,2) [2025-04-24 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979186', 'tblTempUsageDetail_20' ) start [2025-04-24 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979186', 'tblTempUsageDetail_20' ) end [2025-04-24 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:05:25] Production.INFO: ==30503== Releasing lock... [2025-04-24 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:05:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-24 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:06:05 [end_date_ymd] => 2025-04-24 11:06:05 [RateCDR] => 1 ) [2025-04-24 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:06:05' and `end` < '2025-04-24 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:06:19] Production.INFO: count ==3894 [2025-04-24 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:06:05 - End Time 2025-04-24 11:06:05 [2025-04-24 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979191', 'tblTempUsageDetail_20' ) start [2025-04-24 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979191', 'tblTempUsageDetail_20' ) end [2025-04-24 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979191', 'tblTempVendorCDR_20' ) start [2025-04-24 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979191', 'tblTempVendorCDR_20' ) end [2025-04-24 11:06:20] Production.INFO: ProcessCDR(1,14979191,1,1,2) [2025-04-24 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979191', 'tblTempUsageDetail_20' ) start [2025-04-24 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979191', 'tblTempUsageDetail_20' ) end [2025-04-24 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:06:25] Production.INFO: ==30576== Releasing lock... [2025-04-24 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:06:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-24 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:07:04 [end_date_ymd] => 2025-04-24 11:07:04 [RateCDR] => 1 ) [2025-04-24 11:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:07:04' and `end` < '2025-04-24 11:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:07:18] Production.INFO: count ==3935 [2025-04-24 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:07:04 - End Time 2025-04-24 11:07:04 [2025-04-24 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979196', 'tblTempUsageDetail_20' ) start [2025-04-24 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979196', 'tblTempUsageDetail_20' ) end [2025-04-24 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979196', 'tblTempVendorCDR_20' ) start [2025-04-24 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979196', 'tblTempVendorCDR_20' ) end [2025-04-24 11:07:20] Production.INFO: ProcessCDR(1,14979196,1,1,2) [2025-04-24 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979196', 'tblTempUsageDetail_20' ) start [2025-04-24 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979196', 'tblTempUsageDetail_20' ) end [2025-04-24 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:07:25] Production.INFO: ==30653== Releasing lock... [2025-04-24 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:07:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-24 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:08:05 [end_date_ymd] => 2025-04-24 11:08:05 [RateCDR] => 1 ) [2025-04-24 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:08:05' and `end` < '2025-04-24 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:08:19] Production.INFO: count ==3948 [2025-04-24 11:08:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:08:05 - End Time 2025-04-24 11:08:05 [2025-04-24 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979201', 'tblTempUsageDetail_20' ) start [2025-04-24 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979201', 'tblTempUsageDetail_20' ) end [2025-04-24 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979201', 'tblTempVendorCDR_20' ) start [2025-04-24 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979201', 'tblTempVendorCDR_20' ) end [2025-04-24 11:08:20] Production.INFO: ProcessCDR(1,14979201,1,1,2) [2025-04-24 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979201', 'tblTempUsageDetail_20' ) start [2025-04-24 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979201', 'tblTempUsageDetail_20' ) end [2025-04-24 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:08:25] Production.INFO: ==30804== Releasing lock... [2025-04-24 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:08:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-24 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:09:05 [end_date_ymd] => 2025-04-24 11:09:05 [RateCDR] => 1 ) [2025-04-24 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:09:05' and `end` < '2025-04-24 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:09:18] Production.INFO: count ==3963 [2025-04-24 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:09:05 - End Time 2025-04-24 11:09:05 [2025-04-24 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979206', 'tblTempUsageDetail_20' ) start [2025-04-24 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979206', 'tblTempUsageDetail_20' ) end [2025-04-24 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979206', 'tblTempVendorCDR_20' ) start [2025-04-24 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979206', 'tblTempVendorCDR_20' ) end [2025-04-24 11:09:20] Production.INFO: ProcessCDR(1,14979206,1,1,2) [2025-04-24 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979206', 'tblTempUsageDetail_20' ) start [2025-04-24 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979206', 'tblTempUsageDetail_20' ) end [2025-04-24 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:09:25] Production.INFO: ==30879== Releasing lock... [2025-04-24 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:09:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-24 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:10:06 [end_date_ymd] => 2025-04-24 11:10:06 [RateCDR] => 1 ) [2025-04-24 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:10:06' and `end` < '2025-04-24 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:10:19] Production.INFO: count ==3974 [2025-04-24 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:10:06 - End Time 2025-04-24 11:10:06 [2025-04-24 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979212', 'tblTempUsageDetail_20' ) start [2025-04-24 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979212', 'tblTempUsageDetail_20' ) end [2025-04-24 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979212', 'tblTempVendorCDR_20' ) start [2025-04-24 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979212', 'tblTempVendorCDR_20' ) end [2025-04-24 11:10:21] Production.INFO: ProcessCDR(1,14979212,1,1,2) [2025-04-24 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979212', 'tblTempUsageDetail_20' ) start [2025-04-24 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979212', 'tblTempUsageDetail_20' ) end [2025-04-24 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:10:26] Production.INFO: ==30954== Releasing lock... [2025-04-24 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:10:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-24 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:11:04 [end_date_ymd] => 2025-04-24 11:11:04 [RateCDR] => 1 ) [2025-04-24 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:11:04' and `end` < '2025-04-24 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:11:18] Production.INFO: count ==4093 [2025-04-24 11:11:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:11:04 - End Time 2025-04-24 11:11:04 [2025-04-24 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979217', 'tblTempUsageDetail_20' ) start [2025-04-24 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979217', 'tblTempUsageDetail_20' ) end [2025-04-24 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979217', 'tblTempVendorCDR_20' ) start [2025-04-24 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979217', 'tblTempVendorCDR_20' ) end [2025-04-24 11:11:20] Production.INFO: ProcessCDR(1,14979217,1,1,2) [2025-04-24 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979217', 'tblTempUsageDetail_20' ) start [2025-04-24 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979217', 'tblTempUsageDetail_20' ) end [2025-04-24 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:11:25] Production.INFO: ==31036== Releasing lock... [2025-04-24 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:11:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-24 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:12:05 [end_date_ymd] => 2025-04-24 11:12:05 [RateCDR] => 1 ) [2025-04-24 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:12:05' and `end` < '2025-04-24 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:12:19] Production.INFO: count ==4133 [2025-04-24 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:12:05 - End Time 2025-04-24 11:12:05 [2025-04-24 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979222', 'tblTempUsageDetail_20' ) start [2025-04-24 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979222', 'tblTempUsageDetail_20' ) end [2025-04-24 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979222', 'tblTempVendorCDR_20' ) start [2025-04-24 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979222', 'tblTempVendorCDR_20' ) end [2025-04-24 11:12:21] Production.INFO: ProcessCDR(1,14979222,1,1,2) [2025-04-24 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979222', 'tblTempUsageDetail_20' ) start [2025-04-24 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979222', 'tblTempUsageDetail_20' ) end [2025-04-24 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:12:26] Production.INFO: ==31192== Releasing lock... [2025-04-24 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:12:26] Production.INFO: 59 MB #Memory Used# [2025-04-24 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:13:06 [end_date_ymd] => 2025-04-24 11:13:06 [RateCDR] => 1 ) [2025-04-24 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:13:06' and `end` < '2025-04-24 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:13:19] Production.INFO: count ==4147 [2025-04-24 11:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:13:06 - End Time 2025-04-24 11:13:06 [2025-04-24 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979227', 'tblTempUsageDetail_20' ) start [2025-04-24 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979227', 'tblTempUsageDetail_20' ) end [2025-04-24 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979227', 'tblTempVendorCDR_20' ) start [2025-04-24 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979227', 'tblTempVendorCDR_20' ) end [2025-04-24 11:13:21] Production.INFO: ProcessCDR(1,14979227,1,1,2) [2025-04-24 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979227', 'tblTempUsageDetail_20' ) start [2025-04-24 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979227', 'tblTempUsageDetail_20' ) end [2025-04-24 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:13:27] Production.INFO: ==31269== Releasing lock... [2025-04-24 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:13:27] Production.INFO: 59 MB #Memory Used# [2025-04-24 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:14:05 [end_date_ymd] => 2025-04-24 11:14:05 [RateCDR] => 1 ) [2025-04-24 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:14:05' and `end` < '2025-04-24 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:14:19] Production.INFO: count ==4167 [2025-04-24 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:14:05 - End Time 2025-04-24 11:14:05 [2025-04-24 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979232', 'tblTempUsageDetail_20' ) start [2025-04-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979232', 'tblTempUsageDetail_20' ) end [2025-04-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979232', 'tblTempVendorCDR_20' ) start [2025-04-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979232', 'tblTempVendorCDR_20' ) end [2025-04-24 11:14:21] Production.INFO: ProcessCDR(1,14979232,1,1,2) [2025-04-24 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979232', 'tblTempUsageDetail_20' ) start [2025-04-24 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979232', 'tblTempUsageDetail_20' ) end [2025-04-24 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:14:26] Production.INFO: ==31350== Releasing lock... [2025-04-24 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:14:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-24 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:15:05 [end_date_ymd] => 2025-04-24 11:15:05 [RateCDR] => 1 ) [2025-04-24 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:15:05' and `end` < '2025-04-24 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:15:18] Production.INFO: count ==4174 [2025-04-24 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:15:05 - End Time 2025-04-24 11:15:05 [2025-04-24 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979237', 'tblTempUsageDetail_20' ) start [2025-04-24 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979237', 'tblTempUsageDetail_20' ) end [2025-04-24 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979237', 'tblTempVendorCDR_20' ) start [2025-04-24 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979237', 'tblTempVendorCDR_20' ) end [2025-04-24 11:15:20] Production.INFO: ProcessCDR(1,14979237,1,1,2) [2025-04-24 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979237', 'tblTempUsageDetail_20' ) start [2025-04-24 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979237', 'tblTempUsageDetail_20' ) end [2025-04-24 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:15:25] Production.INFO: ==31504== Releasing lock... [2025-04-24 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:15:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-24 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:16:05 [end_date_ymd] => 2025-04-24 11:16:05 [RateCDR] => 1 ) [2025-04-24 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:16:05' and `end` < '2025-04-24 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:16:19] Production.INFO: count ==4190 [2025-04-24 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:16:05 - End Time 2025-04-24 11:16:05 [2025-04-24 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979242', 'tblTempUsageDetail_20' ) start [2025-04-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979242', 'tblTempUsageDetail_20' ) end [2025-04-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979242', 'tblTempVendorCDR_20' ) start [2025-04-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979242', 'tblTempVendorCDR_20' ) end [2025-04-24 11:16:21] Production.INFO: ProcessCDR(1,14979242,1,1,2) [2025-04-24 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979242', 'tblTempUsageDetail_20' ) start [2025-04-24 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979242', 'tblTempUsageDetail_20' ) end [2025-04-24 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:16:26] Production.INFO: ==31581== Releasing lock... [2025-04-24 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:16:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-24 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:17:05 [end_date_ymd] => 2025-04-24 11:17:05 [RateCDR] => 1 ) [2025-04-24 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:17:05' and `end` < '2025-04-24 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:17:19] Production.INFO: count ==4218 [2025-04-24 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:17:05 - End Time 2025-04-24 11:17:05 [2025-04-24 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979247', 'tblTempUsageDetail_20' ) start [2025-04-24 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979247', 'tblTempUsageDetail_20' ) end [2025-04-24 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979247', 'tblTempVendorCDR_20' ) start [2025-04-24 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979247', 'tblTempVendorCDR_20' ) end [2025-04-24 11:17:21] Production.INFO: ProcessCDR(1,14979247,1,1,2) [2025-04-24 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979247', 'tblTempUsageDetail_20' ) start [2025-04-24 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979247', 'tblTempUsageDetail_20' ) end [2025-04-24 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:17:26] Production.INFO: ==31652== Releasing lock... [2025-04-24 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:17:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-24 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:18:05 [end_date_ymd] => 2025-04-24 11:18:05 [RateCDR] => 1 ) [2025-04-24 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:18:05' and `end` < '2025-04-24 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:18:19] Production.INFO: count ==4232 [2025-04-24 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:18:05 - End Time 2025-04-24 11:18:05 [2025-04-24 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979252', 'tblTempUsageDetail_20' ) start [2025-04-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979252', 'tblTempUsageDetail_20' ) end [2025-04-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979252', 'tblTempVendorCDR_20' ) start [2025-04-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979252', 'tblTempVendorCDR_20' ) end [2025-04-24 11:18:21] Production.INFO: ProcessCDR(1,14979252,1,1,2) [2025-04-24 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979252', 'tblTempUsageDetail_20' ) start [2025-04-24 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979252', 'tblTempUsageDetail_20' ) end [2025-04-24 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:18:26] Production.INFO: ==31731== Releasing lock... [2025-04-24 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:18:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-24 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:19:05 [end_date_ymd] => 2025-04-24 11:19:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 08:19:05' and `end` < '2025-04-24 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-04-24 11:19:19] Production.INFO: count ==4244 [2025-04-24 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:19:05 - End Time 2025-04-24 11:19:05 [2025-04-24 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979257', 'tblTempUsageDetail_20' ) start [2025-04-24 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979257', 'tblTempUsageDetail_20' ) end [2025-04-24 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979257', 'tblTempVendorCDR_20' ) start [2025-04-24 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979257', 'tblTempVendorCDR_20' ) end [2025-04-24 11:19:21] Production.INFO: ProcessCDR(1,14979257,1,1,2) [2025-04-24 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979257', 'tblTempUsageDetail_20' ) start [2025-04-24 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979257', 'tblTempUsageDetail_20' ) end [2025-04-24 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:19:26] Production.INFO: ==31840== Releasing lock... [2025-04-24 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:19:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-24 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:20:06 [end_date_ymd] => 2025-04-24 11:20:06 [RateCDR] => 1 ) [2025-04-24 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:20:06' and `end` < '2025-04-24 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:20:20] Production.INFO: count ==4251 [2025-04-24 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:20:06 - End Time 2025-04-24 11:20:06 [2025-04-24 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979262', 'tblTempUsageDetail_20' ) start [2025-04-24 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979262', 'tblTempUsageDetail_20' ) end [2025-04-24 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979262', 'tblTempVendorCDR_20' ) start [2025-04-24 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979262', 'tblTempVendorCDR_20' ) end [2025-04-24 11:20:21] Production.INFO: ProcessCDR(1,14979262,1,1,2) [2025-04-24 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979262', 'tblTempUsageDetail_20' ) start [2025-04-24 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979262', 'tblTempUsageDetail_20' ) end [2025-04-24 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:20:26] Production.INFO: ==31917== Releasing lock... [2025-04-24 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:20:26] Production.INFO: 60 MB #Memory Used# [2025-04-24 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:21:05 [end_date_ymd] => 2025-04-24 11:21:05 [RateCDR] => 1 ) [2025-04-24 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:21:05' and `end` < '2025-04-24 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:21:19] Production.INFO: count ==4342 [2025-04-24 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:21:05 - End Time 2025-04-24 11:21:05 [2025-04-24 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979268', 'tblTempUsageDetail_20' ) start [2025-04-24 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979268', 'tblTempUsageDetail_20' ) end [2025-04-24 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979268', 'tblTempVendorCDR_20' ) start [2025-04-24 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979268', 'tblTempVendorCDR_20' ) end [2025-04-24 11:21:21] Production.INFO: ProcessCDR(1,14979268,1,1,2) [2025-04-24 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979268', 'tblTempUsageDetail_20' ) start [2025-04-24 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979268', 'tblTempUsageDetail_20' ) end [2025-04-24 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:21:26] Production.INFO: ==31993== Releasing lock... [2025-04-24 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:21:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-24 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:22:05 [end_date_ymd] => 2025-04-24 11:22:05 [RateCDR] => 1 ) [2025-04-24 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:22:05' and `end` < '2025-04-24 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:22:19] Production.INFO: count ==4353 [2025-04-24 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:22:05 - End Time 2025-04-24 11:22:05 [2025-04-24 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979273', 'tblTempUsageDetail_20' ) start [2025-04-24 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979273', 'tblTempUsageDetail_20' ) end [2025-04-24 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979273', 'tblTempVendorCDR_20' ) start [2025-04-24 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979273', 'tblTempVendorCDR_20' ) end [2025-04-24 11:22:20] Production.INFO: ProcessCDR(1,14979273,1,1,2) [2025-04-24 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979273', 'tblTempUsageDetail_20' ) start [2025-04-24 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979273', 'tblTempUsageDetail_20' ) end [2025-04-24 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:22:25] Production.INFO: ==32066== Releasing lock... [2025-04-24 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:22:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:23:05 [end_date_ymd] => 2025-04-24 11:23:05 [RateCDR] => 1 ) [2025-04-24 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:23:05' and `end` < '2025-04-24 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:23:18] Production.INFO: count ==4363 [2025-04-24 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:23:05 - End Time 2025-04-24 11:23:05 [2025-04-24 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979278', 'tblTempUsageDetail_20' ) start [2025-04-24 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979278', 'tblTempUsageDetail_20' ) end [2025-04-24 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979278', 'tblTempVendorCDR_20' ) start [2025-04-24 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979278', 'tblTempVendorCDR_20' ) end [2025-04-24 11:23:20] Production.INFO: ProcessCDR(1,14979278,1,1,2) [2025-04-24 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979278', 'tblTempUsageDetail_20' ) start [2025-04-24 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979278', 'tblTempUsageDetail_20' ) end [2025-04-24 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:23:26] Production.INFO: ==32144== Releasing lock... [2025-04-24 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:23:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:24:06 [end_date_ymd] => 2025-04-24 11:24:06 [RateCDR] => 1 ) [2025-04-24 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:24:06' and `end` < '2025-04-24 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:24:19] Production.INFO: count ==4394 [2025-04-24 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:24:06 - End Time 2025-04-24 11:24:06 [2025-04-24 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979283', 'tblTempUsageDetail_20' ) start [2025-04-24 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979283', 'tblTempUsageDetail_20' ) end [2025-04-24 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979283', 'tblTempVendorCDR_20' ) start [2025-04-24 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979283', 'tblTempVendorCDR_20' ) end [2025-04-24 11:24:21] Production.INFO: ProcessCDR(1,14979283,1,1,2) [2025-04-24 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979283', 'tblTempUsageDetail_20' ) start [2025-04-24 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979283', 'tblTempUsageDetail_20' ) end [2025-04-24 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:24:26] Production.INFO: ==32219== Releasing lock... [2025-04-24 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:24:26] Production.INFO: 61 MB #Memory Used# [2025-04-24 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:25:05 [end_date_ymd] => 2025-04-24 11:25:05 [RateCDR] => 1 ) [2025-04-24 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:25:05' and `end` < '2025-04-24 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:25:18] Production.INFO: count ==4410 [2025-04-24 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:25:05 - End Time 2025-04-24 11:25:05 [2025-04-24 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979288', 'tblTempUsageDetail_20' ) start [2025-04-24 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979288', 'tblTempUsageDetail_20' ) end [2025-04-24 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979288', 'tblTempVendorCDR_20' ) start [2025-04-24 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979288', 'tblTempVendorCDR_20' ) end [2025-04-24 11:25:21] Production.INFO: ProcessCDR(1,14979288,1,1,2) [2025-04-24 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979288', 'tblTempUsageDetail_20' ) start [2025-04-24 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979288', 'tblTempUsageDetail_20' ) end [2025-04-24 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:25:26] Production.INFO: ==32293== Releasing lock... [2025-04-24 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:25:26] Production.INFO: 61 MB #Memory Used# [2025-04-24 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:26:05 [end_date_ymd] => 2025-04-24 11:26:05 [RateCDR] => 1 ) [2025-04-24 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:26:05' and `end` < '2025-04-24 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:26:19] Production.INFO: count ==4435 [2025-04-24 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:26:05 - End Time 2025-04-24 11:26:05 [2025-04-24 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979293', 'tblTempUsageDetail_20' ) start [2025-04-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979293', 'tblTempUsageDetail_20' ) end [2025-04-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979293', 'tblTempVendorCDR_20' ) start [2025-04-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979293', 'tblTempVendorCDR_20' ) end [2025-04-24 11:26:21] Production.INFO: ProcessCDR(1,14979293,1,1,2) [2025-04-24 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979293', 'tblTempUsageDetail_20' ) start [2025-04-24 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979293', 'tblTempUsageDetail_20' ) end [2025-04-24 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:26:26] Production.INFO: ==32369== Releasing lock... [2025-04-24 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:26:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-24 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:27:05 [end_date_ymd] => 2025-04-24 11:27:05 [RateCDR] => 1 ) [2025-04-24 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:27:05' and `end` < '2025-04-24 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:27:19] Production.INFO: count ==4449 [2025-04-24 11:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:27:05 - End Time 2025-04-24 11:27:05 [2025-04-24 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979298', 'tblTempUsageDetail_20' ) start [2025-04-24 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979298', 'tblTempUsageDetail_20' ) end [2025-04-24 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979298', 'tblTempVendorCDR_20' ) start [2025-04-24 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979298', 'tblTempVendorCDR_20' ) end [2025-04-24 11:27:21] Production.INFO: ProcessCDR(1,14979298,1,1,2) [2025-04-24 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979298', 'tblTempUsageDetail_20' ) start [2025-04-24 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979298', 'tblTempUsageDetail_20' ) end [2025-04-24 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:27:26] Production.INFO: ==32446== Releasing lock... [2025-04-24 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:27:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-24 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:28:06 [end_date_ymd] => 2025-04-24 11:28:06 [RateCDR] => 1 ) [2025-04-24 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:28:06' and `end` < '2025-04-24 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:28:19] Production.INFO: count ==4510 [2025-04-24 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:28:06 - End Time 2025-04-24 11:28:06 [2025-04-24 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979303', 'tblTempUsageDetail_20' ) start [2025-04-24 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979303', 'tblTempUsageDetail_20' ) end [2025-04-24 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979303', 'tblTempVendorCDR_20' ) start [2025-04-24 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979303', 'tblTempVendorCDR_20' ) end [2025-04-24 11:28:21] Production.INFO: ProcessCDR(1,14979303,1,1,2) [2025-04-24 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979303', 'tblTempUsageDetail_20' ) start [2025-04-24 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979303', 'tblTempUsageDetail_20' ) end [2025-04-24 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:28:26] Production.INFO: ==32522== Releasing lock... [2025-04-24 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:28:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-24 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:29:05 [end_date_ymd] => 2025-04-24 11:29:05 [RateCDR] => 1 ) [2025-04-24 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:29:05' and `end` < '2025-04-24 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:29:18] Production.INFO: count ==4528 [2025-04-24 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:29:05 - End Time 2025-04-24 11:29:05 [2025-04-24 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979308', 'tblTempUsageDetail_20' ) start [2025-04-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979308', 'tblTempUsageDetail_20' ) end [2025-04-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979308', 'tblTempVendorCDR_20' ) start [2025-04-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979308', 'tblTempVendorCDR_20' ) end [2025-04-24 11:29:20] Production.INFO: ProcessCDR(1,14979308,1,1,2) [2025-04-24 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979308', 'tblTempUsageDetail_20' ) start [2025-04-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979308', 'tblTempUsageDetail_20' ) end [2025-04-24 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:29:25] Production.INFO: ==32594== Releasing lock... [2025-04-24 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:29:25] Production.INFO: 62 MB #Memory Used# [2025-04-24 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:30:05 [end_date_ymd] => 2025-04-24 11:30:05 [RateCDR] => 1 ) [2025-04-24 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:30:05' and `end` < '2025-04-24 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:30:19] Production.INFO: count ==4528 [2025-04-24 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:30:05 - End Time 2025-04-24 11:30:05 [2025-04-24 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979313', 'tblTempUsageDetail_20' ) start [2025-04-24 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979313', 'tblTempUsageDetail_20' ) end [2025-04-24 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979313', 'tblTempVendorCDR_20' ) start [2025-04-24 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979313', 'tblTempVendorCDR_20' ) end [2025-04-24 11:30:22] Production.INFO: ProcessCDR(1,14979313,1,1,2) [2025-04-24 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979313', 'tblTempUsageDetail_20' ) start [2025-04-24 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979313', 'tblTempUsageDetail_20' ) end [2025-04-24 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:30:26] Production.INFO: ==32668== Releasing lock... [2025-04-24 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:30:26] Production.INFO: 62 MB #Memory Used# [2025-04-24 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:31:05 [end_date_ymd] => 2025-04-24 11:31:05 [RateCDR] => 1 ) [2025-04-24 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:31:05' and `end` < '2025-04-24 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:31:18] Production.INFO: count ==4637 [2025-04-24 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:31:05 - End Time 2025-04-24 11:31:05 [2025-04-24 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979319', 'tblTempUsageDetail_20' ) start [2025-04-24 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979319', 'tblTempUsageDetail_20' ) end [2025-04-24 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979319', 'tblTempVendorCDR_20' ) start [2025-04-24 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979319', 'tblTempVendorCDR_20' ) end [2025-04-24 11:31:20] Production.INFO: ProcessCDR(1,14979319,1,1,2) [2025-04-24 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979319', 'tblTempUsageDetail_20' ) start [2025-04-24 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979319', 'tblTempUsageDetail_20' ) end [2025-04-24 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:31:25] Production.INFO: ==32743== Releasing lock... [2025-04-24 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:31:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-24 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:32:05 [end_date_ymd] => 2025-04-24 11:32:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 08:32:05' and `end` < '2025-04-24 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-04-24 11:32:19] Production.INFO: count ==4650 [2025-04-24 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:32:05 - End Time 2025-04-24 11:32:05 [2025-04-24 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979324', 'tblTempUsageDetail_20' ) start [2025-04-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979324', 'tblTempUsageDetail_20' ) end [2025-04-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979324', 'tblTempVendorCDR_20' ) start [2025-04-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979324', 'tblTempVendorCDR_20' ) end [2025-04-24 11:32:22] Production.INFO: ProcessCDR(1,14979324,1,1,2) [2025-04-24 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979324', 'tblTempUsageDetail_20' ) start [2025-04-24 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979324', 'tblTempUsageDetail_20' ) end [2025-04-24 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:32:27] Production.INFO: ==373== Releasing lock... [2025-04-24 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:32:27] Production.INFO: 63 MB #Memory Used# [2025-04-24 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:33:06 [end_date_ymd] => 2025-04-24 11:33:06 [RateCDR] => 1 ) [2025-04-24 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:33:06' and `end` < '2025-04-24 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:33:19] Production.INFO: count ==4685 [2025-04-24 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:33:06 - End Time 2025-04-24 11:33:06 [2025-04-24 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979329', 'tblTempUsageDetail_20' ) start [2025-04-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979329', 'tblTempUsageDetail_20' ) end [2025-04-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979329', 'tblTempVendorCDR_20' ) start [2025-04-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979329', 'tblTempVendorCDR_20' ) end [2025-04-24 11:33:22] Production.INFO: ProcessCDR(1,14979329,1,1,2) [2025-04-24 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979329', 'tblTempUsageDetail_20' ) start [2025-04-24 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979329', 'tblTempUsageDetail_20' ) end [2025-04-24 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:33:27] Production.INFO: ==447== Releasing lock... [2025-04-24 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:33:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-24 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:34:05 [end_date_ymd] => 2025-04-24 11:34:05 [RateCDR] => 1 ) [2025-04-24 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:34:05' and `end` < '2025-04-24 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:34:19] Production.INFO: count ==4697 [2025-04-24 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:34:05 - End Time 2025-04-24 11:34:05 [2025-04-24 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979334', 'tblTempUsageDetail_20' ) start [2025-04-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979334', 'tblTempUsageDetail_20' ) end [2025-04-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979334', 'tblTempVendorCDR_20' ) start [2025-04-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979334', 'tblTempVendorCDR_20' ) end [2025-04-24 11:34:22] Production.INFO: ProcessCDR(1,14979334,1,1,2) [2025-04-24 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979334', 'tblTempUsageDetail_20' ) start [2025-04-24 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979334', 'tblTempUsageDetail_20' ) end [2025-04-24 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:34:26] Production.INFO: ==564== Releasing lock... [2025-04-24 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-24 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:35:05 [end_date_ymd] => 2025-04-24 11:35:05 [RateCDR] => 1 ) [2025-04-24 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:35:05' and `end` < '2025-04-24 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:35:20] Production.INFO: count ==4717 [2025-04-24 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:35:05 - End Time 2025-04-24 11:35:05 [2025-04-24 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979339', 'tblTempUsageDetail_20' ) start [2025-04-24 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979339', 'tblTempUsageDetail_20' ) end [2025-04-24 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979339', 'tblTempVendorCDR_20' ) start [2025-04-24 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979339', 'tblTempVendorCDR_20' ) end [2025-04-24 11:35:22] Production.INFO: ProcessCDR(1,14979339,1,1,2) [2025-04-24 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979339', 'tblTempUsageDetail_20' ) start [2025-04-24 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979339', 'tblTempUsageDetail_20' ) end [2025-04-24 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:35:28] Production.INFO: ==644== Releasing lock... [2025-04-24 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:35:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-24 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:36:05 [end_date_ymd] => 2025-04-24 11:36:05 [RateCDR] => 1 ) [2025-04-24 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:36:05' and `end` < '2025-04-24 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:36:20] Production.INFO: count ==4740 [2025-04-24 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:36:05 - End Time 2025-04-24 11:36:05 [2025-04-24 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979344', 'tblTempUsageDetail_20' ) start [2025-04-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979344', 'tblTempUsageDetail_20' ) end [2025-04-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979344', 'tblTempVendorCDR_20' ) start [2025-04-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979344', 'tblTempVendorCDR_20' ) end [2025-04-24 11:36:22] Production.INFO: ProcessCDR(1,14979344,1,1,2) [2025-04-24 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979344', 'tblTempUsageDetail_20' ) start [2025-04-24 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979344', 'tblTempUsageDetail_20' ) end [2025-04-24 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:36:27] Production.INFO: ==740== Releasing lock... [2025-04-24 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:36:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-24 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:37:06 [end_date_ymd] => 2025-04-24 11:37:06 [RateCDR] => 1 ) [2025-04-24 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:37:06' and `end` < '2025-04-24 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:37:19] Production.INFO: count ==4773 [2025-04-24 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:37:06 - End Time 2025-04-24 11:37:06 [2025-04-24 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979349', 'tblTempUsageDetail_20' ) start [2025-04-24 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979349', 'tblTempUsageDetail_20' ) end [2025-04-24 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979349', 'tblTempVendorCDR_20' ) start [2025-04-24 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979349', 'tblTempVendorCDR_20' ) end [2025-04-24 11:37:22] Production.INFO: ProcessCDR(1,14979349,1,1,2) [2025-04-24 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979349', 'tblTempUsageDetail_20' ) start [2025-04-24 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979349', 'tblTempUsageDetail_20' ) end [2025-04-24 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:37:26] Production.INFO: ==831== Releasing lock... [2025-04-24 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:37:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-24 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:38:05 [end_date_ymd] => 2025-04-24 11:38:05 [RateCDR] => 1 ) [2025-04-24 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:38:05' and `end` < '2025-04-24 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:38:18] Production.INFO: count ==4790 [2025-04-24 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:38:05 - End Time 2025-04-24 11:38:05 [2025-04-24 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979354', 'tblTempUsageDetail_20' ) start [2025-04-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979354', 'tblTempUsageDetail_20' ) end [2025-04-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979354', 'tblTempVendorCDR_20' ) start [2025-04-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979354', 'tblTempVendorCDR_20' ) end [2025-04-24 11:38:21] Production.INFO: ProcessCDR(1,14979354,1,1,2) [2025-04-24 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979354', 'tblTempUsageDetail_20' ) start [2025-04-24 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979354', 'tblTempUsageDetail_20' ) end [2025-04-24 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:38:26] Production.INFO: ==910== Releasing lock... [2025-04-24 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:38:26] Production.INFO: 64 MB #Memory Used# [2025-04-24 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:39:05 [end_date_ymd] => 2025-04-24 11:39:05 [RateCDR] => 1 ) [2025-04-24 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:39:05' and `end` < '2025-04-24 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:39:20] Production.INFO: count ==4797 [2025-04-24 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:39:05 - End Time 2025-04-24 11:39:05 [2025-04-24 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979359', 'tblTempUsageDetail_20' ) start [2025-04-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979359', 'tblTempUsageDetail_20' ) end [2025-04-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979359', 'tblTempVendorCDR_20' ) start [2025-04-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979359', 'tblTempVendorCDR_20' ) end [2025-04-24 11:39:22] Production.INFO: ProcessCDR(1,14979359,1,1,2) [2025-04-24 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979359', 'tblTempUsageDetail_20' ) start [2025-04-24 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979359', 'tblTempUsageDetail_20' ) end [2025-04-24 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:39:26] Production.INFO: ==989== Releasing lock... [2025-04-24 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:39:26] Production.INFO: 64 MB #Memory Used# [2025-04-24 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:40:06 [end_date_ymd] => 2025-04-24 11:40:06 [RateCDR] => 1 ) [2025-04-24 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:40:06' and `end` < '2025-04-24 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:40:19] Production.INFO: count ==4803 [2025-04-24 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:40:06 - End Time 2025-04-24 11:40:06 [2025-04-24 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979365', 'tblTempUsageDetail_20' ) start [2025-04-24 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979365', 'tblTempUsageDetail_20' ) end [2025-04-24 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979365', 'tblTempVendorCDR_20' ) start [2025-04-24 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979365', 'tblTempVendorCDR_20' ) end [2025-04-24 11:40:22] Production.INFO: ProcessCDR(1,14979365,1,1,2) [2025-04-24 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979365', 'tblTempUsageDetail_20' ) start [2025-04-24 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979365', 'tblTempUsageDetail_20' ) end [2025-04-24 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:40:26] Production.INFO: ==1064== Releasing lock... [2025-04-24 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:40:26] Production.INFO: 64 MB #Memory Used# [2025-04-24 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:41:05 [end_date_ymd] => 2025-04-24 11:41:05 [RateCDR] => 1 ) [2025-04-24 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:41:05' and `end` < '2025-04-24 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:41:18] Production.INFO: count ==4851 [2025-04-24 11:41:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:41:05 - End Time 2025-04-24 11:41:05 [2025-04-24 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979370', 'tblTempUsageDetail_20' ) start [2025-04-24 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979370', 'tblTempUsageDetail_20' ) end [2025-04-24 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979370', 'tblTempVendorCDR_20' ) start [2025-04-24 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979370', 'tblTempVendorCDR_20' ) end [2025-04-24 11:41:20] Production.INFO: ProcessCDR(1,14979370,1,1,2) [2025-04-24 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979370', 'tblTempUsageDetail_20' ) start [2025-04-24 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979370', 'tblTempUsageDetail_20' ) end [2025-04-24 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:41:26] Production.INFO: ==1145== Releasing lock... [2025-04-24 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:41:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-24 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:42:06 [end_date_ymd] => 2025-04-24 11:42:06 [RateCDR] => 1 ) [2025-04-24 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:42:06' and `end` < '2025-04-24 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:42:19] Production.INFO: count ==4854 [2025-04-24 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:42:06 - End Time 2025-04-24 11:42:06 [2025-04-24 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979375', 'tblTempUsageDetail_20' ) start [2025-04-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979375', 'tblTempUsageDetail_20' ) end [2025-04-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979375', 'tblTempVendorCDR_20' ) start [2025-04-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979375', 'tblTempVendorCDR_20' ) end [2025-04-24 11:42:22] Production.INFO: ProcessCDR(1,14979375,1,1,2) [2025-04-24 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979375', 'tblTempUsageDetail_20' ) start [2025-04-24 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979375', 'tblTempUsageDetail_20' ) end [2025-04-24 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:42:27] Production.INFO: ==1220== Releasing lock... [2025-04-24 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:42:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-24 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:43:05 [end_date_ymd] => 2025-04-24 11:43:05 [RateCDR] => 1 ) [2025-04-24 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:43:05' and `end` < '2025-04-24 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:43:19] Production.INFO: count ==4862 [2025-04-24 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:43:05 - End Time 2025-04-24 11:43:05 [2025-04-24 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979380', 'tblTempUsageDetail_20' ) start [2025-04-24 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979380', 'tblTempUsageDetail_20' ) end [2025-04-24 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979380', 'tblTempVendorCDR_20' ) start [2025-04-24 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979380', 'tblTempVendorCDR_20' ) end [2025-04-24 11:43:21] Production.INFO: ProcessCDR(1,14979380,1,1,2) [2025-04-24 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979380', 'tblTempUsageDetail_20' ) start [2025-04-24 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979380', 'tblTempUsageDetail_20' ) end [2025-04-24 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:43:26] Production.INFO: ==1305== Releasing lock... [2025-04-24 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:43:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-24 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:44:05 [end_date_ymd] => 2025-04-24 11:44:05 [RateCDR] => 1 ) [2025-04-24 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:44:05' and `end` < '2025-04-24 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:44:19] Production.INFO: count ==4881 [2025-04-24 11:44:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:44:05 - End Time 2025-04-24 11:44:05 [2025-04-24 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979385', 'tblTempUsageDetail_20' ) start [2025-04-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979385', 'tblTempUsageDetail_20' ) end [2025-04-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979385', 'tblTempVendorCDR_20' ) start [2025-04-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979385', 'tblTempVendorCDR_20' ) end [2025-04-24 11:44:21] Production.INFO: ProcessCDR(1,14979385,1,1,2) [2025-04-24 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979385', 'tblTempUsageDetail_20' ) start [2025-04-24 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979385', 'tblTempUsageDetail_20' ) end [2025-04-24 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:44:26] Production.INFO: ==1384== Releasing lock... [2025-04-24 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:44:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-24 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:45:04 [end_date_ymd] => 2025-04-24 11:45:04 [RateCDR] => 1 ) [2025-04-24 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:45:04' and `end` < '2025-04-24 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:45:18] Production.INFO: count ==4900 [2025-04-24 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:45:04 - End Time 2025-04-24 11:45:04 [2025-04-24 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979390', 'tblTempUsageDetail_20' ) start [2025-04-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979390', 'tblTempUsageDetail_20' ) end [2025-04-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979390', 'tblTempVendorCDR_20' ) start [2025-04-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979390', 'tblTempVendorCDR_20' ) end [2025-04-24 11:45:21] Production.INFO: ProcessCDR(1,14979390,1,1,2) [2025-04-24 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979390', 'tblTempUsageDetail_20' ) start [2025-04-24 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979390', 'tblTempUsageDetail_20' ) end [2025-04-24 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:45:25] Production.INFO: ==1453== Releasing lock... [2025-04-24 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:45:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-24 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:46:05 [end_date_ymd] => 2025-04-24 11:46:05 [RateCDR] => 1 ) [2025-04-24 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:46:05' and `end` < '2025-04-24 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:46:19] Production.INFO: count ==4910 [2025-04-24 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:46:05 - End Time 2025-04-24 11:46:05 [2025-04-24 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979395', 'tblTempUsageDetail_20' ) start [2025-04-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979395', 'tblTempUsageDetail_20' ) end [2025-04-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979395', 'tblTempVendorCDR_20' ) start [2025-04-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979395', 'tblTempVendorCDR_20' ) end [2025-04-24 11:46:21] Production.INFO: ProcessCDR(1,14979395,1,1,2) [2025-04-24 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979395', 'tblTempUsageDetail_20' ) start [2025-04-24 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979395', 'tblTempUsageDetail_20' ) end [2025-04-24 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:46:26] Production.INFO: ==1562== Releasing lock... [2025-04-24 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:46:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-24 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:47:05 [end_date_ymd] => 2025-04-24 11:47:05 [RateCDR] => 1 ) [2025-04-24 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:47:05' and `end` < '2025-04-24 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:47:19] Production.INFO: count ==4924 [2025-04-24 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:47:05 - End Time 2025-04-24 11:47:05 [2025-04-24 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979400', 'tblTempUsageDetail_20' ) start [2025-04-24 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979400', 'tblTempUsageDetail_20' ) end [2025-04-24 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979400', 'tblTempVendorCDR_20' ) start [2025-04-24 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979400', 'tblTempVendorCDR_20' ) end [2025-04-24 11:47:21] Production.INFO: ProcessCDR(1,14979400,1,1,2) [2025-04-24 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979400', 'tblTempUsageDetail_20' ) start [2025-04-24 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979400', 'tblTempUsageDetail_20' ) end [2025-04-24 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:47:26] Production.INFO: ==1638== Releasing lock... [2025-04-24 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:47:26] Production.INFO: 65 MB #Memory Used# [2025-04-24 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:48:05 [end_date_ymd] => 2025-04-24 11:48:05 [RateCDR] => 1 ) [2025-04-24 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:48:05' and `end` < '2025-04-24 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:48:19] Production.INFO: count ==4947 [2025-04-24 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:48:05 - End Time 2025-04-24 11:48:05 [2025-04-24 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979405', 'tblTempUsageDetail_20' ) start [2025-04-24 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979405', 'tblTempUsageDetail_20' ) end [2025-04-24 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979405', 'tblTempVendorCDR_20' ) start [2025-04-24 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979405', 'tblTempVendorCDR_20' ) end [2025-04-24 11:48:21] Production.INFO: ProcessCDR(1,14979405,1,1,2) [2025-04-24 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979405', 'tblTempUsageDetail_20' ) start [2025-04-24 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979405', 'tblTempUsageDetail_20' ) end [2025-04-24 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:48:26] Production.INFO: ==1717== Releasing lock... [2025-04-24 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:48:26] Production.INFO: 65 MB #Memory Used# [2025-04-24 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:49:06 [end_date_ymd] => 2025-04-24 11:49:06 [RateCDR] => 1 ) [2025-04-24 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:49:06' and `end` < '2025-04-24 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:49:19] Production.INFO: count ==4957 [2025-04-24 11:49:22] Production.ERROR: pbx CDR StartTime 2025-04-24 08:49:06 - End Time 2025-04-24 11:49:06 [2025-04-24 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979410', 'tblTempUsageDetail_20' ) start [2025-04-24 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979410', 'tblTempUsageDetail_20' ) end [2025-04-24 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979410', 'tblTempVendorCDR_20' ) start [2025-04-24 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979410', 'tblTempVendorCDR_20' ) end [2025-04-24 11:49:22] Production.INFO: ProcessCDR(1,14979410,1,1,2) [2025-04-24 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979410', 'tblTempUsageDetail_20' ) start [2025-04-24 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979410', 'tblTempUsageDetail_20' ) end [2025-04-24 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:49:27] Production.INFO: ==1791== Releasing lock... [2025-04-24 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:49:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-24 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:50:05 [end_date_ymd] => 2025-04-24 11:50:05 [RateCDR] => 1 ) [2025-04-24 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:50:05' and `end` < '2025-04-24 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:50:19] Production.INFO: count ==4958 [2025-04-24 11:50:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:50:05 - End Time 2025-04-24 11:50:05 [2025-04-24 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979416', 'tblTempUsageDetail_20' ) start [2025-04-24 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979416', 'tblTempUsageDetail_20' ) end [2025-04-24 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979416', 'tblTempVendorCDR_20' ) start [2025-04-24 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979416', 'tblTempVendorCDR_20' ) end [2025-04-24 11:50:21] Production.INFO: ProcessCDR(1,14979416,1,1,2) [2025-04-24 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979416', 'tblTempUsageDetail_20' ) start [2025-04-24 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979416', 'tblTempUsageDetail_20' ) end [2025-04-24 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:50:26] Production.INFO: ==1923== Releasing lock... [2025-04-24 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:50:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-24 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:51:05 [end_date_ymd] => 2025-04-24 11:51:05 [RateCDR] => 1 ) [2025-04-24 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:51:05' and `end` < '2025-04-24 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:51:19] Production.INFO: count ==5046 [2025-04-24 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:51:05 - End Time 2025-04-24 11:51:05 [2025-04-24 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979421', 'tblTempUsageDetail_20' ) start [2025-04-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979421', 'tblTempUsageDetail_20' ) end [2025-04-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979421', 'tblTempVendorCDR_20' ) start [2025-04-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979421', 'tblTempVendorCDR_20' ) end [2025-04-24 11:51:21] Production.INFO: ProcessCDR(1,14979421,1,1,2) [2025-04-24 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979421', 'tblTempUsageDetail_20' ) start [2025-04-24 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979421', 'tblTempUsageDetail_20' ) end [2025-04-24 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:51:26] Production.INFO: ==2007== Releasing lock... [2025-04-24 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:51:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-24 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:52:05 [end_date_ymd] => 2025-04-24 11:52:05 [RateCDR] => 1 ) [2025-04-24 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:52:05' and `end` < '2025-04-24 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:52:18] Production.INFO: count ==5065 [2025-04-24 11:52:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:52:05 - End Time 2025-04-24 11:52:05 [2025-04-24 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979426', 'tblTempUsageDetail_20' ) start [2025-04-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979426', 'tblTempUsageDetail_20' ) end [2025-04-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979426', 'tblTempVendorCDR_20' ) start [2025-04-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979426', 'tblTempVendorCDR_20' ) end [2025-04-24 11:52:21] Production.INFO: ProcessCDR(1,14979426,1,1,2) [2025-04-24 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979426', 'tblTempUsageDetail_20' ) start [2025-04-24 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979426', 'tblTempUsageDetail_20' ) end [2025-04-24 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:52:26] Production.INFO: ==2079== Releasing lock... [2025-04-24 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:52:26] Production.INFO: 66 MB #Memory Used# [2025-04-24 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:53:05 [end_date_ymd] => 2025-04-24 11:53:05 [RateCDR] => 1 ) [2025-04-24 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:53:05' and `end` < '2025-04-24 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:53:19] Production.INFO: count ==5093 [2025-04-24 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:53:05 - End Time 2025-04-24 11:53:05 [2025-04-24 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979431', 'tblTempUsageDetail_20' ) start [2025-04-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979431', 'tblTempUsageDetail_20' ) end [2025-04-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979431', 'tblTempVendorCDR_20' ) start [2025-04-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979431', 'tblTempVendorCDR_20' ) end [2025-04-24 11:53:21] Production.INFO: ProcessCDR(1,14979431,1,1,2) [2025-04-24 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979431', 'tblTempUsageDetail_20' ) start [2025-04-24 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979431', 'tblTempUsageDetail_20' ) end [2025-04-24 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:53:26] Production.INFO: ==2153== Releasing lock... [2025-04-24 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:53:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-24 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:54:05 [end_date_ymd] => 2025-04-24 11:54:05 [RateCDR] => 1 ) [2025-04-24 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:54:05' and `end` < '2025-04-24 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:54:19] Production.INFO: count ==5107 [2025-04-24 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:54:05 - End Time 2025-04-24 11:54:05 [2025-04-24 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979436', 'tblTempUsageDetail_20' ) start [2025-04-24 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979436', 'tblTempUsageDetail_20' ) end [2025-04-24 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979436', 'tblTempVendorCDR_20' ) start [2025-04-24 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979436', 'tblTempVendorCDR_20' ) end [2025-04-24 11:54:21] Production.INFO: ProcessCDR(1,14979436,1,1,2) [2025-04-24 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979436', 'tblTempUsageDetail_20' ) start [2025-04-24 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979436', 'tblTempUsageDetail_20' ) end [2025-04-24 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:54:26] Production.INFO: ==2238== Releasing lock... [2025-04-24 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:54:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-24 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:55:06 [end_date_ymd] => 2025-04-24 11:55:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 08:55:06' and `end` < '2025-04-24 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-04-24 11:55:19] Production.INFO: count ==5157 [2025-04-24 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:55:06 - End Time 2025-04-24 11:55:06 [2025-04-24 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979441', 'tblTempUsageDetail_20' ) start [2025-04-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979441', 'tblTempUsageDetail_20' ) end [2025-04-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979441', 'tblTempVendorCDR_20' ) start [2025-04-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979441', 'tblTempVendorCDR_20' ) end [2025-04-24 11:55:22] Production.INFO: ProcessCDR(1,14979441,1,1,2) [2025-04-24 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979441', 'tblTempUsageDetail_20' ) start [2025-04-24 11:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979441', 'tblTempUsageDetail_20' ) end [2025-04-24 11:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:55:28] Production.INFO: ==2311== Releasing lock... [2025-04-24 11:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:55:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:56:05 [end_date_ymd] => 2025-04-24 11:56:05 [RateCDR] => 1 ) [2025-04-24 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:56:05' and `end` < '2025-04-24 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:56:19] Production.INFO: count ==5178 [2025-04-24 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:56:05 - End Time 2025-04-24 11:56:05 [2025-04-24 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979446', 'tblTempUsageDetail_20' ) start [2025-04-24 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979446', 'tblTempUsageDetail_20' ) end [2025-04-24 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979446', 'tblTempVendorCDR_20' ) start [2025-04-24 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979446', 'tblTempVendorCDR_20' ) end [2025-04-24 11:56:21] Production.INFO: ProcessCDR(1,14979446,1,1,2) [2025-04-24 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979446', 'tblTempUsageDetail_20' ) start [2025-04-24 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979446', 'tblTempUsageDetail_20' ) end [2025-04-24 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:56:26] Production.INFO: ==2383== Releasing lock... [2025-04-24 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:56:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:57:05 [end_date_ymd] => 2025-04-24 11:57:05 [RateCDR] => 1 ) [2025-04-24 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:57:05' and `end` < '2025-04-24 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:57:18] Production.INFO: count ==5190 [2025-04-24 11:57:20] Production.ERROR: pbx CDR StartTime 2025-04-24 08:57:05 - End Time 2025-04-24 11:57:05 [2025-04-24 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979451', 'tblTempUsageDetail_20' ) start [2025-04-24 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979451', 'tblTempUsageDetail_20' ) end [2025-04-24 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979451', 'tblTempVendorCDR_20' ) start [2025-04-24 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979451', 'tblTempVendorCDR_20' ) end [2025-04-24 11:57:21] Production.INFO: ProcessCDR(1,14979451,1,1,2) [2025-04-24 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979451', 'tblTempUsageDetail_20' ) start [2025-04-24 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979451', 'tblTempUsageDetail_20' ) end [2025-04-24 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:57:26] Production.INFO: ==2456== Releasing lock... [2025-04-24 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:57:26] Production.INFO: 67 MB #Memory Used# [2025-04-24 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:58:05 [end_date_ymd] => 2025-04-24 11:58:05 [RateCDR] => 1 ) [2025-04-24 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:58:05' and `end` < '2025-04-24 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:58:19] Production.INFO: count ==5208 [2025-04-24 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:58:05 - End Time 2025-04-24 11:58:05 [2025-04-24 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979456', 'tblTempUsageDetail_20' ) start [2025-04-24 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979456', 'tblTempUsageDetail_20' ) end [2025-04-24 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979456', 'tblTempVendorCDR_20' ) start [2025-04-24 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979456', 'tblTempVendorCDR_20' ) end [2025-04-24 11:58:22] Production.INFO: ProcessCDR(1,14979456,1,1,2) [2025-04-24 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979456', 'tblTempUsageDetail_20' ) start [2025-04-24 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979456', 'tblTempUsageDetail_20' ) end [2025-04-24 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:58:25] Production.INFO: ==2531== Releasing lock... [2025-04-24 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:58:25] Production.INFO: 67 MB #Memory Used# [2025-04-24 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 08:59:05 [end_date_ymd] => 2025-04-24 11:59:05 [RateCDR] => 1 ) [2025-04-24 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 08:59:05' and `end` < '2025-04-24 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 11:59:19] Production.INFO: count ==5214 [2025-04-24 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-24 08:59:05 - End Time 2025-04-24 11:59:05 [2025-04-24 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979461', 'tblTempUsageDetail_20' ) start [2025-04-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979461', 'tblTempUsageDetail_20' ) end [2025-04-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979461', 'tblTempVendorCDR_20' ) start [2025-04-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979461', 'tblTempVendorCDR_20' ) end [2025-04-24 11:59:21] Production.INFO: ProcessCDR(1,14979461,1,1,2) [2025-04-24 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979461', 'tblTempUsageDetail_20' ) start [2025-04-24 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979461', 'tblTempUsageDetail_20' ) end [2025-04-24 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 11:59:27] Production.INFO: ==2601== Releasing lock... [2025-04-24 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 11:59:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-24 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:00:06 [end_date_ymd] => 2025-04-24 12:00:06 [RateCDR] => 1 ) [2025-04-24 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:00:06' and `end` < '2025-04-24 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:00:20] Production.INFO: count ==5219 [2025-04-24 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:00:06 - End Time 2025-04-24 12:00:06 [2025-04-24 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979466', 'tblTempUsageDetail_20' ) start [2025-04-24 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979466', 'tblTempUsageDetail_20' ) end [2025-04-24 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979466', 'tblTempVendorCDR_20' ) start [2025-04-24 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979466', 'tblTempVendorCDR_20' ) end [2025-04-24 12:00:22] Production.INFO: ProcessCDR(1,14979466,1,1,2) [2025-04-24 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979466', 'tblTempUsageDetail_20' ) start [2025-04-24 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979466', 'tblTempUsageDetail_20' ) end [2025-04-24 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:00:27] Production.INFO: ==2679== Releasing lock... [2025-04-24 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:00:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-24 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:01:05 [end_date_ymd] => 2025-04-24 12:01:05 [RateCDR] => 1 ) [2025-04-24 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:01:05' and `end` < '2025-04-24 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:01:19] Production.INFO: count ==5284 [2025-04-24 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:01:05 - End Time 2025-04-24 12:01:05 [2025-04-24 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979472', 'tblTempUsageDetail_20' ) start [2025-04-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979472', 'tblTempUsageDetail_20' ) end [2025-04-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979472', 'tblTempVendorCDR_20' ) start [2025-04-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979472', 'tblTempVendorCDR_20' ) end [2025-04-24 12:01:22] Production.INFO: ProcessCDR(1,14979472,1,1,2) [2025-04-24 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979472', 'tblTempUsageDetail_20' ) start [2025-04-24 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979472', 'tblTempUsageDetail_20' ) end [2025-04-24 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:01:27] Production.INFO: ==2765== Releasing lock... [2025-04-24 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:01:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:02:05 [end_date_ymd] => 2025-04-24 12:02:05 [RateCDR] => 1 ) [2025-04-24 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:02:05' and `end` < '2025-04-24 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:02:19] Production.INFO: count ==5298 [2025-04-24 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:02:05 - End Time 2025-04-24 12:02:05 [2025-04-24 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979477', 'tblTempUsageDetail_20' ) start [2025-04-24 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979477', 'tblTempUsageDetail_20' ) end [2025-04-24 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979477', 'tblTempVendorCDR_20' ) start [2025-04-24 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979477', 'tblTempVendorCDR_20' ) end [2025-04-24 12:02:22] Production.INFO: ProcessCDR(1,14979477,1,1,2) [2025-04-24 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979477', 'tblTempUsageDetail_20' ) start [2025-04-24 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979477', 'tblTempUsageDetail_20' ) end [2025-04-24 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:02:27] Production.INFO: ==2842== Releasing lock... [2025-04-24 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:02:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:03:05 [end_date_ymd] => 2025-04-24 12:03:05 [RateCDR] => 1 ) [2025-04-24 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:03:05' and `end` < '2025-04-24 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:03:19] Production.INFO: count ==5314 [2025-04-24 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:03:05 - End Time 2025-04-24 12:03:05 [2025-04-24 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979482', 'tblTempUsageDetail_20' ) start [2025-04-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979482', 'tblTempUsageDetail_20' ) end [2025-04-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979482', 'tblTempVendorCDR_20' ) start [2025-04-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979482', 'tblTempVendorCDR_20' ) end [2025-04-24 12:03:22] Production.INFO: ProcessCDR(1,14979482,1,1,2) [2025-04-24 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979482', 'tblTempUsageDetail_20' ) start [2025-04-24 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979482', 'tblTempUsageDetail_20' ) end [2025-04-24 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:03:27] Production.INFO: ==2914== Releasing lock... [2025-04-24 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:03:27] Production.INFO: 68 MB #Memory Used# [2025-04-24 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:04:05 [end_date_ymd] => 2025-04-24 12:04:05 [RateCDR] => 1 ) [2025-04-24 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:04:05' and `end` < '2025-04-24 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:04:19] Production.INFO: count ==5317 [2025-04-24 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:04:05 - End Time 2025-04-24 12:04:05 [2025-04-24 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979487', 'tblTempUsageDetail_20' ) start [2025-04-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979487', 'tblTempUsageDetail_20' ) end [2025-04-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979487', 'tblTempVendorCDR_20' ) start [2025-04-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979487', 'tblTempVendorCDR_20' ) end [2025-04-24 12:04:22] Production.INFO: ProcessCDR(1,14979487,1,1,2) [2025-04-24 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979487', 'tblTempUsageDetail_20' ) start [2025-04-24 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979487', 'tblTempUsageDetail_20' ) end [2025-04-24 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:04:27] Production.INFO: ==2989== Releasing lock... [2025-04-24 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:04:27] Production.INFO: 68 MB #Memory Used# [2025-04-24 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:05:05 [end_date_ymd] => 2025-04-24 12:05:05 [RateCDR] => 1 ) [2025-04-24 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:05:05' and `end` < '2025-04-24 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:05:18] Production.INFO: count ==5341 [2025-04-24 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:05:05 - End Time 2025-04-24 12:05:05 [2025-04-24 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979492', 'tblTempUsageDetail_20' ) start [2025-04-24 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979492', 'tblTempUsageDetail_20' ) end [2025-04-24 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979492', 'tblTempVendorCDR_20' ) start [2025-04-24 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979492', 'tblTempVendorCDR_20' ) end [2025-04-24 12:05:21] Production.INFO: ProcessCDR(1,14979492,1,1,2) [2025-04-24 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979492', 'tblTempUsageDetail_20' ) start [2025-04-24 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979492', 'tblTempUsageDetail_20' ) end [2025-04-24 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:05:26] Production.INFO: ==3104== Releasing lock... [2025-04-24 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:05:26] Production.INFO: 68 MB #Memory Used# [2025-04-24 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:06:05 [end_date_ymd] => 2025-04-24 12:06:05 [RateCDR] => 1 ) [2025-04-24 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:06:05' and `end` < '2025-04-24 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:06:19] Production.INFO: count ==5356 [2025-04-24 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:06:05 - End Time 2025-04-24 12:06:05 [2025-04-24 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979497', 'tblTempUsageDetail_20' ) start [2025-04-24 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979497', 'tblTempUsageDetail_20' ) end [2025-04-24 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979497', 'tblTempVendorCDR_20' ) start [2025-04-24 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979497', 'tblTempVendorCDR_20' ) end [2025-04-24 12:06:22] Production.INFO: ProcessCDR(1,14979497,1,1,2) [2025-04-24 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979497', 'tblTempUsageDetail_20' ) start [2025-04-24 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979497', 'tblTempUsageDetail_20' ) end [2025-04-24 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:06:27] Production.INFO: ==3179== Releasing lock... [2025-04-24 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:06:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-24 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:07:05 [end_date_ymd] => 2025-04-24 12:07:05 [RateCDR] => 1 ) [2025-04-24 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:07:05' and `end` < '2025-04-24 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:07:19] Production.INFO: count ==5379 [2025-04-24 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:07:05 - End Time 2025-04-24 12:07:05 [2025-04-24 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979502', 'tblTempUsageDetail_20' ) start [2025-04-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979502', 'tblTempUsageDetail_20' ) end [2025-04-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979502', 'tblTempVendorCDR_20' ) start [2025-04-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979502', 'tblTempVendorCDR_20' ) end [2025-04-24 12:07:22] Production.INFO: ProcessCDR(1,14979502,1,1,2) [2025-04-24 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979502', 'tblTempUsageDetail_20' ) start [2025-04-24 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979502', 'tblTempUsageDetail_20' ) end [2025-04-24 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:07:27] Production.INFO: ==3256== Releasing lock... [2025-04-24 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:07:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:08:05 [end_date_ymd] => 2025-04-24 12:08:05 [RateCDR] => 1 ) [2025-04-24 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:08:05' and `end` < '2025-04-24 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:08:19] Production.INFO: count ==5392 [2025-04-24 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:08:05 - End Time 2025-04-24 12:08:05 [2025-04-24 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979507', 'tblTempUsageDetail_20' ) start [2025-04-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979507', 'tblTempUsageDetail_20' ) end [2025-04-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979507', 'tblTempVendorCDR_20' ) start [2025-04-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979507', 'tblTempVendorCDR_20' ) end [2025-04-24 12:08:22] Production.INFO: ProcessCDR(1,14979507,1,1,2) [2025-04-24 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979507', 'tblTempUsageDetail_20' ) start [2025-04-24 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979507', 'tblTempUsageDetail_20' ) end [2025-04-24 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:08:26] Production.INFO: ==3336== Releasing lock... [2025-04-24 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:08:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:09:06 [end_date_ymd] => 2025-04-24 12:09:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 09:09:06' and `end` < '2025-04-24 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-04-24 12:09:20] Production.INFO: count ==5389 [2025-04-24 12:09:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:09:06 - End Time 2025-04-24 12:09:06 [2025-04-24 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979512', 'tblTempUsageDetail_20' ) start [2025-04-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979512', 'tblTempUsageDetail_20' ) end [2025-04-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979512', 'tblTempVendorCDR_20' ) start [2025-04-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979512', 'tblTempVendorCDR_20' ) end [2025-04-24 12:09:22] Production.INFO: ProcessCDR(1,14979512,1,1,2) [2025-04-24 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979512', 'tblTempUsageDetail_20' ) start [2025-04-24 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979512', 'tblTempUsageDetail_20' ) end [2025-04-24 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:09:27] Production.INFO: ==3408== Releasing lock... [2025-04-24 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:09:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:10:05 [end_date_ymd] => 2025-04-24 12:10:05 [RateCDR] => 1 ) [2025-04-24 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:10:05' and `end` < '2025-04-24 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:10:19] Production.INFO: count ==5431 [2025-04-24 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:10:05 - End Time 2025-04-24 12:10:05 [2025-04-24 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979518', 'tblTempUsageDetail_20' ) start [2025-04-24 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979518', 'tblTempUsageDetail_20' ) end [2025-04-24 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979518', 'tblTempVendorCDR_20' ) start [2025-04-24 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979518', 'tblTempVendorCDR_20' ) end [2025-04-24 12:10:22] Production.INFO: ProcessCDR(1,14979518,1,1,2) [2025-04-24 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979518', 'tblTempUsageDetail_20' ) start [2025-04-24 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979518', 'tblTempUsageDetail_20' ) end [2025-04-24 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:10:27] Production.INFO: ==3482== Releasing lock... [2025-04-24 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:10:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:11:05 [end_date_ymd] => 2025-04-24 12:11:05 [RateCDR] => 1 ) [2025-04-24 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:11:05' and `end` < '2025-04-24 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:11:19] Production.INFO: count ==5476 [2025-04-24 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:11:05 - End Time 2025-04-24 12:11:05 [2025-04-24 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979523', 'tblTempUsageDetail_20' ) start [2025-04-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979523', 'tblTempUsageDetail_20' ) end [2025-04-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979523', 'tblTempVendorCDR_20' ) start [2025-04-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979523', 'tblTempVendorCDR_20' ) end [2025-04-24 12:11:22] Production.INFO: ProcessCDR(1,14979523,1,1,2) [2025-04-24 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979523', 'tblTempUsageDetail_20' ) start [2025-04-24 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979523', 'tblTempUsageDetail_20' ) end [2025-04-24 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:11:27] Production.INFO: ==3559== Releasing lock... [2025-04-24 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:11:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:12:05 [end_date_ymd] => 2025-04-24 12:12:05 [RateCDR] => 1 ) [2025-04-24 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:12:05' and `end` < '2025-04-24 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:12:19] Production.INFO: count ==5470 [2025-04-24 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:12:05 - End Time 2025-04-24 12:12:05 [2025-04-24 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979528', 'tblTempUsageDetail_20' ) start [2025-04-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979528', 'tblTempUsageDetail_20' ) end [2025-04-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979528', 'tblTempVendorCDR_20' ) start [2025-04-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979528', 'tblTempVendorCDR_20' ) end [2025-04-24 12:12:21] Production.INFO: ProcessCDR(1,14979528,1,1,2) [2025-04-24 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979528', 'tblTempUsageDetail_20' ) start [2025-04-24 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979528', 'tblTempUsageDetail_20' ) end [2025-04-24 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:12:26] Production.INFO: ==3633== Releasing lock... [2025-04-24 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:12:26] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:13:05 [end_date_ymd] => 2025-04-24 12:13:05 [RateCDR] => 1 ) [2025-04-24 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:13:05' and `end` < '2025-04-24 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:13:19] Production.INFO: count ==5457 [2025-04-24 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:13:05 - End Time 2025-04-24 12:13:05 [2025-04-24 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979533', 'tblTempUsageDetail_20' ) start [2025-04-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979533', 'tblTempUsageDetail_20' ) end [2025-04-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979533', 'tblTempVendorCDR_20' ) start [2025-04-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979533', 'tblTempVendorCDR_20' ) end [2025-04-24 12:13:22] Production.INFO: ProcessCDR(1,14979533,1,1,2) [2025-04-24 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979533', 'tblTempUsageDetail_20' ) start [2025-04-24 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979533', 'tblTempUsageDetail_20' ) end [2025-04-24 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:13:27] Production.INFO: ==3703== Releasing lock... [2025-04-24 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:13:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:14:06 [end_date_ymd] => 2025-04-24 12:14:06 [RateCDR] => 1 ) [2025-04-24 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:14:06' and `end` < '2025-04-24 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:14:19] Production.INFO: count ==5473 [2025-04-24 12:14:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:14:06 - End Time 2025-04-24 12:14:06 [2025-04-24 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979538', 'tblTempUsageDetail_20' ) start [2025-04-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979538', 'tblTempUsageDetail_20' ) end [2025-04-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979538', 'tblTempVendorCDR_20' ) start [2025-04-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979538', 'tblTempVendorCDR_20' ) end [2025-04-24 12:14:22] Production.INFO: ProcessCDR(1,14979538,1,1,2) [2025-04-24 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979538', 'tblTempUsageDetail_20' ) start [2025-04-24 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979538', 'tblTempUsageDetail_20' ) end [2025-04-24 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:14:27] Production.INFO: ==3778== Releasing lock... [2025-04-24 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:14:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:15:05 [end_date_ymd] => 2025-04-24 12:15:05 [RateCDR] => 1 ) [2025-04-24 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:15:05' and `end` < '2025-04-24 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:15:19] Production.INFO: count ==5475 [2025-04-24 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:15:05 - End Time 2025-04-24 12:15:05 [2025-04-24 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979543', 'tblTempUsageDetail_20' ) start [2025-04-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979543', 'tblTempUsageDetail_20' ) end [2025-04-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979543', 'tblTempVendorCDR_20' ) start [2025-04-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979543', 'tblTempVendorCDR_20' ) end [2025-04-24 12:15:21] Production.INFO: ProcessCDR(1,14979543,1,1,2) [2025-04-24 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979543', 'tblTempUsageDetail_20' ) start [2025-04-24 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979543', 'tblTempUsageDetail_20' ) end [2025-04-24 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:15:26] Production.INFO: ==3849== Releasing lock... [2025-04-24 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:15:26] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:16:05 [end_date_ymd] => 2025-04-24 12:16:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 09:16:05' and `end` < '2025-04-24 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-04-24 12:16:19] Production.INFO: count ==5473 [2025-04-24 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:16:05 - End Time 2025-04-24 12:16:05 [2025-04-24 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979548', 'tblTempUsageDetail_20' ) start [2025-04-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979548', 'tblTempUsageDetail_20' ) end [2025-04-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979548', 'tblTempVendorCDR_20' ) start [2025-04-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979548', 'tblTempVendorCDR_20' ) end [2025-04-24 12:16:22] Production.INFO: ProcessCDR(1,14979548,1,1,2) [2025-04-24 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979548', 'tblTempUsageDetail_20' ) start [2025-04-24 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979548', 'tblTempUsageDetail_20' ) end [2025-04-24 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:16:28] Production.INFO: ==3923== Releasing lock... [2025-04-24 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:16:28] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:17:05 [end_date_ymd] => 2025-04-24 12:17:05 [RateCDR] => 1 ) [2025-04-24 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:17:05' and `end` < '2025-04-24 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:17:18] Production.INFO: count ==5467 [2025-04-24 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:17:05 - End Time 2025-04-24 12:17:05 [2025-04-24 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979553', 'tblTempUsageDetail_20' ) start [2025-04-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979553', 'tblTempUsageDetail_20' ) end [2025-04-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979553', 'tblTempVendorCDR_20' ) start [2025-04-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979553', 'tblTempVendorCDR_20' ) end [2025-04-24 12:17:21] Production.INFO: ProcessCDR(1,14979553,1,1,2) [2025-04-24 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979553', 'tblTempUsageDetail_20' ) start [2025-04-24 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979553', 'tblTempUsageDetail_20' ) end [2025-04-24 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:17:26] Production.INFO: ==3998== Releasing lock... [2025-04-24 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:17:26] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:18:05 [end_date_ymd] => 2025-04-24 12:18:05 [RateCDR] => 1 ) [2025-04-24 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:18:05' and `end` < '2025-04-24 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:18:19] Production.INFO: count ==5476 [2025-04-24 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:18:05 - End Time 2025-04-24 12:18:05 [2025-04-24 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979558', 'tblTempUsageDetail_20' ) start [2025-04-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979558', 'tblTempUsageDetail_20' ) end [2025-04-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979558', 'tblTempVendorCDR_20' ) start [2025-04-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979558', 'tblTempVendorCDR_20' ) end [2025-04-24 12:18:22] Production.INFO: ProcessCDR(1,14979558,1,1,2) [2025-04-24 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979558', 'tblTempUsageDetail_20' ) start [2025-04-24 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979558', 'tblTempUsageDetail_20' ) end [2025-04-24 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:18:27] Production.INFO: ==4073== Releasing lock... [2025-04-24 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:18:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:19:05 [end_date_ymd] => 2025-04-24 12:19:05 [RateCDR] => 1 ) [2025-04-24 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:19:05' and `end` < '2025-04-24 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:19:19] Production.INFO: count ==5492 [2025-04-24 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:19:05 - End Time 2025-04-24 12:19:05 [2025-04-24 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979563', 'tblTempUsageDetail_20' ) start [2025-04-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979563', 'tblTempUsageDetail_20' ) end [2025-04-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979563', 'tblTempVendorCDR_20' ) start [2025-04-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979563', 'tblTempVendorCDR_20' ) end [2025-04-24 12:19:22] Production.INFO: ProcessCDR(1,14979563,1,1,2) [2025-04-24 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979563', 'tblTempUsageDetail_20' ) start [2025-04-24 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979563', 'tblTempUsageDetail_20' ) end [2025-04-24 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:19:27] Production.INFO: ==4156== Releasing lock... [2025-04-24 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:19:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:20:06 [end_date_ymd] => 2025-04-24 12:20:06 [RateCDR] => 1 ) [2025-04-24 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:20:06' and `end` < '2025-04-24 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:20:19] Production.INFO: count ==5520 [2025-04-24 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:20:06 - End Time 2025-04-24 12:20:06 [2025-04-24 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979568', 'tblTempUsageDetail_20' ) start [2025-04-24 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979568', 'tblTempUsageDetail_20' ) end [2025-04-24 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979568', 'tblTempVendorCDR_20' ) start [2025-04-24 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979568', 'tblTempVendorCDR_20' ) end [2025-04-24 12:20:22] Production.INFO: ProcessCDR(1,14979568,1,1,2) [2025-04-24 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979568', 'tblTempUsageDetail_20' ) start [2025-04-24 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979568', 'tblTempUsageDetail_20' ) end [2025-04-24 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:20:27] Production.INFO: ==4238== Releasing lock... [2025-04-24 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:20:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:21:05 [end_date_ymd] => 2025-04-24 12:21:05 [RateCDR] => 1 ) [2025-04-24 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:21:05' and `end` < '2025-04-24 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:21:19] Production.INFO: count ==5507 [2025-04-24 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:21:05 - End Time 2025-04-24 12:21:05 [2025-04-24 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979574', 'tblTempUsageDetail_20' ) start [2025-04-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979574', 'tblTempUsageDetail_20' ) end [2025-04-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979574', 'tblTempVendorCDR_20' ) start [2025-04-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979574', 'tblTempVendorCDR_20' ) end [2025-04-24 12:21:22] Production.INFO: ProcessCDR(1,14979574,1,1,2) [2025-04-24 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979574', 'tblTempUsageDetail_20' ) start [2025-04-24 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979574', 'tblTempUsageDetail_20' ) end [2025-04-24 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:21:27] Production.INFO: ==4355== Releasing lock... [2025-04-24 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:21:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:22:05 [end_date_ymd] => 2025-04-24 12:22:05 [RateCDR] => 1 ) [2025-04-24 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:22:05' and `end` < '2025-04-24 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:22:19] Production.INFO: count ==5510 [2025-04-24 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:22:05 - End Time 2025-04-24 12:22:05 [2025-04-24 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979579', 'tblTempUsageDetail_20' ) start [2025-04-24 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979579', 'tblTempUsageDetail_20' ) end [2025-04-24 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979579', 'tblTempVendorCDR_20' ) start [2025-04-24 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979579', 'tblTempVendorCDR_20' ) end [2025-04-24 12:22:21] Production.INFO: ProcessCDR(1,14979579,1,1,2) [2025-04-24 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979579', 'tblTempUsageDetail_20' ) start [2025-04-24 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979579', 'tblTempUsageDetail_20' ) end [2025-04-24 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:22:26] Production.INFO: ==4431== Releasing lock... [2025-04-24 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:22:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:23:05 [end_date_ymd] => 2025-04-24 12:23:05 [RateCDR] => 1 ) [2025-04-24 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:23:05' and `end` < '2025-04-24 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:23:19] Production.INFO: count ==5513 [2025-04-24 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:23:05 - End Time 2025-04-24 12:23:05 [2025-04-24 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979584', 'tblTempUsageDetail_20' ) start [2025-04-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979584', 'tblTempUsageDetail_20' ) end [2025-04-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979584', 'tblTempVendorCDR_20' ) start [2025-04-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979584', 'tblTempVendorCDR_20' ) end [2025-04-24 12:23:22] Production.INFO: ProcessCDR(1,14979584,1,1,2) [2025-04-24 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979584', 'tblTempUsageDetail_20' ) start [2025-04-24 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979584', 'tblTempUsageDetail_20' ) end [2025-04-24 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:23:27] Production.INFO: ==4503== Releasing lock... [2025-04-24 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:23:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:24:05 [end_date_ymd] => 2025-04-24 12:24:05 [RateCDR] => 1 ) [2025-04-24 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:24:05' and `end` < '2025-04-24 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:24:19] Production.INFO: count ==5526 [2025-04-24 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:24:05 - End Time 2025-04-24 12:24:05 [2025-04-24 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979589', 'tblTempUsageDetail_20' ) start [2025-04-24 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979589', 'tblTempUsageDetail_20' ) end [2025-04-24 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979589', 'tblTempVendorCDR_20' ) start [2025-04-24 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979589', 'tblTempVendorCDR_20' ) end [2025-04-24 12:24:22] Production.INFO: ProcessCDR(1,14979589,1,1,2) [2025-04-24 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979589', 'tblTempUsageDetail_20' ) start [2025-04-24 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979589', 'tblTempUsageDetail_20' ) end [2025-04-24 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:24:27] Production.INFO: ==4585== Releasing lock... [2025-04-24 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:24:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:25:05 [end_date_ymd] => 2025-04-24 12:25:05 [RateCDR] => 1 ) [2025-04-24 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:25:05' and `end` < '2025-04-24 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:25:20] Production.INFO: count ==5519 [2025-04-24 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:25:05 - End Time 2025-04-24 12:25:05 [2025-04-24 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979594', 'tblTempUsageDetail_20' ) start [2025-04-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979594', 'tblTempUsageDetail_20' ) end [2025-04-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979594', 'tblTempVendorCDR_20' ) start [2025-04-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979594', 'tblTempVendorCDR_20' ) end [2025-04-24 12:25:22] Production.INFO: ProcessCDR(1,14979594,1,1,2) [2025-04-24 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979594', 'tblTempUsageDetail_20' ) start [2025-04-24 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979594', 'tblTempUsageDetail_20' ) end [2025-04-24 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:25:27] Production.INFO: ==4671== Releasing lock... [2025-04-24 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:25:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:26:05 [end_date_ymd] => 2025-04-24 12:26:05 [RateCDR] => 1 ) [2025-04-24 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:26:05' and `end` < '2025-04-24 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:26:19] Production.INFO: count ==5530 [2025-04-24 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:26:05 - End Time 2025-04-24 12:26:05 [2025-04-24 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979599', 'tblTempUsageDetail_20' ) start [2025-04-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979599', 'tblTempUsageDetail_20' ) end [2025-04-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979599', 'tblTempVendorCDR_20' ) start [2025-04-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979599', 'tblTempVendorCDR_20' ) end [2025-04-24 12:26:22] Production.INFO: ProcessCDR(1,14979599,1,1,2) [2025-04-24 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979599', 'tblTempUsageDetail_20' ) start [2025-04-24 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979599', 'tblTempUsageDetail_20' ) end [2025-04-24 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:26:27] Production.INFO: ==4755== Releasing lock... [2025-04-24 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:26:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:27:05 [end_date_ymd] => 2025-04-24 12:27:05 [RateCDR] => 1 ) [2025-04-24 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:27:05' and `end` < '2025-04-24 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:27:19] Production.INFO: count ==5558 [2025-04-24 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:27:05 - End Time 2025-04-24 12:27:05 [2025-04-24 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979604', 'tblTempUsageDetail_20' ) start [2025-04-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979604', 'tblTempUsageDetail_20' ) end [2025-04-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979604', 'tblTempVendorCDR_20' ) start [2025-04-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979604', 'tblTempVendorCDR_20' ) end [2025-04-24 12:27:22] Production.INFO: ProcessCDR(1,14979604,1,1,2) [2025-04-24 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979604', 'tblTempUsageDetail_20' ) start [2025-04-24 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979604', 'tblTempUsageDetail_20' ) end [2025-04-24 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:27:27] Production.INFO: ==4833== Releasing lock... [2025-04-24 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:27:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:28:05 [end_date_ymd] => 2025-04-24 12:28:05 [RateCDR] => 1 ) [2025-04-24 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:28:05' and `end` < '2025-04-24 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:28:19] Production.INFO: count ==5593 [2025-04-24 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:28:05 - End Time 2025-04-24 12:28:05 [2025-04-24 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979609', 'tblTempUsageDetail_20' ) start [2025-04-24 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979609', 'tblTempUsageDetail_20' ) end [2025-04-24 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979609', 'tblTempVendorCDR_20' ) start [2025-04-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979609', 'tblTempVendorCDR_20' ) end [2025-04-24 12:28:22] Production.INFO: ProcessCDR(1,14979609,1,1,2) [2025-04-24 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979609', 'tblTempUsageDetail_20' ) start [2025-04-24 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979609', 'tblTempUsageDetail_20' ) end [2025-04-24 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:28:27] Production.INFO: ==4919== Releasing lock... [2025-04-24 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:28:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:29:05 [end_date_ymd] => 2025-04-24 12:29:05 [RateCDR] => 1 ) [2025-04-24 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:29:05' and `end` < '2025-04-24 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:29:19] Production.INFO: count ==5604 [2025-04-24 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:29:05 - End Time 2025-04-24 12:29:05 [2025-04-24 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979614', 'tblTempUsageDetail_20' ) start [2025-04-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979614', 'tblTempUsageDetail_20' ) end [2025-04-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979614', 'tblTempVendorCDR_20' ) start [2025-04-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979614', 'tblTempVendorCDR_20' ) end [2025-04-24 12:29:22] Production.INFO: ProcessCDR(1,14979614,1,1,2) [2025-04-24 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979614', 'tblTempUsageDetail_20' ) start [2025-04-24 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979614', 'tblTempUsageDetail_20' ) end [2025-04-24 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:29:27] Production.INFO: ==5000== Releasing lock... [2025-04-24 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:29:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:30:06 [end_date_ymd] => 2025-04-24 12:30:06 [RateCDR] => 1 ) [2025-04-24 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:30:06' and `end` < '2025-04-24 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:30:20] Production.INFO: count ==5610 [2025-04-24 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:30:06 - End Time 2025-04-24 12:30:06 [2025-04-24 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979620', 'tblTempUsageDetail_20' ) start [2025-04-24 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979620', 'tblTempUsageDetail_20' ) end [2025-04-24 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979620', 'tblTempVendorCDR_20' ) start [2025-04-24 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979620', 'tblTempVendorCDR_20' ) end [2025-04-24 12:30:23] Production.INFO: ProcessCDR(1,14979620,1,1,2) [2025-04-24 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979620', 'tblTempUsageDetail_20' ) start [2025-04-24 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979620', 'tblTempUsageDetail_20' ) end [2025-04-24 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:30:28] Production.INFO: ==5072== Releasing lock... [2025-04-24 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:30:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:31:05 [end_date_ymd] => 2025-04-24 12:31:05 [RateCDR] => 1 ) [2025-04-24 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:31:05' and `end` < '2025-04-24 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:31:19] Production.INFO: count ==5678 [2025-04-24 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:31:05 - End Time 2025-04-24 12:31:05 [2025-04-24 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979625', 'tblTempUsageDetail_20' ) start [2025-04-24 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979625', 'tblTempUsageDetail_20' ) end [2025-04-24 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979625', 'tblTempVendorCDR_20' ) start [2025-04-24 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979625', 'tblTempVendorCDR_20' ) end [2025-04-24 12:31:22] Production.INFO: ProcessCDR(1,14979625,1,1,2) [2025-04-24 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979625', 'tblTempUsageDetail_20' ) start [2025-04-24 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979625', 'tblTempUsageDetail_20' ) end [2025-04-24 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:31:27] Production.INFO: ==5146== Releasing lock... [2025-04-24 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:31:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:32:05 [end_date_ymd] => 2025-04-24 12:32:05 [RateCDR] => 1 ) [2025-04-24 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:32:05' and `end` < '2025-04-24 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:32:20] Production.INFO: count ==5686 [2025-04-24 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:32:05 - End Time 2025-04-24 12:32:05 [2025-04-24 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979630', 'tblTempUsageDetail_20' ) start [2025-04-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979630', 'tblTempUsageDetail_20' ) end [2025-04-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979630', 'tblTempVendorCDR_20' ) start [2025-04-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979630', 'tblTempVendorCDR_20' ) end [2025-04-24 12:32:22] Production.INFO: ProcessCDR(1,14979630,1,1,2) [2025-04-24 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979630', 'tblTempUsageDetail_20' ) start [2025-04-24 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979630', 'tblTempUsageDetail_20' ) end [2025-04-24 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:32:27] Production.INFO: ==5221== Releasing lock... [2025-04-24 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:32:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:33:05 [end_date_ymd] => 2025-04-24 12:33:05 [RateCDR] => 1 ) [2025-04-24 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:33:05' and `end` < '2025-04-24 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:33:18] Production.INFO: count ==5697 [2025-04-24 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:33:05 - End Time 2025-04-24 12:33:05 [2025-04-24 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979635', 'tblTempUsageDetail_20' ) start [2025-04-24 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979635', 'tblTempUsageDetail_20' ) end [2025-04-24 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979635', 'tblTempVendorCDR_20' ) start [2025-04-24 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979635', 'tblTempVendorCDR_20' ) end [2025-04-24 12:33:21] Production.INFO: ProcessCDR(1,14979635,1,1,2) [2025-04-24 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979635', 'tblTempUsageDetail_20' ) start [2025-04-24 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979635', 'tblTempUsageDetail_20' ) end [2025-04-24 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:33:26] Production.INFO: ==5290== Releasing lock... [2025-04-24 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:33:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:34:05 [end_date_ymd] => 2025-04-24 12:34:05 [RateCDR] => 1 ) [2025-04-24 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:34:05' and `end` < '2025-04-24 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:34:19] Production.INFO: count ==5696 [2025-04-24 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:34:05 - End Time 2025-04-24 12:34:05 [2025-04-24 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979640', 'tblTempUsageDetail_20' ) start [2025-04-24 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979640', 'tblTempUsageDetail_20' ) end [2025-04-24 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979640', 'tblTempVendorCDR_20' ) start [2025-04-24 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979640', 'tblTempVendorCDR_20' ) end [2025-04-24 12:34:21] Production.INFO: ProcessCDR(1,14979640,1,1,2) [2025-04-24 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979640', 'tblTempUsageDetail_20' ) start [2025-04-24 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979640', 'tblTempUsageDetail_20' ) end [2025-04-24 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:34:26] Production.INFO: ==5365== Releasing lock... [2025-04-24 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:34:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:35:05 [end_date_ymd] => 2025-04-24 12:35:05 [RateCDR] => 1 ) [2025-04-24 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:35:05' and `end` < '2025-04-24 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:35:18] Production.INFO: count ==5683 [2025-04-24 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:35:05 - End Time 2025-04-24 12:35:05 [2025-04-24 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979645', 'tblTempUsageDetail_20' ) start [2025-04-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979645', 'tblTempUsageDetail_20' ) end [2025-04-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979645', 'tblTempVendorCDR_20' ) start [2025-04-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979645', 'tblTempVendorCDR_20' ) end [2025-04-24 12:35:21] Production.INFO: ProcessCDR(1,14979645,1,1,2) [2025-04-24 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979645', 'tblTempUsageDetail_20' ) start [2025-04-24 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979645', 'tblTempUsageDetail_20' ) end [2025-04-24 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:35:26] Production.INFO: ==5443== Releasing lock... [2025-04-24 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:35:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:36:05 [end_date_ymd] => 2025-04-24 12:36:05 [RateCDR] => 1 ) [2025-04-24 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:36:05' and `end` < '2025-04-24 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:36:18] Production.INFO: count ==5687 [2025-04-24 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:36:05 - End Time 2025-04-24 12:36:05 [2025-04-24 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979650', 'tblTempUsageDetail_20' ) start [2025-04-24 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979650', 'tblTempUsageDetail_20' ) end [2025-04-24 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979650', 'tblTempVendorCDR_20' ) start [2025-04-24 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979650', 'tblTempVendorCDR_20' ) end [2025-04-24 12:36:21] Production.INFO: ProcessCDR(1,14979650,1,1,2) [2025-04-24 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979650', 'tblTempUsageDetail_20' ) start [2025-04-24 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979650', 'tblTempUsageDetail_20' ) end [2025-04-24 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:36:26] Production.INFO: ==5553== Releasing lock... [2025-04-24 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:36:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:37:05 [end_date_ymd] => 2025-04-24 12:37:05 [RateCDR] => 1 ) [2025-04-24 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:37:05' and `end` < '2025-04-24 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:37:18] Production.INFO: count ==5690 [2025-04-24 12:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:37:05 - End Time 2025-04-24 12:37:05 [2025-04-24 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979655', 'tblTempUsageDetail_20' ) start [2025-04-24 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979655', 'tblTempUsageDetail_20' ) end [2025-04-24 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979655', 'tblTempVendorCDR_20' ) start [2025-04-24 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979655', 'tblTempVendorCDR_20' ) end [2025-04-24 12:37:21] Production.INFO: ProcessCDR(1,14979655,1,1,2) [2025-04-24 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979655', 'tblTempUsageDetail_20' ) start [2025-04-24 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979655', 'tblTempUsageDetail_20' ) end [2025-04-24 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:37:26] Production.INFO: ==5628== Releasing lock... [2025-04-24 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:37:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:38:05 [end_date_ymd] => 2025-04-24 12:38:05 [RateCDR] => 1 ) [2025-04-24 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:38:05' and `end` < '2025-04-24 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:38:19] Production.INFO: count ==5677 [2025-04-24 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:38:05 - End Time 2025-04-24 12:38:05 [2025-04-24 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979660', 'tblTempUsageDetail_20' ) start [2025-04-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979660', 'tblTempUsageDetail_20' ) end [2025-04-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979660', 'tblTempVendorCDR_20' ) start [2025-04-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979660', 'tblTempVendorCDR_20' ) end [2025-04-24 12:38:22] Production.INFO: ProcessCDR(1,14979660,1,1,2) [2025-04-24 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979660', 'tblTempUsageDetail_20' ) start [2025-04-24 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979660', 'tblTempUsageDetail_20' ) end [2025-04-24 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:38:27] Production.INFO: ==5700== Releasing lock... [2025-04-24 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:38:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:39:05 [end_date_ymd] => 2025-04-24 12:39:05 [RateCDR] => 1 ) [2025-04-24 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:39:05' and `end` < '2025-04-24 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:39:19] Production.INFO: count ==5687 [2025-04-24 12:39:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:39:05 - End Time 2025-04-24 12:39:05 [2025-04-24 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979665', 'tblTempUsageDetail_20' ) start [2025-04-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979665', 'tblTempUsageDetail_20' ) end [2025-04-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979665', 'tblTempVendorCDR_20' ) start [2025-04-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979665', 'tblTempVendorCDR_20' ) end [2025-04-24 12:39:22] Production.INFO: ProcessCDR(1,14979665,1,1,2) [2025-04-24 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979665', 'tblTempUsageDetail_20' ) start [2025-04-24 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979665', 'tblTempUsageDetail_20' ) end [2025-04-24 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:39:28] Production.INFO: ==5772== Releasing lock... [2025-04-24 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:39:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:40:06 [end_date_ymd] => 2025-04-24 12:40:06 [RateCDR] => 1 ) [2025-04-24 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:40:06' and `end` < '2025-04-24 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:40:20] Production.INFO: count ==5675 [2025-04-24 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:40:06 - End Time 2025-04-24 12:40:06 [2025-04-24 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979671', 'tblTempUsageDetail_20' ) start [2025-04-24 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979671', 'tblTempUsageDetail_20' ) end [2025-04-24 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979671', 'tblTempVendorCDR_20' ) start [2025-04-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979671', 'tblTempVendorCDR_20' ) end [2025-04-24 12:40:23] Production.INFO: ProcessCDR(1,14979671,1,1,2) [2025-04-24 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979671', 'tblTempUsageDetail_20' ) start [2025-04-24 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979671', 'tblTempUsageDetail_20' ) end [2025-04-24 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:40:28] Production.INFO: ==5849== Releasing lock... [2025-04-24 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:40:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:41:05 [end_date_ymd] => 2025-04-24 12:41:05 [RateCDR] => 1 ) [2025-04-24 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:41:05' and `end` < '2025-04-24 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:41:19] Production.INFO: count ==5665 [2025-04-24 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:41:05 - End Time 2025-04-24 12:41:05 [2025-04-24 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979676', 'tblTempUsageDetail_20' ) start [2025-04-24 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979676', 'tblTempUsageDetail_20' ) end [2025-04-24 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979676', 'tblTempVendorCDR_20' ) start [2025-04-24 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979676', 'tblTempVendorCDR_20' ) end [2025-04-24 12:41:22] Production.INFO: ProcessCDR(1,14979676,1,1,2) [2025-04-24 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979676', 'tblTempUsageDetail_20' ) start [2025-04-24 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979676', 'tblTempUsageDetail_20' ) end [2025-04-24 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:41:27] Production.INFO: ==5923== Releasing lock... [2025-04-24 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:41:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:42:05 [end_date_ymd] => 2025-04-24 12:42:05 [RateCDR] => 1 ) [2025-04-24 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:42:05' and `end` < '2025-04-24 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:42:18] Production.INFO: count ==5657 [2025-04-24 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:42:05 - End Time 2025-04-24 12:42:05 [2025-04-24 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979681', 'tblTempUsageDetail_20' ) start [2025-04-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979681', 'tblTempUsageDetail_20' ) end [2025-04-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979681', 'tblTempVendorCDR_20' ) start [2025-04-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979681', 'tblTempVendorCDR_20' ) end [2025-04-24 12:42:21] Production.INFO: ProcessCDR(1,14979681,1,1,2) [2025-04-24 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979681', 'tblTempUsageDetail_20' ) start [2025-04-24 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979681', 'tblTempUsageDetail_20' ) end [2025-04-24 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:42:26] Production.INFO: ==5995== Releasing lock... [2025-04-24 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:42:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:43:05 [end_date_ymd] => 2025-04-24 12:43:05 [RateCDR] => 1 ) [2025-04-24 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:43:05' and `end` < '2025-04-24 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:43:19] Production.INFO: count ==5645 [2025-04-24 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:43:05 - End Time 2025-04-24 12:43:05 [2025-04-24 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979686', 'tblTempUsageDetail_20' ) start [2025-04-24 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979686', 'tblTempUsageDetail_20' ) end [2025-04-24 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979686', 'tblTempVendorCDR_20' ) start [2025-04-24 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979686', 'tblTempVendorCDR_20' ) end [2025-04-24 12:43:22] Production.INFO: ProcessCDR(1,14979686,1,1,2) [2025-04-24 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979686', 'tblTempUsageDetail_20' ) start [2025-04-24 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979686', 'tblTempUsageDetail_20' ) end [2025-04-24 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:43:27] Production.INFO: ==6069== Releasing lock... [2025-04-24 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:43:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:44:05 [end_date_ymd] => 2025-04-24 12:44:05 [RateCDR] => 1 ) [2025-04-24 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:44:05' and `end` < '2025-04-24 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:44:19] Production.INFO: count ==5651 [2025-04-24 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:44:05 - End Time 2025-04-24 12:44:05 [2025-04-24 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979691', 'tblTempUsageDetail_20' ) start [2025-04-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979691', 'tblTempUsageDetail_20' ) end [2025-04-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979691', 'tblTempVendorCDR_20' ) start [2025-04-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979691', 'tblTempVendorCDR_20' ) end [2025-04-24 12:44:22] Production.INFO: ProcessCDR(1,14979691,1,1,2) [2025-04-24 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979691', 'tblTempUsageDetail_20' ) start [2025-04-24 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979691', 'tblTempUsageDetail_20' ) end [2025-04-24 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:44:27] Production.INFO: ==6139== Releasing lock... [2025-04-24 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:44:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:45:05 [end_date_ymd] => 2025-04-24 12:45:05 [RateCDR] => 1 ) [2025-04-24 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:45:05' and `end` < '2025-04-24 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:45:19] Production.INFO: count ==5665 [2025-04-24 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:45:05 - End Time 2025-04-24 12:45:05 [2025-04-24 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979696', 'tblTempUsageDetail_20' ) start [2025-04-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979696', 'tblTempUsageDetail_20' ) end [2025-04-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979696', 'tblTempVendorCDR_20' ) start [2025-04-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979696', 'tblTempVendorCDR_20' ) end [2025-04-24 12:45:22] Production.INFO: ProcessCDR(1,14979696,1,1,2) [2025-04-24 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979696', 'tblTempUsageDetail_20' ) start [2025-04-24 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979696', 'tblTempUsageDetail_20' ) end [2025-04-24 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:45:27] Production.INFO: ==6212== Releasing lock... [2025-04-24 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:45:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:46:05 [end_date_ymd] => 2025-04-24 12:46:05 [RateCDR] => 1 ) [2025-04-24 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:46:05' and `end` < '2025-04-24 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:46:19] Production.INFO: count ==5672 [2025-04-24 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:46:05 - End Time 2025-04-24 12:46:05 [2025-04-24 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979701', 'tblTempUsageDetail_20' ) start [2025-04-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979701', 'tblTempUsageDetail_20' ) end [2025-04-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979701', 'tblTempVendorCDR_20' ) start [2025-04-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979701', 'tblTempVendorCDR_20' ) end [2025-04-24 12:46:22] Production.INFO: ProcessCDR(1,14979701,1,1,2) [2025-04-24 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979701', 'tblTempUsageDetail_20' ) start [2025-04-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979701', 'tblTempUsageDetail_20' ) end [2025-04-24 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:46:27] Production.INFO: ==6287== Releasing lock... [2025-04-24 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:46:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:47:04 [end_date_ymd] => 2025-04-24 12:47:04 [RateCDR] => 1 ) [2025-04-24 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:47:04' and `end` < '2025-04-24 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:47:18] Production.INFO: count ==5669 [2025-04-24 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:47:04 - End Time 2025-04-24 12:47:04 [2025-04-24 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979706', 'tblTempUsageDetail_20' ) start [2025-04-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979706', 'tblTempUsageDetail_20' ) end [2025-04-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979706', 'tblTempVendorCDR_20' ) start [2025-04-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979706', 'tblTempVendorCDR_20' ) end [2025-04-24 12:47:21] Production.INFO: ProcessCDR(1,14979706,1,1,2) [2025-04-24 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979706', 'tblTempUsageDetail_20' ) start [2025-04-24 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979706', 'tblTempUsageDetail_20' ) end [2025-04-24 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:47:26] Production.INFO: ==6359== Releasing lock... [2025-04-24 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:47:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:48:05 [end_date_ymd] => 2025-04-24 12:48:05 [RateCDR] => 1 ) [2025-04-24 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:48:05' and `end` < '2025-04-24 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:48:19] Production.INFO: count ==5665 [2025-04-24 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:48:05 - End Time 2025-04-24 12:48:05 [2025-04-24 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979711', 'tblTempUsageDetail_20' ) start [2025-04-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979711', 'tblTempUsageDetail_20' ) end [2025-04-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979711', 'tblTempVendorCDR_20' ) start [2025-04-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979711', 'tblTempVendorCDR_20' ) end [2025-04-24 12:48:22] Production.INFO: ProcessCDR(1,14979711,1,1,2) [2025-04-24 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979711', 'tblTempUsageDetail_20' ) start [2025-04-24 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979711', 'tblTempUsageDetail_20' ) end [2025-04-24 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:48:27] Production.INFO: ==6432== Releasing lock... [2025-04-24 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:48:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:49:06 [end_date_ymd] => 2025-04-24 12:49:06 [RateCDR] => 1 ) [2025-04-24 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:49:06' and `end` < '2025-04-24 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:49:20] Production.INFO: count ==5675 [2025-04-24 12:49:23] Production.ERROR: pbx CDR StartTime 2025-04-24 09:49:06 - End Time 2025-04-24 12:49:06 [2025-04-24 12:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979716', 'tblTempUsageDetail_20' ) start [2025-04-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979716', 'tblTempUsageDetail_20' ) end [2025-04-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979716', 'tblTempVendorCDR_20' ) start [2025-04-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979716', 'tblTempVendorCDR_20' ) end [2025-04-24 12:49:23] Production.INFO: ProcessCDR(1,14979716,1,1,2) [2025-04-24 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979716', 'tblTempUsageDetail_20' ) start [2025-04-24 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979716', 'tblTempUsageDetail_20' ) end [2025-04-24 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:49:28] Production.INFO: ==6513== Releasing lock... [2025-04-24 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:49:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:50:06 [end_date_ymd] => 2025-04-24 12:50:06 [RateCDR] => 1 ) [2025-04-24 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:50:06' and `end` < '2025-04-24 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:50:20] Production.INFO: count ==5676 [2025-04-24 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:50:06 - End Time 2025-04-24 12:50:06 [2025-04-24 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979722', 'tblTempUsageDetail_20' ) start [2025-04-24 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979722', 'tblTempUsageDetail_20' ) end [2025-04-24 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979722', 'tblTempVendorCDR_20' ) start [2025-04-24 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979722', 'tblTempVendorCDR_20' ) end [2025-04-24 12:50:23] Production.INFO: ProcessCDR(1,14979722,1,1,2) [2025-04-24 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979722', 'tblTempUsageDetail_20' ) start [2025-04-24 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979722', 'tblTempUsageDetail_20' ) end [2025-04-24 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:50:28] Production.INFO: ==6586== Releasing lock... [2025-04-24 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:50:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:51:05 [end_date_ymd] => 2025-04-24 12:51:05 [RateCDR] => 1 ) [2025-04-24 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:51:05' and `end` < '2025-04-24 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:51:19] Production.INFO: count ==5749 [2025-04-24 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:51:05 - End Time 2025-04-24 12:51:05 [2025-04-24 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979727', 'tblTempUsageDetail_20' ) start [2025-04-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979727', 'tblTempUsageDetail_20' ) end [2025-04-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979727', 'tblTempVendorCDR_20' ) start [2025-04-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979727', 'tblTempVendorCDR_20' ) end [2025-04-24 12:51:22] Production.INFO: ProcessCDR(1,14979727,1,1,2) [2025-04-24 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979727', 'tblTempUsageDetail_20' ) start [2025-04-24 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979727', 'tblTempUsageDetail_20' ) end [2025-04-24 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:51:28] Production.INFO: ==6659== Releasing lock... [2025-04-24 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:51:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:52:05 [end_date_ymd] => 2025-04-24 12:52:05 [RateCDR] => 1 ) [2025-04-24 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:52:05' and `end` < '2025-04-24 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:52:19] Production.INFO: count ==5751 [2025-04-24 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:52:05 - End Time 2025-04-24 12:52:05 [2025-04-24 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979732', 'tblTempUsageDetail_20' ) start [2025-04-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979732', 'tblTempUsageDetail_20' ) end [2025-04-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979732', 'tblTempVendorCDR_20' ) start [2025-04-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979732', 'tblTempVendorCDR_20' ) end [2025-04-24 12:52:22] Production.INFO: ProcessCDR(1,14979732,1,1,2) [2025-04-24 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979732', 'tblTempUsageDetail_20' ) start [2025-04-24 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979732', 'tblTempUsageDetail_20' ) end [2025-04-24 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:52:27] Production.INFO: ==6771== Releasing lock... [2025-04-24 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:52:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:53:05 [end_date_ymd] => 2025-04-24 12:53:05 [RateCDR] => 1 ) [2025-04-24 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:53:05' and `end` < '2025-04-24 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:53:19] Production.INFO: count ==5729 [2025-04-24 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:53:05 - End Time 2025-04-24 12:53:05 [2025-04-24 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979737', 'tblTempUsageDetail_20' ) start [2025-04-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979737', 'tblTempUsageDetail_20' ) end [2025-04-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979737', 'tblTempVendorCDR_20' ) start [2025-04-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979737', 'tblTempVendorCDR_20' ) end [2025-04-24 12:53:22] Production.INFO: ProcessCDR(1,14979737,1,1,2) [2025-04-24 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979737', 'tblTempUsageDetail_20' ) start [2025-04-24 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979737', 'tblTempUsageDetail_20' ) end [2025-04-24 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:53:27] Production.INFO: ==6843== Releasing lock... [2025-04-24 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:53:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:54:05 [end_date_ymd] => 2025-04-24 12:54:05 [RateCDR] => 1 ) [2025-04-24 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:54:05' and `end` < '2025-04-24 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:54:19] Production.INFO: count ==5727 [2025-04-24 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:54:05 - End Time 2025-04-24 12:54:05 [2025-04-24 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979742', 'tblTempUsageDetail_20' ) start [2025-04-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979742', 'tblTempUsageDetail_20' ) end [2025-04-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979742', 'tblTempVendorCDR_20' ) start [2025-04-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979742', 'tblTempVendorCDR_20' ) end [2025-04-24 12:54:21] Production.INFO: ProcessCDR(1,14979742,1,1,2) [2025-04-24 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979742', 'tblTempUsageDetail_20' ) start [2025-04-24 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979742', 'tblTempUsageDetail_20' ) end [2025-04-24 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:54:26] Production.INFO: ==6913== Releasing lock... [2025-04-24 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:54:26] Production.INFO: 71 MB #Memory Used# [2025-04-24 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:55:06 [end_date_ymd] => 2025-04-24 12:55:06 [RateCDR] => 1 ) [2025-04-24 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:55:06' and `end` < '2025-04-24 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:55:19] Production.INFO: count ==5706 [2025-04-24 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:55:06 - End Time 2025-04-24 12:55:06 [2025-04-24 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979747', 'tblTempUsageDetail_20' ) start [2025-04-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979747', 'tblTempUsageDetail_20' ) end [2025-04-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979747', 'tblTempVendorCDR_20' ) start [2025-04-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979747', 'tblTempVendorCDR_20' ) end [2025-04-24 12:55:22] Production.INFO: ProcessCDR(1,14979747,1,1,2) [2025-04-24 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979747', 'tblTempUsageDetail_20' ) start [2025-04-24 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979747', 'tblTempUsageDetail_20' ) end [2025-04-24 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:55:28] Production.INFO: ==7005== Releasing lock... [2025-04-24 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:55:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:56:06 [end_date_ymd] => 2025-04-24 12:56:06 [RateCDR] => 1 ) [2025-04-24 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:56:06' and `end` < '2025-04-24 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:56:19] Production.INFO: count ==5695 [2025-04-24 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:56:06 - End Time 2025-04-24 12:56:06 [2025-04-24 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979752', 'tblTempUsageDetail_20' ) start [2025-04-24 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979752', 'tblTempUsageDetail_20' ) end [2025-04-24 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979752', 'tblTempVendorCDR_20' ) start [2025-04-24 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979752', 'tblTempVendorCDR_20' ) end [2025-04-24 12:56:22] Production.INFO: ProcessCDR(1,14979752,1,1,2) [2025-04-24 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979752', 'tblTempUsageDetail_20' ) start [2025-04-24 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979752', 'tblTempUsageDetail_20' ) end [2025-04-24 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:56:27] Production.INFO: ==7085== Releasing lock... [2025-04-24 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:56:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:57:06 [end_date_ymd] => 2025-04-24 12:57:06 [RateCDR] => 1 ) [2025-04-24 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:57:06' and `end` < '2025-04-24 12:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:57:19] Production.INFO: count ==5698 [2025-04-24 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-24 09:57:06 - End Time 2025-04-24 12:57:06 [2025-04-24 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979757', 'tblTempUsageDetail_20' ) start [2025-04-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979757', 'tblTempUsageDetail_20' ) end [2025-04-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979757', 'tblTempVendorCDR_20' ) start [2025-04-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979757', 'tblTempVendorCDR_20' ) end [2025-04-24 12:57:22] Production.INFO: ProcessCDR(1,14979757,1,1,2) [2025-04-24 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979757', 'tblTempUsageDetail_20' ) start [2025-04-24 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979757', 'tblTempUsageDetail_20' ) end [2025-04-24 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:57:27] Production.INFO: ==7163== Releasing lock... [2025-04-24 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:57:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:58:05 [end_date_ymd] => 2025-04-24 12:58:05 [RateCDR] => 1 ) [2025-04-24 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:58:05' and `end` < '2025-04-24 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:58:19] Production.INFO: count ==5688 [2025-04-24 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:58:05 - End Time 2025-04-24 12:58:05 [2025-04-24 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979762', 'tblTempUsageDetail_20' ) start [2025-04-24 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979762', 'tblTempUsageDetail_20' ) end [2025-04-24 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979762', 'tblTempVendorCDR_20' ) start [2025-04-24 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979762', 'tblTempVendorCDR_20' ) end [2025-04-24 12:58:22] Production.INFO: ProcessCDR(1,14979762,1,1,2) [2025-04-24 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979762', 'tblTempUsageDetail_20' ) start [2025-04-24 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979762', 'tblTempUsageDetail_20' ) end [2025-04-24 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:58:27] Production.INFO: ==7263== Releasing lock... [2025-04-24 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:58:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 09:59:05 [end_date_ymd] => 2025-04-24 12:59:05 [RateCDR] => 1 ) [2025-04-24 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 09:59:05' and `end` < '2025-04-24 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 12:59:19] Production.INFO: count ==5682 [2025-04-24 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-24 09:59:05 - End Time 2025-04-24 12:59:05 [2025-04-24 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979767', 'tblTempUsageDetail_20' ) start [2025-04-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979767', 'tblTempUsageDetail_20' ) end [2025-04-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979767', 'tblTempVendorCDR_20' ) start [2025-04-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979767', 'tblTempVendorCDR_20' ) end [2025-04-24 12:59:22] Production.INFO: ProcessCDR(1,14979767,1,1,2) [2025-04-24 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979767', 'tblTempUsageDetail_20' ) start [2025-04-24 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979767', 'tblTempUsageDetail_20' ) end [2025-04-24 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 12:59:27] Production.INFO: ==7361== Releasing lock... [2025-04-24 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 12:59:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:00:05 [end_date_ymd] => 2025-04-24 13:00:05 [RateCDR] => 1 ) [2025-04-24 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:00:05' and `end` < '2025-04-24 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:00:19] Production.INFO: count ==5666 [2025-04-24 13:00:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:00:05 - End Time 2025-04-24 13:00:05 [2025-04-24 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979772', 'tblTempUsageDetail_20' ) start [2025-04-24 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979772', 'tblTempUsageDetail_20' ) end [2025-04-24 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979772', 'tblTempVendorCDR_20' ) start [2025-04-24 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979772', 'tblTempVendorCDR_20' ) end [2025-04-24 13:00:22] Production.INFO: ProcessCDR(1,14979772,1,1,2) [2025-04-24 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979772', 'tblTempUsageDetail_20' ) start [2025-04-24 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979772', 'tblTempUsageDetail_20' ) end [2025-04-24 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:00:27] Production.INFO: ==7467== Releasing lock... [2025-04-24 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:00:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:01:05 [end_date_ymd] => 2025-04-24 13:01:05 [RateCDR] => 1 ) [2025-04-24 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:01:05' and `end` < '2025-04-24 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:01:19] Production.INFO: count ==5641 [2025-04-24 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:01:05 - End Time 2025-04-24 13:01:05 [2025-04-24 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979778', 'tblTempUsageDetail_20' ) start [2025-04-24 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979778', 'tblTempUsageDetail_20' ) end [2025-04-24 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979778', 'tblTempVendorCDR_20' ) start [2025-04-24 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979778', 'tblTempVendorCDR_20' ) end [2025-04-24 13:01:22] Production.INFO: ProcessCDR(1,14979778,1,1,2) [2025-04-24 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979778', 'tblTempUsageDetail_20' ) start [2025-04-24 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979778', 'tblTempUsageDetail_20' ) end [2025-04-24 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:01:26] Production.INFO: ==7581== Releasing lock... [2025-04-24 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:01:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:02:05 [end_date_ymd] => 2025-04-24 13:02:05 [RateCDR] => 1 ) [2025-04-24 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:02:05' and `end` < '2025-04-24 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:02:19] Production.INFO: count ==5632 [2025-04-24 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:02:05 - End Time 2025-04-24 13:02:05 [2025-04-24 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979783', 'tblTempUsageDetail_20' ) start [2025-04-24 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979783', 'tblTempUsageDetail_20' ) end [2025-04-24 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979783', 'tblTempVendorCDR_20' ) start [2025-04-24 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979783', 'tblTempVendorCDR_20' ) end [2025-04-24 13:02:22] Production.INFO: ProcessCDR(1,14979783,1,1,2) [2025-04-24 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979783', 'tblTempUsageDetail_20' ) start [2025-04-24 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979783', 'tblTempUsageDetail_20' ) end [2025-04-24 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:02:27] Production.INFO: ==7682== Releasing lock... [2025-04-24 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:02:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:03:05 [end_date_ymd] => 2025-04-24 13:03:05 [RateCDR] => 1 ) [2025-04-24 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:03:05' and `end` < '2025-04-24 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:03:19] Production.INFO: count ==5625 [2025-04-24 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:03:05 - End Time 2025-04-24 13:03:05 [2025-04-24 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979788', 'tblTempUsageDetail_20' ) start [2025-04-24 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979788', 'tblTempUsageDetail_20' ) end [2025-04-24 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979788', 'tblTempVendorCDR_20' ) start [2025-04-24 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979788', 'tblTempVendorCDR_20' ) end [2025-04-24 13:03:22] Production.INFO: ProcessCDR(1,14979788,1,1,2) [2025-04-24 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979788', 'tblTempUsageDetail_20' ) start [2025-04-24 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979788', 'tblTempUsageDetail_20' ) end [2025-04-24 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:03:27] Production.INFO: ==7787== Releasing lock... [2025-04-24 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:03:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:04:05 [end_date_ymd] => 2025-04-24 13:04:05 [RateCDR] => 1 ) [2025-04-24 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:04:05' and `end` < '2025-04-24 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:04:19] Production.INFO: count ==5636 [2025-04-24 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:04:05 - End Time 2025-04-24 13:04:05 [2025-04-24 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979793', 'tblTempUsageDetail_20' ) start [2025-04-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979793', 'tblTempUsageDetail_20' ) end [2025-04-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979793', 'tblTempVendorCDR_20' ) start [2025-04-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979793', 'tblTempVendorCDR_20' ) end [2025-04-24 13:04:22] Production.INFO: ProcessCDR(1,14979793,1,1,2) [2025-04-24 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979793', 'tblTempUsageDetail_20' ) start [2025-04-24 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979793', 'tblTempUsageDetail_20' ) end [2025-04-24 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:04:27] Production.INFO: ==7886== Releasing lock... [2025-04-24 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:04:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:05:05 [end_date_ymd] => 2025-04-24 13:05:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:05:05' and `end` < '2025-04-24 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-04-24 13:05:19] Production.INFO: count ==5629 [2025-04-24 13:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:05:05 - End Time 2025-04-24 13:05:05 [2025-04-24 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979798', 'tblTempUsageDetail_20' ) start [2025-04-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979798', 'tblTempUsageDetail_20' ) end [2025-04-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979798', 'tblTempVendorCDR_20' ) start [2025-04-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979798', 'tblTempVendorCDR_20' ) end [2025-04-24 13:05:22] Production.INFO: ProcessCDR(1,14979798,1,1,2) [2025-04-24 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979798', 'tblTempUsageDetail_20' ) start [2025-04-24 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979798', 'tblTempUsageDetail_20' ) end [2025-04-24 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:05:27] Production.INFO: ==7987== Releasing lock... [2025-04-24 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:05:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:06:06 [end_date_ymd] => 2025-04-24 13:06:06 [RateCDR] => 1 ) [2025-04-24 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:06:06' and `end` < '2025-04-24 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:06:20] Production.INFO: count ==5618 [2025-04-24 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:06:06 - End Time 2025-04-24 13:06:06 [2025-04-24 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979803', 'tblTempUsageDetail_20' ) start [2025-04-24 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979803', 'tblTempUsageDetail_20' ) end [2025-04-24 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979803', 'tblTempVendorCDR_20' ) start [2025-04-24 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979803', 'tblTempVendorCDR_20' ) end [2025-04-24 13:06:23] Production.INFO: ProcessCDR(1,14979803,1,1,2) [2025-04-24 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979803', 'tblTempUsageDetail_20' ) start [2025-04-24 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979803', 'tblTempUsageDetail_20' ) end [2025-04-24 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:06:28] Production.INFO: ==8091== Releasing lock... [2025-04-24 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:06:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:07:04 [end_date_ymd] => 2025-04-24 13:07:04 [RateCDR] => 1 ) [2025-04-24 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:07:04' and `end` < '2025-04-24 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:07:18] Production.INFO: count ==5605 [2025-04-24 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:07:04 - End Time 2025-04-24 13:07:04 [2025-04-24 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979808', 'tblTempUsageDetail_20' ) start [2025-04-24 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979808', 'tblTempUsageDetail_20' ) end [2025-04-24 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979808', 'tblTempVendorCDR_20' ) start [2025-04-24 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979808', 'tblTempVendorCDR_20' ) end [2025-04-24 13:07:21] Production.INFO: ProcessCDR(1,14979808,1,1,2) [2025-04-24 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979808', 'tblTempUsageDetail_20' ) start [2025-04-24 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979808', 'tblTempUsageDetail_20' ) end [2025-04-24 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:07:26] Production.INFO: ==8230== Releasing lock... [2025-04-24 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:07:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:08:05 [end_date_ymd] => 2025-04-24 13:08:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:08:05' and `end` < '2025-04-24 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:08:19] Production.INFO: count ==5604 [2025-04-24 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:08:05 - End Time 2025-04-24 13:08:05 [2025-04-24 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979813', 'tblTempUsageDetail_20' ) start [2025-04-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979813', 'tblTempUsageDetail_20' ) end [2025-04-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979813', 'tblTempVendorCDR_20' ) start [2025-04-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979813', 'tblTempVendorCDR_20' ) end [2025-04-24 13:08:22] Production.INFO: ProcessCDR(1,14979813,1,1,2) [2025-04-24 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979813', 'tblTempUsageDetail_20' ) start [2025-04-24 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979813', 'tblTempUsageDetail_20' ) end [2025-04-24 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:08:27] Production.INFO: ==8329== Releasing lock... [2025-04-24 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:08:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:09:05 [end_date_ymd] => 2025-04-24 13:09:05 [RateCDR] => 1 ) [2025-04-24 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:09:05' and `end` < '2025-04-24 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:09:19] Production.INFO: count ==5601 [2025-04-24 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:09:05 - End Time 2025-04-24 13:09:05 [2025-04-24 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979818', 'tblTempUsageDetail_20' ) start [2025-04-24 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979818', 'tblTempUsageDetail_20' ) end [2025-04-24 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979818', 'tblTempVendorCDR_20' ) start [2025-04-24 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979818', 'tblTempVendorCDR_20' ) end [2025-04-24 13:09:22] Production.INFO: ProcessCDR(1,14979818,1,1,2) [2025-04-24 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979818', 'tblTempUsageDetail_20' ) start [2025-04-24 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979818', 'tblTempUsageDetail_20' ) end [2025-04-24 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:09:27] Production.INFO: ==8432== Releasing lock... [2025-04-24 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:09:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:10:06 [end_date_ymd] => 2025-04-24 13:10:06 [RateCDR] => 1 ) [2025-04-24 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:10:06' and `end` < '2025-04-24 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:10:20] Production.INFO: count ==5584 [2025-04-24 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:10:06 - End Time 2025-04-24 13:10:06 [2025-04-24 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979824', 'tblTempUsageDetail_20' ) start [2025-04-24 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979824', 'tblTempUsageDetail_20' ) end [2025-04-24 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979824', 'tblTempVendorCDR_20' ) start [2025-04-24 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979824', 'tblTempVendorCDR_20' ) end [2025-04-24 13:10:23] Production.INFO: ProcessCDR(1,14979824,1,1,2) [2025-04-24 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979824', 'tblTempUsageDetail_20' ) start [2025-04-24 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979824', 'tblTempUsageDetail_20' ) end [2025-04-24 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:10:28] Production.INFO: ==8533== Releasing lock... [2025-04-24 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:10:28] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:11:05 [end_date_ymd] => 2025-04-24 13:11:05 [RateCDR] => 1 ) [2025-04-24 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:11:05' and `end` < '2025-04-24 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:11:19] Production.INFO: count ==5540 [2025-04-24 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:11:05 - End Time 2025-04-24 13:11:05 [2025-04-24 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979829', 'tblTempUsageDetail_20' ) start [2025-04-24 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979829', 'tblTempUsageDetail_20' ) end [2025-04-24 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979829', 'tblTempVendorCDR_20' ) start [2025-04-24 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979829', 'tblTempVendorCDR_20' ) end [2025-04-24 13:11:22] Production.INFO: ProcessCDR(1,14979829,1,1,2) [2025-04-24 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979829', 'tblTempUsageDetail_20' ) start [2025-04-24 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979829', 'tblTempUsageDetail_20' ) end [2025-04-24 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:11:26] Production.INFO: ==8648== Releasing lock... [2025-04-24 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:11:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:12:05 [end_date_ymd] => 2025-04-24 13:12:05 [RateCDR] => 1 ) [2025-04-24 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:12:05' and `end` < '2025-04-24 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:12:19] Production.INFO: count ==5536 [2025-04-24 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:12:05 - End Time 2025-04-24 13:12:05 [2025-04-24 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979834', 'tblTempUsageDetail_20' ) start [2025-04-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979834', 'tblTempUsageDetail_20' ) end [2025-04-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979834', 'tblTempVendorCDR_20' ) start [2025-04-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979834', 'tblTempVendorCDR_20' ) end [2025-04-24 13:12:22] Production.INFO: ProcessCDR(1,14979834,1,1,2) [2025-04-24 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979834', 'tblTempUsageDetail_20' ) start [2025-04-24 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979834', 'tblTempUsageDetail_20' ) end [2025-04-24 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:12:27] Production.INFO: ==8757== Releasing lock... [2025-04-24 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:12:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:13:05 [end_date_ymd] => 2025-04-24 13:13:05 [RateCDR] => 1 ) [2025-04-24 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:13:05' and `end` < '2025-04-24 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:13:19] Production.INFO: count ==5523 [2025-04-24 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:13:05 - End Time 2025-04-24 13:13:05 [2025-04-24 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979839', 'tblTempUsageDetail_20' ) start [2025-04-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979839', 'tblTempUsageDetail_20' ) end [2025-04-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979839', 'tblTempVendorCDR_20' ) start [2025-04-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979839', 'tblTempVendorCDR_20' ) end [2025-04-24 13:13:22] Production.INFO: ProcessCDR(1,14979839,1,1,2) [2025-04-24 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979839', 'tblTempUsageDetail_20' ) start [2025-04-24 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979839', 'tblTempUsageDetail_20' ) end [2025-04-24 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:13:26] Production.INFO: ==8862== Releasing lock... [2025-04-24 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:13:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:14:05 [end_date_ymd] => 2025-04-24 13:14:05 [RateCDR] => 1 ) [2025-04-24 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:14:05' and `end` < '2025-04-24 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:14:19] Production.INFO: count ==5536 [2025-04-24 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:14:05 - End Time 2025-04-24 13:14:05 [2025-04-24 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979844', 'tblTempUsageDetail_20' ) start [2025-04-24 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979844', 'tblTempUsageDetail_20' ) end [2025-04-24 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979844', 'tblTempVendorCDR_20' ) start [2025-04-24 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979844', 'tblTempVendorCDR_20' ) end [2025-04-24 13:14:22] Production.INFO: ProcessCDR(1,14979844,1,1,2) [2025-04-24 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979844', 'tblTempUsageDetail_20' ) start [2025-04-24 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979844', 'tblTempUsageDetail_20' ) end [2025-04-24 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:14:27] Production.INFO: ==8966== Releasing lock... [2025-04-24 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:14:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:15:05 [end_date_ymd] => 2025-04-24 13:15:05 [RateCDR] => 1 ) [2025-04-24 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:15:05' and `end` < '2025-04-24 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:15:18] Production.INFO: count ==5536 [2025-04-24 13:15:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:15:05 - End Time 2025-04-24 13:15:05 [2025-04-24 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979849', 'tblTempUsageDetail_20' ) start [2025-04-24 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979849', 'tblTempUsageDetail_20' ) end [2025-04-24 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979849', 'tblTempVendorCDR_20' ) start [2025-04-24 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979849', 'tblTempVendorCDR_20' ) end [2025-04-24 13:15:21] Production.INFO: ProcessCDR(1,14979849,1,1,2) [2025-04-24 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979849', 'tblTempUsageDetail_20' ) start [2025-04-24 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979849', 'tblTempUsageDetail_20' ) end [2025-04-24 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:15:27] Production.INFO: ==9045== Releasing lock... [2025-04-24 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:15:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:16:05 [end_date_ymd] => 2025-04-24 13:16:05 [RateCDR] => 1 ) [2025-04-24 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:16:05' and `end` < '2025-04-24 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:16:19] Production.INFO: count ==5540 [2025-04-24 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:16:05 - End Time 2025-04-24 13:16:05 [2025-04-24 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979854', 'tblTempUsageDetail_20' ) start [2025-04-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979854', 'tblTempUsageDetail_20' ) end [2025-04-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979854', 'tblTempVendorCDR_20' ) start [2025-04-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979854', 'tblTempVendorCDR_20' ) end [2025-04-24 13:16:22] Production.INFO: ProcessCDR(1,14979854,1,1,2) [2025-04-24 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979854', 'tblTempUsageDetail_20' ) start [2025-04-24 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979854', 'tblTempUsageDetail_20' ) end [2025-04-24 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:16:27] Production.INFO: ==9126== Releasing lock... [2025-04-24 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:16:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:17:05 [end_date_ymd] => 2025-04-24 13:17:05 [RateCDR] => 1 ) [2025-04-24 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:17:05' and `end` < '2025-04-24 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:17:19] Production.INFO: count ==5545 [2025-04-24 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:17:05 - End Time 2025-04-24 13:17:05 [2025-04-24 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979859', 'tblTempUsageDetail_20' ) start [2025-04-24 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979859', 'tblTempUsageDetail_20' ) end [2025-04-24 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979859', 'tblTempVendorCDR_20' ) start [2025-04-24 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979859', 'tblTempVendorCDR_20' ) end [2025-04-24 13:17:21] Production.INFO: ProcessCDR(1,14979859,1,1,2) [2025-04-24 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979859', 'tblTempUsageDetail_20' ) start [2025-04-24 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979859', 'tblTempUsageDetail_20' ) end [2025-04-24 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:17:26] Production.INFO: ==9200== Releasing lock... [2025-04-24 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:17:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:18:06 [end_date_ymd] => 2025-04-24 13:18:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:18:06' and `end` < '2025-04-24 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-04-24 13:18:20] Production.INFO: count ==5516 [2025-04-24 13:18:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:18:06 - End Time 2025-04-24 13:18:06 [2025-04-24 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979864', 'tblTempUsageDetail_20' ) start [2025-04-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979864', 'tblTempUsageDetail_20' ) end [2025-04-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979864', 'tblTempVendorCDR_20' ) start [2025-04-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979864', 'tblTempVendorCDR_20' ) end [2025-04-24 13:18:22] Production.INFO: ProcessCDR(1,14979864,1,1,2) [2025-04-24 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979864', 'tblTempUsageDetail_20' ) start [2025-04-24 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979864', 'tblTempUsageDetail_20' ) end [2025-04-24 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:18:27] Production.INFO: ==9288== Releasing lock... [2025-04-24 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:18:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:19:05 [end_date_ymd] => 2025-04-24 13:19:05 [RateCDR] => 1 ) [2025-04-24 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:19:05' and `end` < '2025-04-24 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:19:20] Production.INFO: count ==5512 [2025-04-24 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:19:05 - End Time 2025-04-24 13:19:05 [2025-04-24 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979869', 'tblTempUsageDetail_20' ) start [2025-04-24 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979869', 'tblTempUsageDetail_20' ) end [2025-04-24 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979869', 'tblTempVendorCDR_20' ) start [2025-04-24 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979869', 'tblTempVendorCDR_20' ) end [2025-04-24 13:19:23] Production.INFO: ProcessCDR(1,14979869,1,1,2) [2025-04-24 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979869', 'tblTempUsageDetail_20' ) start [2025-04-24 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979869', 'tblTempUsageDetail_20' ) end [2025-04-24 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:19:28] Production.INFO: ==9368== Releasing lock... [2025-04-24 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:19:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:20:06 [end_date_ymd] => 2025-04-24 13:20:06 [RateCDR] => 1 ) [2025-04-24 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:20:06' and `end` < '2025-04-24 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:20:20] Production.INFO: count ==5507 [2025-04-24 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:20:06 - End Time 2025-04-24 13:20:06 [2025-04-24 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979875', 'tblTempUsageDetail_20' ) start [2025-04-24 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979875', 'tblTempUsageDetail_20' ) end [2025-04-24 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979875', 'tblTempVendorCDR_20' ) start [2025-04-24 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979875', 'tblTempVendorCDR_20' ) end [2025-04-24 13:20:23] Production.INFO: ProcessCDR(1,14979875,1,1,2) [2025-04-24 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979875', 'tblTempUsageDetail_20' ) start [2025-04-24 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979875', 'tblTempUsageDetail_20' ) end [2025-04-24 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:20:28] Production.INFO: ==9440== Releasing lock... [2025-04-24 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:20:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:21:05 [end_date_ymd] => 2025-04-24 13:21:05 [RateCDR] => 1 ) [2025-04-24 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:21:05' and `end` < '2025-04-24 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:21:19] Production.INFO: count ==5540 [2025-04-24 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:21:05 - End Time 2025-04-24 13:21:05 [2025-04-24 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979880', 'tblTempUsageDetail_20' ) start [2025-04-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979880', 'tblTempUsageDetail_20' ) end [2025-04-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979880', 'tblTempVendorCDR_20' ) start [2025-04-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979880', 'tblTempVendorCDR_20' ) end [2025-04-24 13:21:22] Production.INFO: ProcessCDR(1,14979880,1,1,2) [2025-04-24 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979880', 'tblTempUsageDetail_20' ) start [2025-04-24 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979880', 'tblTempUsageDetail_20' ) end [2025-04-24 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:21:27] Production.INFO: ==9519== Releasing lock... [2025-04-24 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:21:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:22:05 [end_date_ymd] => 2025-04-24 13:22:05 [RateCDR] => 1 ) [2025-04-24 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:22:05' and `end` < '2025-04-24 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:22:19] Production.INFO: count ==5576 [2025-04-24 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:22:05 - End Time 2025-04-24 13:22:05 [2025-04-24 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979885', 'tblTempUsageDetail_20' ) start [2025-04-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979885', 'tblTempUsageDetail_20' ) end [2025-04-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979885', 'tblTempVendorCDR_20' ) start [2025-04-24 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979885', 'tblTempVendorCDR_20' ) end [2025-04-24 13:22:23] Production.INFO: ProcessCDR(1,14979885,1,1,2) [2025-04-24 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979885', 'tblTempUsageDetail_20' ) start [2025-04-24 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979885', 'tblTempUsageDetail_20' ) end [2025-04-24 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:22:28] Production.INFO: ==9589== Releasing lock... [2025-04-24 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:22:28] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:23:05 [end_date_ymd] => 2025-04-24 13:23:05 [RateCDR] => 1 ) [2025-04-24 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:23:05' and `end` < '2025-04-24 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:23:19] Production.INFO: count ==5588 [2025-04-24 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:23:05 - End Time 2025-04-24 13:23:05 [2025-04-24 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979890', 'tblTempUsageDetail_20' ) start [2025-04-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979890', 'tblTempUsageDetail_20' ) end [2025-04-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979890', 'tblTempVendorCDR_20' ) start [2025-04-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979890', 'tblTempVendorCDR_20' ) end [2025-04-24 13:23:22] Production.INFO: ProcessCDR(1,14979890,1,1,2) [2025-04-24 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979890', 'tblTempUsageDetail_20' ) start [2025-04-24 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979890', 'tblTempUsageDetail_20' ) end [2025-04-24 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:23:27] Production.INFO: ==9705== Releasing lock... [2025-04-24 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:23:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:24:05 [end_date_ymd] => 2025-04-24 13:24:05 [RateCDR] => 1 ) [2025-04-24 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:24:05' and `end` < '2025-04-24 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:24:19] Production.INFO: count ==5591 [2025-04-24 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:24:05 - End Time 2025-04-24 13:24:05 [2025-04-24 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979895', 'tblTempUsageDetail_20' ) start [2025-04-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979895', 'tblTempUsageDetail_20' ) end [2025-04-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979895', 'tblTempVendorCDR_20' ) start [2025-04-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979895', 'tblTempVendorCDR_20' ) end [2025-04-24 13:24:22] Production.INFO: ProcessCDR(1,14979895,1,1,2) [2025-04-24 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979895', 'tblTempUsageDetail_20' ) start [2025-04-24 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979895', 'tblTempUsageDetail_20' ) end [2025-04-24 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:24:27] Production.INFO: ==9777== Releasing lock... [2025-04-24 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:24:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:25:05 [end_date_ymd] => 2025-04-24 13:25:05 [RateCDR] => 1 ) [2025-04-24 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:25:05' and `end` < '2025-04-24 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:25:19] Production.INFO: count ==5634 [2025-04-24 13:25:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:25:05 - End Time 2025-04-24 13:25:05 [2025-04-24 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979900', 'tblTempUsageDetail_20' ) start [2025-04-24 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979900', 'tblTempUsageDetail_20' ) end [2025-04-24 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979900', 'tblTempVendorCDR_20' ) start [2025-04-24 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979900', 'tblTempVendorCDR_20' ) end [2025-04-24 13:25:22] Production.INFO: ProcessCDR(1,14979900,1,1,2) [2025-04-24 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979900', 'tblTempUsageDetail_20' ) start [2025-04-24 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979900', 'tblTempUsageDetail_20' ) end [2025-04-24 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:25:27] Production.INFO: ==9852== Releasing lock... [2025-04-24 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:25:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:26:06 [end_date_ymd] => 2025-04-24 13:26:06 [RateCDR] => 1 ) [2025-04-24 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:26:06' and `end` < '2025-04-24 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:26:20] Production.INFO: count ==5612 [2025-04-24 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:26:06 - End Time 2025-04-24 13:26:06 [2025-04-24 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979905', 'tblTempUsageDetail_20' ) start [2025-04-24 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979905', 'tblTempUsageDetail_20' ) end [2025-04-24 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979905', 'tblTempVendorCDR_20' ) start [2025-04-24 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979905', 'tblTempVendorCDR_20' ) end [2025-04-24 13:26:23] Production.INFO: ProcessCDR(1,14979905,1,1,2) [2025-04-24 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979905', 'tblTempUsageDetail_20' ) start [2025-04-24 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979905', 'tblTempUsageDetail_20' ) end [2025-04-24 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:26:28] Production.INFO: ==9931== Releasing lock... [2025-04-24 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:26:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:27:05 [end_date_ymd] => 2025-04-24 13:27:05 [RateCDR] => 1 ) [2025-04-24 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:27:05' and `end` < '2025-04-24 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:27:19] Production.INFO: count ==5600 [2025-04-24 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:27:05 - End Time 2025-04-24 13:27:05 [2025-04-24 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979910', 'tblTempUsageDetail_20' ) start [2025-04-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979910', 'tblTempUsageDetail_20' ) end [2025-04-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979910', 'tblTempVendorCDR_20' ) start [2025-04-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979910', 'tblTempVendorCDR_20' ) end [2025-04-24 13:27:22] Production.INFO: ProcessCDR(1,14979910,1,1,2) [2025-04-24 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979910', 'tblTempUsageDetail_20' ) start [2025-04-24 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979910', 'tblTempUsageDetail_20' ) end [2025-04-24 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:27:27] Production.INFO: ==10003== Releasing lock... [2025-04-24 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:27:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:28:05 [end_date_ymd] => 2025-04-24 13:28:05 [RateCDR] => 1 ) [2025-04-24 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:28:05' and `end` < '2025-04-24 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:28:19] Production.INFO: count ==5593 [2025-04-24 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:28:05 - End Time 2025-04-24 13:28:05 [2025-04-24 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979915', 'tblTempUsageDetail_20' ) start [2025-04-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979915', 'tblTempUsageDetail_20' ) end [2025-04-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979915', 'tblTempVendorCDR_20' ) start [2025-04-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979915', 'tblTempVendorCDR_20' ) end [2025-04-24 13:28:22] Production.INFO: ProcessCDR(1,14979915,1,1,2) [2025-04-24 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979915', 'tblTempUsageDetail_20' ) start [2025-04-24 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979915', 'tblTempUsageDetail_20' ) end [2025-04-24 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:28:27] Production.INFO: ==10075== Releasing lock... [2025-04-24 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:28:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:29:05 [end_date_ymd] => 2025-04-24 13:29:05 [RateCDR] => 1 ) [2025-04-24 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:29:05' and `end` < '2025-04-24 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:29:19] Production.INFO: count ==5604 [2025-04-24 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:29:05 - End Time 2025-04-24 13:29:05 [2025-04-24 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979920', 'tblTempUsageDetail_20' ) start [2025-04-24 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979920', 'tblTempUsageDetail_20' ) end [2025-04-24 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979920', 'tblTempVendorCDR_20' ) start [2025-04-24 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979920', 'tblTempVendorCDR_20' ) end [2025-04-24 13:29:22] Production.INFO: ProcessCDR(1,14979920,1,1,2) [2025-04-24 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979920', 'tblTempUsageDetail_20' ) start [2025-04-24 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979920', 'tblTempUsageDetail_20' ) end [2025-04-24 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:29:27] Production.INFO: ==10148== Releasing lock... [2025-04-24 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:29:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:30:06 [end_date_ymd] => 2025-04-24 13:30:06 [RateCDR] => 1 ) [2025-04-24 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:30:06' and `end` < '2025-04-24 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:30:21] Production.INFO: count ==5622 [2025-04-24 13:30:23] Production.ERROR: pbx CDR StartTime 2025-04-24 10:30:06 - End Time 2025-04-24 13:30:06 [2025-04-24 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979926', 'tblTempUsageDetail_20' ) start [2025-04-24 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979926', 'tblTempUsageDetail_20' ) end [2025-04-24 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979926', 'tblTempVendorCDR_20' ) start [2025-04-24 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979926', 'tblTempVendorCDR_20' ) end [2025-04-24 13:30:24] Production.INFO: ProcessCDR(1,14979926,1,1,2) [2025-04-24 13:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979926', 'tblTempUsageDetail_20' ) start [2025-04-24 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979926', 'tblTempUsageDetail_20' ) end [2025-04-24 13:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:30:29] Production.INFO: ==10233== Releasing lock... [2025-04-24 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:30:29] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:31:04 [end_date_ymd] => 2025-04-24 13:31:04 [RateCDR] => 1 ) [2025-04-24 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:31:04' and `end` < '2025-04-24 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:31:18] Production.INFO: count ==5611 [2025-04-24 13:31:20] Production.ERROR: pbx CDR StartTime 2025-04-24 10:31:04 - End Time 2025-04-24 13:31:04 [2025-04-24 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979931', 'tblTempUsageDetail_20' ) start [2025-04-24 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979931', 'tblTempUsageDetail_20' ) end [2025-04-24 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979931', 'tblTempVendorCDR_20' ) start [2025-04-24 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979931', 'tblTempVendorCDR_20' ) end [2025-04-24 13:31:21] Production.INFO: ProcessCDR(1,14979931,1,1,2) [2025-04-24 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979931', 'tblTempUsageDetail_20' ) start [2025-04-24 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979931', 'tblTempUsageDetail_20' ) end [2025-04-24 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:31:26] Production.INFO: ==10312== Releasing lock... [2025-04-24 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:31:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:32:05 [end_date_ymd] => 2025-04-24 13:32:05 [RateCDR] => 1 ) [2025-04-24 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:32:05' and `end` < '2025-04-24 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:32:19] Production.INFO: count ==5600 [2025-04-24 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:32:05 - End Time 2025-04-24 13:32:05 [2025-04-24 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979936', 'tblTempUsageDetail_20' ) start [2025-04-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979936', 'tblTempUsageDetail_20' ) end [2025-04-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979936', 'tblTempVendorCDR_20' ) start [2025-04-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979936', 'tblTempVendorCDR_20' ) end [2025-04-24 13:32:21] Production.INFO: ProcessCDR(1,14979936,1,1,2) [2025-04-24 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979936', 'tblTempUsageDetail_20' ) start [2025-04-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979936', 'tblTempUsageDetail_20' ) end [2025-04-24 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:32:26] Production.INFO: ==10388== Releasing lock... [2025-04-24 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:32:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:33:05 [end_date_ymd] => 2025-04-24 13:33:05 [RateCDR] => 1 ) [2025-04-24 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:33:05' and `end` < '2025-04-24 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:33:19] Production.INFO: count ==5599 [2025-04-24 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:33:05 - End Time 2025-04-24 13:33:05 [2025-04-24 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979941', 'tblTempUsageDetail_20' ) start [2025-04-24 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979941', 'tblTempUsageDetail_20' ) end [2025-04-24 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979941', 'tblTempVendorCDR_20' ) start [2025-04-24 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979941', 'tblTempVendorCDR_20' ) end [2025-04-24 13:33:21] Production.INFO: ProcessCDR(1,14979941,1,1,2) [2025-04-24 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979941', 'tblTempUsageDetail_20' ) start [2025-04-24 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979941', 'tblTempUsageDetail_20' ) end [2025-04-24 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:33:27] Production.INFO: ==10459== Releasing lock... [2025-04-24 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:33:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:34:05 [end_date_ymd] => 2025-04-24 13:34:05 [RateCDR] => 1 ) [2025-04-24 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:34:05' and `end` < '2025-04-24 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:34:19] Production.INFO: count ==5613 [2025-04-24 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:34:05 - End Time 2025-04-24 13:34:05 [2025-04-24 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979946', 'tblTempUsageDetail_20' ) start [2025-04-24 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979946', 'tblTempUsageDetail_20' ) end [2025-04-24 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979946', 'tblTempVendorCDR_20' ) start [2025-04-24 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979946', 'tblTempVendorCDR_20' ) end [2025-04-24 13:34:22] Production.INFO: ProcessCDR(1,14979946,1,1,2) [2025-04-24 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979946', 'tblTempUsageDetail_20' ) start [2025-04-24 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979946', 'tblTempUsageDetail_20' ) end [2025-04-24 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:34:26] Production.INFO: ==10530== Releasing lock... [2025-04-24 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:34:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:35:04 [end_date_ymd] => 2025-04-24 13:35:04 [RateCDR] => 1 ) [2025-04-24 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:35:04' and `end` < '2025-04-24 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:35:19] Production.INFO: count ==5630 [2025-04-24 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:35:04 - End Time 2025-04-24 13:35:04 [2025-04-24 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979951', 'tblTempUsageDetail_20' ) start [2025-04-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979951', 'tblTempUsageDetail_20' ) end [2025-04-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979951', 'tblTempVendorCDR_20' ) start [2025-04-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979951', 'tblTempVendorCDR_20' ) end [2025-04-24 13:35:22] Production.INFO: ProcessCDR(1,14979951,1,1,2) [2025-04-24 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979951', 'tblTempUsageDetail_20' ) start [2025-04-24 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979951', 'tblTempUsageDetail_20' ) end [2025-04-24 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:35:27] Production.INFO: ==10604== Releasing lock... [2025-04-24 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:35:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:36:06 [end_date_ymd] => 2025-04-24 13:36:06 [RateCDR] => 1 ) [2025-04-24 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:36:06' and `end` < '2025-04-24 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:36:20] Production.INFO: count ==5616 [2025-04-24 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:36:06 - End Time 2025-04-24 13:36:06 [2025-04-24 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979956', 'tblTempUsageDetail_20' ) start [2025-04-24 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979956', 'tblTempUsageDetail_20' ) end [2025-04-24 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979956', 'tblTempVendorCDR_20' ) start [2025-04-24 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979956', 'tblTempVendorCDR_20' ) end [2025-04-24 13:36:22] Production.INFO: ProcessCDR(1,14979956,1,1,2) [2025-04-24 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979956', 'tblTempUsageDetail_20' ) start [2025-04-24 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979956', 'tblTempUsageDetail_20' ) end [2025-04-24 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:36:28] Production.INFO: ==10675== Releasing lock... [2025-04-24 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:36:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:37:05 [end_date_ymd] => 2025-04-24 13:37:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:37:05' and `end` < '2025-04-24 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-04-24 13:37:19] Production.INFO: count ==5607 [2025-04-24 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:37:05 - End Time 2025-04-24 13:37:05 [2025-04-24 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979961', 'tblTempUsageDetail_20' ) start [2025-04-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979961', 'tblTempUsageDetail_20' ) end [2025-04-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979961', 'tblTempVendorCDR_20' ) start [2025-04-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979961', 'tblTempVendorCDR_20' ) end [2025-04-24 13:37:22] Production.INFO: ProcessCDR(1,14979961,1,1,2) [2025-04-24 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979961', 'tblTempUsageDetail_20' ) start [2025-04-24 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979961', 'tblTempUsageDetail_20' ) end [2025-04-24 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:37:26] Production.INFO: ==10752== Releasing lock... [2025-04-24 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:37:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:38:05 [end_date_ymd] => 2025-04-24 13:38:05 [RateCDR] => 1 ) [2025-04-24 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:38:05' and `end` < '2025-04-24 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:38:19] Production.INFO: count ==5614 [2025-04-24 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:38:05 - End Time 2025-04-24 13:38:05 [2025-04-24 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979966', 'tblTempUsageDetail_20' ) start [2025-04-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979966', 'tblTempUsageDetail_20' ) end [2025-04-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979966', 'tblTempVendorCDR_20' ) start [2025-04-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979966', 'tblTempVendorCDR_20' ) end [2025-04-24 13:38:22] Production.INFO: ProcessCDR(1,14979966,1,1,2) [2025-04-24 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979966', 'tblTempUsageDetail_20' ) start [2025-04-24 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979966', 'tblTempUsageDetail_20' ) end [2025-04-24 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:38:27] Production.INFO: ==10862== Releasing lock... [2025-04-24 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:38:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:39:05 [end_date_ymd] => 2025-04-24 13:39:05 [RateCDR] => 1 ) [2025-04-24 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:39:05' and `end` < '2025-04-24 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:39:19] Production.INFO: count ==5615 [2025-04-24 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:39:05 - End Time 2025-04-24 13:39:05 [2025-04-24 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979971', 'tblTempUsageDetail_20' ) start [2025-04-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979971', 'tblTempUsageDetail_20' ) end [2025-04-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979971', 'tblTempVendorCDR_20' ) start [2025-04-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979971', 'tblTempVendorCDR_20' ) end [2025-04-24 13:39:22] Production.INFO: ProcessCDR(1,14979971,1,1,2) [2025-04-24 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979971', 'tblTempUsageDetail_20' ) start [2025-04-24 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979971', 'tblTempUsageDetail_20' ) end [2025-04-24 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:39:27] Production.INFO: ==10933== Releasing lock... [2025-04-24 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:39:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:40:06 [end_date_ymd] => 2025-04-24 13:40:06 [RateCDR] => 1 ) [2025-04-24 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:40:06' and `end` < '2025-04-24 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:40:20] Production.INFO: count ==5617 [2025-04-24 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:40:06 - End Time 2025-04-24 13:40:06 [2025-04-24 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979977', 'tblTempUsageDetail_20' ) start [2025-04-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979977', 'tblTempUsageDetail_20' ) end [2025-04-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979977', 'tblTempVendorCDR_20' ) start [2025-04-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979977', 'tblTempVendorCDR_20' ) end [2025-04-24 13:40:23] Production.INFO: ProcessCDR(1,14979977,1,1,2) [2025-04-24 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979977', 'tblTempUsageDetail_20' ) start [2025-04-24 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979977', 'tblTempUsageDetail_20' ) end [2025-04-24 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:40:28] Production.INFO: ==11007== Releasing lock... [2025-04-24 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:40:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:41:05 [end_date_ymd] => 2025-04-24 13:41:05 [RateCDR] => 1 ) [2025-04-24 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:41:05' and `end` < '2025-04-24 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:41:19] Production.INFO: count ==5625 [2025-04-24 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:41:05 - End Time 2025-04-24 13:41:05 [2025-04-24 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979982', 'tblTempUsageDetail_20' ) start [2025-04-24 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979982', 'tblTempUsageDetail_20' ) end [2025-04-24 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979982', 'tblTempVendorCDR_20' ) start [2025-04-24 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979982', 'tblTempVendorCDR_20' ) end [2025-04-24 13:41:22] Production.INFO: ProcessCDR(1,14979982,1,1,2) [2025-04-24 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979982', 'tblTempUsageDetail_20' ) start [2025-04-24 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979982', 'tblTempUsageDetail_20' ) end [2025-04-24 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:41:27] Production.INFO: ==11083== Releasing lock... [2025-04-24 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:41:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:42:05 [end_date_ymd] => 2025-04-24 13:42:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:42:05' and `end` < '2025-04-24 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-04-24 13:42:19] Production.INFO: count ==5647 [2025-04-24 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:42:05 - End Time 2025-04-24 13:42:05 [2025-04-24 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979987', 'tblTempUsageDetail_20' ) start [2025-04-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979987', 'tblTempUsageDetail_20' ) end [2025-04-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979987', 'tblTempVendorCDR_20' ) start [2025-04-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979987', 'tblTempVendorCDR_20' ) end [2025-04-24 13:42:22] Production.INFO: ProcessCDR(1,14979987,1,1,2) [2025-04-24 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979987', 'tblTempUsageDetail_20' ) start [2025-04-24 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979987', 'tblTempUsageDetail_20' ) end [2025-04-24 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:42:27] Production.INFO: ==11156== Releasing lock... [2025-04-24 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:42:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:43:06 [end_date_ymd] => 2025-04-24 13:43:06 [RateCDR] => 1 ) [2025-04-24 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:43:06' and `end` < '2025-04-24 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:43:20] Production.INFO: count ==5645 [2025-04-24 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:43:06 - End Time 2025-04-24 13:43:06 [2025-04-24 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979992', 'tblTempUsageDetail_20' ) start [2025-04-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979992', 'tblTempUsageDetail_20' ) end [2025-04-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979992', 'tblTempVendorCDR_20' ) start [2025-04-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979992', 'tblTempVendorCDR_20' ) end [2025-04-24 13:43:23] Production.INFO: ProcessCDR(1,14979992,1,1,2) [2025-04-24 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979992', 'tblTempUsageDetail_20' ) start [2025-04-24 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979992', 'tblTempUsageDetail_20' ) end [2025-04-24 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:43:28] Production.INFO: ==11235== Releasing lock... [2025-04-24 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:43:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:44:06 [end_date_ymd] => 2025-04-24 13:44:06 [RateCDR] => 1 ) [2025-04-24 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:44:06' and `end` < '2025-04-24 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:44:19] Production.INFO: count ==5621 [2025-04-24 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:44:06 - End Time 2025-04-24 13:44:06 [2025-04-24 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979997', 'tblTempUsageDetail_20' ) start [2025-04-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14979997', 'tblTempUsageDetail_20' ) end [2025-04-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979997', 'tblTempVendorCDR_20' ) start [2025-04-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14979997', 'tblTempVendorCDR_20' ) end [2025-04-24 13:44:22] Production.INFO: ProcessCDR(1,14979997,1,1,2) [2025-04-24 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14979997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14979997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14979997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14979997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979997', 'tblTempUsageDetail_20' ) start [2025-04-24 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14979997', 'tblTempUsageDetail_20' ) end [2025-04-24 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:44:27] Production.INFO: ==11306== Releasing lock... [2025-04-24 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:44:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:45:05 [end_date_ymd] => 2025-04-24 13:45:05 [RateCDR] => 1 ) [2025-04-24 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:45:05' and `end` < '2025-04-24 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:45:19] Production.INFO: count ==5605 [2025-04-24 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:45:05 - End Time 2025-04-24 13:45:05 [2025-04-24 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980002', 'tblTempUsageDetail_20' ) start [2025-04-24 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980002', 'tblTempUsageDetail_20' ) end [2025-04-24 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980002', 'tblTempVendorCDR_20' ) start [2025-04-24 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980002', 'tblTempVendorCDR_20' ) end [2025-04-24 13:45:22] Production.INFO: ProcessCDR(1,14980002,1,1,2) [2025-04-24 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980002', 'tblTempUsageDetail_20' ) start [2025-04-24 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980002', 'tblTempUsageDetail_20' ) end [2025-04-24 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:45:27] Production.INFO: ==11378== Releasing lock... [2025-04-24 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:45:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:46:05 [end_date_ymd] => 2025-04-24 13:46:05 [RateCDR] => 1 ) [2025-04-24 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:46:05' and `end` < '2025-04-24 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:46:18] Production.INFO: count ==5597 [2025-04-24 13:46:20] Production.ERROR: pbx CDR StartTime 2025-04-24 10:46:05 - End Time 2025-04-24 13:46:05 [2025-04-24 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980007', 'tblTempUsageDetail_20' ) start [2025-04-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980007', 'tblTempUsageDetail_20' ) end [2025-04-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980007', 'tblTempVendorCDR_20' ) start [2025-04-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980007', 'tblTempVendorCDR_20' ) end [2025-04-24 13:46:21] Production.INFO: ProcessCDR(1,14980007,1,1,2) [2025-04-24 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980007', 'tblTempUsageDetail_20' ) start [2025-04-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980007', 'tblTempUsageDetail_20' ) end [2025-04-24 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:46:26] Production.INFO: ==11452== Releasing lock... [2025-04-24 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:46:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:47:06 [end_date_ymd] => 2025-04-24 13:47:06 [RateCDR] => 1 ) [2025-04-24 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:47:06' and `end` < '2025-04-24 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:47:20] Production.INFO: count ==5605 [2025-04-24 13:47:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:47:06 - End Time 2025-04-24 13:47:06 [2025-04-24 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980012', 'tblTempUsageDetail_20' ) start [2025-04-24 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980012', 'tblTempUsageDetail_20' ) end [2025-04-24 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980012', 'tblTempVendorCDR_20' ) start [2025-04-24 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980012', 'tblTempVendorCDR_20' ) end [2025-04-24 13:47:22] Production.INFO: ProcessCDR(1,14980012,1,1,2) [2025-04-24 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980012', 'tblTempUsageDetail_20' ) start [2025-04-24 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980012', 'tblTempUsageDetail_20' ) end [2025-04-24 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:47:28] Production.INFO: ==11526== Releasing lock... [2025-04-24 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:47:28] Production.INFO: 70 MB #Memory Used# [2025-04-24 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:48:05 [end_date_ymd] => 2025-04-24 13:48:05 [RateCDR] => 1 ) [2025-04-24 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:48:05' and `end` < '2025-04-24 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:48:19] Production.INFO: count ==5620 [2025-04-24 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:48:05 - End Time 2025-04-24 13:48:05 [2025-04-24 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980017', 'tblTempUsageDetail_20' ) start [2025-04-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980017', 'tblTempUsageDetail_20' ) end [2025-04-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980017', 'tblTempVendorCDR_20' ) start [2025-04-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980017', 'tblTempVendorCDR_20' ) end [2025-04-24 13:48:22] Production.INFO: ProcessCDR(1,14980017,1,1,2) [2025-04-24 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980017', 'tblTempUsageDetail_20' ) start [2025-04-24 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980017', 'tblTempUsageDetail_20' ) end [2025-04-24 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:48:27] Production.INFO: ==11600== Releasing lock... [2025-04-24 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:48:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:49:05 [end_date_ymd] => 2025-04-24 13:49:05 [RateCDR] => 1 ) [2025-04-24 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:49:05' and `end` < '2025-04-24 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:49:19] Production.INFO: count ==5629 [2025-04-24 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:49:05 - End Time 2025-04-24 13:49:05 [2025-04-24 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980022', 'tblTempUsageDetail_20' ) start [2025-04-24 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980022', 'tblTempUsageDetail_20' ) end [2025-04-24 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980022', 'tblTempVendorCDR_20' ) start [2025-04-24 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980022', 'tblTempVendorCDR_20' ) end [2025-04-24 13:49:22] Production.INFO: ProcessCDR(1,14980022,1,1,2) [2025-04-24 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980022', 'tblTempUsageDetail_20' ) start [2025-04-24 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980022', 'tblTempUsageDetail_20' ) end [2025-04-24 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:49:26] Production.INFO: ==11680== Releasing lock... [2025-04-24 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:49:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:50:06 [end_date_ymd] => 2025-04-24 13:50:06 [RateCDR] => 1 ) [2025-04-24 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:50:06' and `end` < '2025-04-24 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:50:20] Production.INFO: count ==5641 [2025-04-24 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:50:06 - End Time 2025-04-24 13:50:06 [2025-04-24 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980028', 'tblTempUsageDetail_20' ) start [2025-04-24 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980028', 'tblTempUsageDetail_20' ) end [2025-04-24 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980028', 'tblTempVendorCDR_20' ) start [2025-04-24 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980028', 'tblTempVendorCDR_20' ) end [2025-04-24 13:50:23] Production.INFO: ProcessCDR(1,14980028,1,1,2) [2025-04-24 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980028', 'tblTempUsageDetail_20' ) start [2025-04-24 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980028', 'tblTempUsageDetail_20' ) end [2025-04-24 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:50:28] Production.INFO: ==11756== Releasing lock... [2025-04-24 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:50:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:51:05 [end_date_ymd] => 2025-04-24 13:51:05 [RateCDR] => 1 ) [2025-04-24 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:51:05' and `end` < '2025-04-24 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:51:19] Production.INFO: count ==5663 [2025-04-24 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:51:05 - End Time 2025-04-24 13:51:05 [2025-04-24 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980033', 'tblTempUsageDetail_20' ) start [2025-04-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980033', 'tblTempUsageDetail_20' ) end [2025-04-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980033', 'tblTempVendorCDR_20' ) start [2025-04-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980033', 'tblTempVendorCDR_20' ) end [2025-04-24 13:51:22] Production.INFO: ProcessCDR(1,14980033,1,1,2) [2025-04-24 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980033', 'tblTempUsageDetail_20' ) start [2025-04-24 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980033', 'tblTempUsageDetail_20' ) end [2025-04-24 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:51:27] Production.INFO: ==11835== Releasing lock... [2025-04-24 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:51:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:52:05 [end_date_ymd] => 2025-04-24 13:52:05 [RateCDR] => 1 ) [2025-04-24 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:52:05' and `end` < '2025-04-24 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:52:19] Production.INFO: count ==5695 [2025-04-24 13:52:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:52:05 - End Time 2025-04-24 13:52:05 [2025-04-24 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980038', 'tblTempUsageDetail_20' ) start [2025-04-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980038', 'tblTempUsageDetail_20' ) end [2025-04-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980038', 'tblTempVendorCDR_20' ) start [2025-04-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980038', 'tblTempVendorCDR_20' ) end [2025-04-24 13:52:22] Production.INFO: ProcessCDR(1,14980038,1,1,2) [2025-04-24 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980038', 'tblTempUsageDetail_20' ) start [2025-04-24 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980038', 'tblTempUsageDetail_20' ) end [2025-04-24 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:52:27] Production.INFO: ==11908== Releasing lock... [2025-04-24 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:52:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:53:05 [end_date_ymd] => 2025-04-24 13:53:05 [RateCDR] => 1 ) [2025-04-24 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:53:05' and `end` < '2025-04-24 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:53:19] Production.INFO: count ==5723 [2025-04-24 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:53:05 - End Time 2025-04-24 13:53:05 [2025-04-24 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980043', 'tblTempUsageDetail_20' ) start [2025-04-24 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980043', 'tblTempUsageDetail_20' ) end [2025-04-24 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980043', 'tblTempVendorCDR_20' ) start [2025-04-24 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980043', 'tblTempVendorCDR_20' ) end [2025-04-24 13:53:22] Production.INFO: ProcessCDR(1,14980043,1,1,2) [2025-04-24 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980043', 'tblTempUsageDetail_20' ) start [2025-04-24 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980043', 'tblTempUsageDetail_20' ) end [2025-04-24 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:53:27] Production.INFO: ==11979== Releasing lock... [2025-04-24 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:53:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:54:05 [end_date_ymd] => 2025-04-24 13:54:05 [RateCDR] => 1 ) [2025-04-24 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:54:05' and `end` < '2025-04-24 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:54:19] Production.INFO: count ==5729 [2025-04-24 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:54:05 - End Time 2025-04-24 13:54:05 [2025-04-24 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980048', 'tblTempUsageDetail_20' ) start [2025-04-24 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980048', 'tblTempUsageDetail_20' ) end [2025-04-24 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980048', 'tblTempVendorCDR_20' ) start [2025-04-24 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980048', 'tblTempVendorCDR_20' ) end [2025-04-24 13:54:22] Production.INFO: ProcessCDR(1,14980048,1,1,2) [2025-04-24 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980048', 'tblTempUsageDetail_20' ) start [2025-04-24 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980048', 'tblTempUsageDetail_20' ) end [2025-04-24 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:54:27] Production.INFO: ==12093== Releasing lock... [2025-04-24 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:54:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:55:05 [end_date_ymd] => 2025-04-24 13:55:05 [RateCDR] => 1 ) [2025-04-24 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:55:05' and `end` < '2025-04-24 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:55:18] Production.INFO: count ==5719 [2025-04-24 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:55:05 - End Time 2025-04-24 13:55:05 [2025-04-24 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980053', 'tblTempUsageDetail_20' ) start [2025-04-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980053', 'tblTempUsageDetail_20' ) end [2025-04-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980053', 'tblTempVendorCDR_20' ) start [2025-04-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980053', 'tblTempVendorCDR_20' ) end [2025-04-24 13:55:21] Production.INFO: ProcessCDR(1,14980053,1,1,2) [2025-04-24 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980053', 'tblTempUsageDetail_20' ) start [2025-04-24 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980053', 'tblTempUsageDetail_20' ) end [2025-04-24 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:55:26] Production.INFO: ==12163== Releasing lock... [2025-04-24 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:55:26] Production.INFO: 71 MB #Memory Used# [2025-04-24 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:56:05 [end_date_ymd] => 2025-04-24 13:56:05 [RateCDR] => 1 ) [2025-04-24 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:56:05' and `end` < '2025-04-24 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:56:19] Production.INFO: count ==5707 [2025-04-24 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:56:05 - End Time 2025-04-24 13:56:05 [2025-04-24 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980058', 'tblTempUsageDetail_20' ) start [2025-04-24 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980058', 'tblTempUsageDetail_20' ) end [2025-04-24 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980058', 'tblTempVendorCDR_20' ) start [2025-04-24 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980058', 'tblTempVendorCDR_20' ) end [2025-04-24 13:56:22] Production.INFO: ProcessCDR(1,14980058,1,1,2) [2025-04-24 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980058', 'tblTempUsageDetail_20' ) start [2025-04-24 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980058', 'tblTempUsageDetail_20' ) end [2025-04-24 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:56:27] Production.INFO: ==12237== Releasing lock... [2025-04-24 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:56:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:57:05 [end_date_ymd] => 2025-04-24 13:57:05 [RateCDR] => 1 ) [2025-04-24 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 10:57:05' and `end` < '2025-04-24 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 13:57:19] Production.INFO: count ==5682 [2025-04-24 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:57:05 - End Time 2025-04-24 13:57:05 [2025-04-24 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980063', 'tblTempUsageDetail_20' ) start [2025-04-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980063', 'tblTempUsageDetail_20' ) end [2025-04-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980063', 'tblTempVendorCDR_20' ) start [2025-04-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980063', 'tblTempVendorCDR_20' ) end [2025-04-24 13:57:22] Production.INFO: ProcessCDR(1,14980063,1,1,2) [2025-04-24 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980063', 'tblTempUsageDetail_20' ) start [2025-04-24 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980063', 'tblTempUsageDetail_20' ) end [2025-04-24 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:57:25] Production.INFO: ==12315== Releasing lock... [2025-04-24 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:57:25] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:58:05 [end_date_ymd] => 2025-04-24 13:58:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:58:05' and `end` < '2025-04-24 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-04-24 13:58:19] Production.INFO: count ==5689 [2025-04-24 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 10:58:05 - End Time 2025-04-24 13:58:05 [2025-04-24 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980068', 'tblTempUsageDetail_20' ) start [2025-04-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980068', 'tblTempUsageDetail_20' ) end [2025-04-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980068', 'tblTempVendorCDR_20' ) start [2025-04-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980068', 'tblTempVendorCDR_20' ) end [2025-04-24 13:58:22] Production.INFO: ProcessCDR(1,14980068,1,1,2) [2025-04-24 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980068', 'tblTempUsageDetail_20' ) start [2025-04-24 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980068', 'tblTempUsageDetail_20' ) end [2025-04-24 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:58:27] Production.INFO: ==12387== Releasing lock... [2025-04-24 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:58:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 10:59:06 [end_date_ymd] => 2025-04-24 13:59:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 10:59:06' and `end` < '2025-04-24 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-04-24 13:59:20] Production.INFO: count ==5676 [2025-04-24 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-24 10:59:06 - End Time 2025-04-24 13:59:06 [2025-04-24 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980073', 'tblTempUsageDetail_20' ) start [2025-04-24 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980073', 'tblTempUsageDetail_20' ) end [2025-04-24 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980073', 'tblTempVendorCDR_20' ) start [2025-04-24 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980073', 'tblTempVendorCDR_20' ) end [2025-04-24 13:59:23] Production.INFO: ProcessCDR(1,14980073,1,1,2) [2025-04-24 13:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980073', 'tblTempUsageDetail_20' ) start [2025-04-24 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980073', 'tblTempUsageDetail_20' ) end [2025-04-24 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 13:59:28] Production.INFO: ==12461== Releasing lock... [2025-04-24 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 13:59:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:00:06 [end_date_ymd] => 2025-04-24 14:00:06 [RateCDR] => 1 ) [2025-04-24 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:00:06' and `end` < '2025-04-24 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:00:20] Production.INFO: count ==5610 [2025-04-24 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:00:06 - End Time 2025-04-24 14:00:06 [2025-04-24 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980079', 'tblTempUsageDetail_20' ) start [2025-04-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980079', 'tblTempUsageDetail_20' ) end [2025-04-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980079', 'tblTempVendorCDR_20' ) start [2025-04-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980079', 'tblTempVendorCDR_20' ) end [2025-04-24 14:00:23] Production.INFO: ProcessCDR(1,14980079,1,1,2) [2025-04-24 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980079', 'tblTempUsageDetail_20' ) start [2025-04-24 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980079', 'tblTempUsageDetail_20' ) end [2025-04-24 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:00:28] Production.INFO: ==12539== Releasing lock... [2025-04-24 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:00:28] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:01:05 [end_date_ymd] => 2025-04-24 14:01:05 [RateCDR] => 1 ) [2025-04-24 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:01:05' and `end` < '2025-04-24 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:01:19] Production.INFO: count ==5691 [2025-04-24 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:01:05 - End Time 2025-04-24 14:01:05 [2025-04-24 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980084', 'tblTempUsageDetail_20' ) start [2025-04-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980084', 'tblTempUsageDetail_20' ) end [2025-04-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980084', 'tblTempVendorCDR_20' ) start [2025-04-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980084', 'tblTempVendorCDR_20' ) end [2025-04-24 14:01:22] Production.INFO: ProcessCDR(1,14980084,1,1,2) [2025-04-24 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980084', 'tblTempUsageDetail_20' ) start [2025-04-24 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980084', 'tblTempUsageDetail_20' ) end [2025-04-24 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:01:27] Production.INFO: ==12632== Releasing lock... [2025-04-24 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:01:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:02:05 [end_date_ymd] => 2025-04-24 14:02:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:02:05' and `end` < '2025-04-24 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-04-24 14:02:19] Production.INFO: count ==5703 [2025-04-24 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:02:05 - End Time 2025-04-24 14:02:05 [2025-04-24 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980089', 'tblTempUsageDetail_20' ) start [2025-04-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980089', 'tblTempUsageDetail_20' ) end [2025-04-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980089', 'tblTempVendorCDR_20' ) start [2025-04-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980089', 'tblTempVendorCDR_20' ) end [2025-04-24 14:02:22] Production.INFO: ProcessCDR(1,14980089,1,1,2) [2025-04-24 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980089', 'tblTempUsageDetail_20' ) start [2025-04-24 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980089', 'tblTempUsageDetail_20' ) end [2025-04-24 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:02:27] Production.INFO: ==12706== Releasing lock... [2025-04-24 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:02:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:03:06 [end_date_ymd] => 2025-04-24 14:03:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:03:06' and `end` < '2025-04-24 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-04-24 14:03:19] Production.INFO: count ==5715 [2025-04-24 14:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:03:06 - End Time 2025-04-24 14:03:06 [2025-04-24 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980094', 'tblTempUsageDetail_20' ) start [2025-04-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980094', 'tblTempUsageDetail_20' ) end [2025-04-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980094', 'tblTempVendorCDR_20' ) start [2025-04-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980094', 'tblTempVendorCDR_20' ) end [2025-04-24 14:03:22] Production.INFO: ProcessCDR(1,14980094,1,1,2) [2025-04-24 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980094', 'tblTempUsageDetail_20' ) start [2025-04-24 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980094', 'tblTempUsageDetail_20' ) end [2025-04-24 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:03:28] Production.INFO: ==12775== Releasing lock... [2025-04-24 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:03:28] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:04:05 [end_date_ymd] => 2025-04-24 14:04:05 [RateCDR] => 1 ) [2025-04-24 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:04:05' and `end` < '2025-04-24 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:04:19] Production.INFO: count ==5730 [2025-04-24 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:04:05 - End Time 2025-04-24 14:04:05 [2025-04-24 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980099', 'tblTempUsageDetail_20' ) start [2025-04-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980099', 'tblTempUsageDetail_20' ) end [2025-04-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980099', 'tblTempVendorCDR_20' ) start [2025-04-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980099', 'tblTempVendorCDR_20' ) end [2025-04-24 14:04:22] Production.INFO: ProcessCDR(1,14980099,1,1,2) [2025-04-24 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980099', 'tblTempUsageDetail_20' ) start [2025-04-24 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980099', 'tblTempUsageDetail_20' ) end [2025-04-24 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:04:27] Production.INFO: ==12864== Releasing lock... [2025-04-24 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:04:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:05:05 [end_date_ymd] => 2025-04-24 14:05:05 [RateCDR] => 1 ) [2025-04-24 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:05:05' and `end` < '2025-04-24 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:05:19] Production.INFO: count ==5725 [2025-04-24 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:05:05 - End Time 2025-04-24 14:05:05 [2025-04-24 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980104', 'tblTempUsageDetail_20' ) start [2025-04-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980104', 'tblTempUsageDetail_20' ) end [2025-04-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980104', 'tblTempVendorCDR_20' ) start [2025-04-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980104', 'tblTempVendorCDR_20' ) end [2025-04-24 14:05:22] Production.INFO: ProcessCDR(1,14980104,1,1,2) [2025-04-24 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980104', 'tblTempUsageDetail_20' ) start [2025-04-24 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980104', 'tblTempUsageDetail_20' ) end [2025-04-24 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:05:27] Production.INFO: ==12934== Releasing lock... [2025-04-24 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:05:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:06:05 [end_date_ymd] => 2025-04-24 14:06:05 [RateCDR] => 1 ) [2025-04-24 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:06:05' and `end` < '2025-04-24 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:06:18] Production.INFO: count ==5736 [2025-04-24 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:06:05 - End Time 2025-04-24 14:06:05 [2025-04-24 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980109', 'tblTempUsageDetail_20' ) start [2025-04-24 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980109', 'tblTempUsageDetail_20' ) end [2025-04-24 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980109', 'tblTempVendorCDR_20' ) start [2025-04-24 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980109', 'tblTempVendorCDR_20' ) end [2025-04-24 14:06:21] Production.INFO: ProcessCDR(1,14980109,1,1,2) [2025-04-24 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980109', 'tblTempUsageDetail_20' ) start [2025-04-24 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980109', 'tblTempUsageDetail_20' ) end [2025-04-24 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:06:26] Production.INFO: ==13008== Releasing lock... [2025-04-24 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:06:26] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:07:05 [end_date_ymd] => 2025-04-24 14:07:05 [RateCDR] => 1 ) [2025-04-24 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:07:05' and `end` < '2025-04-24 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:07:19] Production.INFO: count ==5734 [2025-04-24 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:07:05 - End Time 2025-04-24 14:07:05 [2025-04-24 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980114', 'tblTempUsageDetail_20' ) start [2025-04-24 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980114', 'tblTempUsageDetail_20' ) end [2025-04-24 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980114', 'tblTempVendorCDR_20' ) start [2025-04-24 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980114', 'tblTempVendorCDR_20' ) end [2025-04-24 14:07:21] Production.INFO: ProcessCDR(1,14980114,1,1,2) [2025-04-24 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980114', 'tblTempUsageDetail_20' ) start [2025-04-24 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980114', 'tblTempUsageDetail_20' ) end [2025-04-24 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:07:26] Production.INFO: ==13080== Releasing lock... [2025-04-24 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:07:26] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:08:05 [end_date_ymd] => 2025-04-24 14:08:05 [RateCDR] => 1 ) [2025-04-24 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:08:05' and `end` < '2025-04-24 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:08:19] Production.INFO: count ==5729 [2025-04-24 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:08:05 - End Time 2025-04-24 14:08:05 [2025-04-24 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980119', 'tblTempUsageDetail_20' ) start [2025-04-24 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980119', 'tblTempUsageDetail_20' ) end [2025-04-24 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980119', 'tblTempVendorCDR_20' ) start [2025-04-24 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980119', 'tblTempVendorCDR_20' ) end [2025-04-24 14:08:22] Production.INFO: ProcessCDR(1,14980119,1,1,2) [2025-04-24 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980119', 'tblTempUsageDetail_20' ) start [2025-04-24 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980119', 'tblTempUsageDetail_20' ) end [2025-04-24 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:08:27] Production.INFO: ==13153== Releasing lock... [2025-04-24 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:08:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:09:05 [end_date_ymd] => 2025-04-24 14:09:05 [RateCDR] => 1 ) [2025-04-24 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:09:05' and `end` < '2025-04-24 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:09:18] Production.INFO: count ==5714 [2025-04-24 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:09:05 - End Time 2025-04-24 14:09:05 [2025-04-24 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980124', 'tblTempUsageDetail_20' ) start [2025-04-24 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980124', 'tblTempUsageDetail_20' ) end [2025-04-24 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980124', 'tblTempVendorCDR_20' ) start [2025-04-24 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980124', 'tblTempVendorCDR_20' ) end [2025-04-24 14:09:21] Production.INFO: ProcessCDR(1,14980124,1,1,2) [2025-04-24 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980124', 'tblTempUsageDetail_20' ) start [2025-04-24 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980124', 'tblTempUsageDetail_20' ) end [2025-04-24 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:09:27] Production.INFO: ==13267== Releasing lock... [2025-04-24 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:09:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:10:06 [end_date_ymd] => 2025-04-24 14:10:06 [RateCDR] => 1 ) [2025-04-24 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:10:06' and `end` < '2025-04-24 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:10:20] Production.INFO: count ==5702 [2025-04-24 14:10:23] Production.ERROR: pbx CDR StartTime 2025-04-24 11:10:06 - End Time 2025-04-24 14:10:06 [2025-04-24 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980130', 'tblTempUsageDetail_20' ) start [2025-04-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980130', 'tblTempUsageDetail_20' ) end [2025-04-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980130', 'tblTempVendorCDR_20' ) start [2025-04-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980130', 'tblTempVendorCDR_20' ) end [2025-04-24 14:10:23] Production.INFO: ProcessCDR(1,14980130,1,1,2) [2025-04-24 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980130', 'tblTempUsageDetail_20' ) start [2025-04-24 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980130', 'tblTempUsageDetail_20' ) end [2025-04-24 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:10:27] Production.INFO: ==13342== Releasing lock... [2025-04-24 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:10:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:11:05 [end_date_ymd] => 2025-04-24 14:11:05 [RateCDR] => 1 ) [2025-04-24 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:11:05' and `end` < '2025-04-24 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:11:19] Production.INFO: count ==5709 [2025-04-24 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:11:05 - End Time 2025-04-24 14:11:05 [2025-04-24 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980135', 'tblTempUsageDetail_20' ) start [2025-04-24 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980135', 'tblTempUsageDetail_20' ) end [2025-04-24 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980135', 'tblTempVendorCDR_20' ) start [2025-04-24 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980135', 'tblTempVendorCDR_20' ) end [2025-04-24 14:11:22] Production.INFO: ProcessCDR(1,14980135,1,1,2) [2025-04-24 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980135', 'tblTempUsageDetail_20' ) start [2025-04-24 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980135', 'tblTempUsageDetail_20' ) end [2025-04-24 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:11:25] Production.INFO: ==13422== Releasing lock... [2025-04-24 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:11:25] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:12:05 [end_date_ymd] => 2025-04-24 14:12:05 [RateCDR] => 1 ) [2025-04-24 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:12:05' and `end` < '2025-04-24 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:12:19] Production.INFO: count ==5681 [2025-04-24 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:12:05 - End Time 2025-04-24 14:12:05 [2025-04-24 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980140', 'tblTempUsageDetail_20' ) start [2025-04-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980140', 'tblTempUsageDetail_20' ) end [2025-04-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980140', 'tblTempVendorCDR_20' ) start [2025-04-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980140', 'tblTempVendorCDR_20' ) end [2025-04-24 14:12:22] Production.INFO: ProcessCDR(1,14980140,1,1,2) [2025-04-24 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980140', 'tblTempUsageDetail_20' ) start [2025-04-24 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980140', 'tblTempUsageDetail_20' ) end [2025-04-24 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:12:27] Production.INFO: ==13495== Releasing lock... [2025-04-24 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:12:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:13:05 [end_date_ymd] => 2025-04-24 14:13:05 [RateCDR] => 1 ) [2025-04-24 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:13:05' and `end` < '2025-04-24 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:13:19] Production.INFO: count ==5693 [2025-04-24 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:13:05 - End Time 2025-04-24 14:13:05 [2025-04-24 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980145', 'tblTempUsageDetail_20' ) start [2025-04-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980145', 'tblTempUsageDetail_20' ) end [2025-04-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980145', 'tblTempVendorCDR_20' ) start [2025-04-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980145', 'tblTempVendorCDR_20' ) end [2025-04-24 14:13:22] Production.INFO: ProcessCDR(1,14980145,1,1,2) [2025-04-24 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980145', 'tblTempUsageDetail_20' ) start [2025-04-24 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980145', 'tblTempUsageDetail_20' ) end [2025-04-24 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:13:27] Production.INFO: ==13569== Releasing lock... [2025-04-24 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:13:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:14:06 [end_date_ymd] => 2025-04-24 14:14:06 [RateCDR] => 1 ) [2025-04-24 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:14:06' and `end` < '2025-04-24 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:14:20] Production.INFO: count ==5680 [2025-04-24 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:14:06 - End Time 2025-04-24 14:14:06 [2025-04-24 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980150', 'tblTempUsageDetail_20' ) start [2025-04-24 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980150', 'tblTempUsageDetail_20' ) end [2025-04-24 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980150', 'tblTempVendorCDR_20' ) start [2025-04-24 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980150', 'tblTempVendorCDR_20' ) end [2025-04-24 14:14:23] Production.INFO: ProcessCDR(1,14980150,1,1,2) [2025-04-24 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980150', 'tblTempUsageDetail_20' ) start [2025-04-24 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980150', 'tblTempUsageDetail_20' ) end [2025-04-24 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:14:28] Production.INFO: ==13644== Releasing lock... [2025-04-24 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:14:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:15:05 [end_date_ymd] => 2025-04-24 14:15:05 [RateCDR] => 1 ) [2025-04-24 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:15:05' and `end` < '2025-04-24 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:15:19] Production.INFO: count ==5676 [2025-04-24 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:15:05 - End Time 2025-04-24 14:15:05 [2025-04-24 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980155', 'tblTempUsageDetail_20' ) start [2025-04-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980155', 'tblTempUsageDetail_20' ) end [2025-04-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980155', 'tblTempVendorCDR_20' ) start [2025-04-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980155', 'tblTempVendorCDR_20' ) end [2025-04-24 14:15:22] Production.INFO: ProcessCDR(1,14980155,1,1,2) [2025-04-24 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980155', 'tblTempUsageDetail_20' ) start [2025-04-24 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980155', 'tblTempUsageDetail_20' ) end [2025-04-24 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:15:27] Production.INFO: ==13713== Releasing lock... [2025-04-24 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:15:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:16:05 [end_date_ymd] => 2025-04-24 14:16:05 [RateCDR] => 1 ) [2025-04-24 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:16:05' and `end` < '2025-04-24 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:16:19] Production.INFO: count ==5689 [2025-04-24 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:16:05 - End Time 2025-04-24 14:16:05 [2025-04-24 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980160', 'tblTempUsageDetail_20' ) start [2025-04-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980160', 'tblTempUsageDetail_20' ) end [2025-04-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980160', 'tblTempVendorCDR_20' ) start [2025-04-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980160', 'tblTempVendorCDR_20' ) end [2025-04-24 14:16:22] Production.INFO: ProcessCDR(1,14980160,1,1,2) [2025-04-24 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980160', 'tblTempUsageDetail_20' ) start [2025-04-24 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980160', 'tblTempUsageDetail_20' ) end [2025-04-24 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:16:26] Production.INFO: ==13786== Releasing lock... [2025-04-24 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:16:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:17:06 [end_date_ymd] => 2025-04-24 14:17:06 [RateCDR] => 1 ) [2025-04-24 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:17:06' and `end` < '2025-04-24 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:17:20] Production.INFO: count ==5688 [2025-04-24 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:17:06 - End Time 2025-04-24 14:17:06 [2025-04-24 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980165', 'tblTempUsageDetail_20' ) start [2025-04-24 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980165', 'tblTempUsageDetail_20' ) end [2025-04-24 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980165', 'tblTempVendorCDR_20' ) start [2025-04-24 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980165', 'tblTempVendorCDR_20' ) end [2025-04-24 14:17:23] Production.INFO: ProcessCDR(1,14980165,1,1,2) [2025-04-24 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980165', 'tblTempUsageDetail_20' ) start [2025-04-24 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980165', 'tblTempUsageDetail_20' ) end [2025-04-24 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:17:28] Production.INFO: ==13859== Releasing lock... [2025-04-24 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:17:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:18:06 [end_date_ymd] => 2025-04-24 14:18:06 [RateCDR] => 1 ) [2025-04-24 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:18:06' and `end` < '2025-04-24 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:18:20] Production.INFO: count ==5684 [2025-04-24 14:18:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:18:06 - End Time 2025-04-24 14:18:06 [2025-04-24 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980170', 'tblTempUsageDetail_20' ) start [2025-04-24 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980170', 'tblTempUsageDetail_20' ) end [2025-04-24 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980170', 'tblTempVendorCDR_20' ) start [2025-04-24 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980170', 'tblTempVendorCDR_20' ) end [2025-04-24 14:18:23] Production.INFO: ProcessCDR(1,14980170,1,1,2) [2025-04-24 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980170', 'tblTempUsageDetail_20' ) start [2025-04-24 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980170', 'tblTempUsageDetail_20' ) end [2025-04-24 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:18:28] Production.INFO: ==13938== Releasing lock... [2025-04-24 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:18:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:19:05 [end_date_ymd] => 2025-04-24 14:19:05 [RateCDR] => 1 ) [2025-04-24 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:19:05' and `end` < '2025-04-24 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:19:19] Production.INFO: count ==5677 [2025-04-24 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:19:05 - End Time 2025-04-24 14:19:05 [2025-04-24 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980175', 'tblTempUsageDetail_20' ) start [2025-04-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980175', 'tblTempUsageDetail_20' ) end [2025-04-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980175', 'tblTempVendorCDR_20' ) start [2025-04-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980175', 'tblTempVendorCDR_20' ) end [2025-04-24 14:19:22] Production.INFO: ProcessCDR(1,14980175,1,1,2) [2025-04-24 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980175', 'tblTempUsageDetail_20' ) start [2025-04-24 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980175', 'tblTempUsageDetail_20' ) end [2025-04-24 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:19:27] Production.INFO: ==14009== Releasing lock... [2025-04-24 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:20:06 [end_date_ymd] => 2025-04-24 14:20:06 [RateCDR] => 1 ) [2025-04-24 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:20:06' and `end` < '2025-04-24 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:20:20] Production.INFO: count ==5677 [2025-04-24 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:20:06 - End Time 2025-04-24 14:20:06 [2025-04-24 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980180', 'tblTempUsageDetail_20' ) start [2025-04-24 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980180', 'tblTempUsageDetail_20' ) end [2025-04-24 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980180', 'tblTempVendorCDR_20' ) start [2025-04-24 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980180', 'tblTempVendorCDR_20' ) end [2025-04-24 14:20:23] Production.INFO: ProcessCDR(1,14980180,1,1,2) [2025-04-24 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980180', 'tblTempUsageDetail_20' ) start [2025-04-24 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980180', 'tblTempUsageDetail_20' ) end [2025-04-24 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:20:27] Production.INFO: ==14083== Releasing lock... [2025-04-24 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:20:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:21:05 [end_date_ymd] => 2025-04-24 14:21:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:21:05' and `end` < '2025-04-24 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-04-24 14:21:18] Production.INFO: count ==5650 [2025-04-24 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:21:05 - End Time 2025-04-24 14:21:05 [2025-04-24 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980186', 'tblTempUsageDetail_20' ) start [2025-04-24 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980186', 'tblTempUsageDetail_20' ) end [2025-04-24 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980186', 'tblTempVendorCDR_20' ) start [2025-04-24 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980186', 'tblTempVendorCDR_20' ) end [2025-04-24 14:21:21] Production.INFO: ProcessCDR(1,14980186,1,1,2) [2025-04-24 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980186', 'tblTempUsageDetail_20' ) start [2025-04-24 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980186', 'tblTempUsageDetail_20' ) end [2025-04-24 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:21:26] Production.INFO: ==14162== Releasing lock... [2025-04-24 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:21:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:22:05 [end_date_ymd] => 2025-04-24 14:22:05 [RateCDR] => 1 ) [2025-04-24 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:22:05' and `end` < '2025-04-24 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:22:19] Production.INFO: count ==5637 [2025-04-24 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:22:05 - End Time 2025-04-24 14:22:05 [2025-04-24 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980191', 'tblTempUsageDetail_20' ) start [2025-04-24 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980191', 'tblTempUsageDetail_20' ) end [2025-04-24 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980191', 'tblTempVendorCDR_20' ) start [2025-04-24 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980191', 'tblTempVendorCDR_20' ) end [2025-04-24 14:22:22] Production.INFO: ProcessCDR(1,14980191,1,1,2) [2025-04-24 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980191', 'tblTempUsageDetail_20' ) start [2025-04-24 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980191', 'tblTempUsageDetail_20' ) end [2025-04-24 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:22:27] Production.INFO: ==14239== Releasing lock... [2025-04-24 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:22:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:23:05 [end_date_ymd] => 2025-04-24 14:23:05 [RateCDR] => 1 ) [2025-04-24 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:23:05' and `end` < '2025-04-24 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:23:18] Production.INFO: count ==5628 [2025-04-24 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:23:05 - End Time 2025-04-24 14:23:05 [2025-04-24 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980196', 'tblTempUsageDetail_20' ) start [2025-04-24 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980196', 'tblTempUsageDetail_20' ) end [2025-04-24 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980196', 'tblTempVendorCDR_20' ) start [2025-04-24 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980196', 'tblTempVendorCDR_20' ) end [2025-04-24 14:23:21] Production.INFO: ProcessCDR(1,14980196,1,1,2) [2025-04-24 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980196', 'tblTempUsageDetail_20' ) start [2025-04-24 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980196', 'tblTempUsageDetail_20' ) end [2025-04-24 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:23:26] Production.INFO: ==14318== Releasing lock... [2025-04-24 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:23:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:24:05 [end_date_ymd] => 2025-04-24 14:24:05 [RateCDR] => 1 ) [2025-04-24 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:24:05' and `end` < '2025-04-24 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:24:19] Production.INFO: count ==5628 [2025-04-24 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:24:05 - End Time 2025-04-24 14:24:05 [2025-04-24 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980201', 'tblTempUsageDetail_20' ) start [2025-04-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980201', 'tblTempUsageDetail_20' ) end [2025-04-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980201', 'tblTempVendorCDR_20' ) start [2025-04-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980201', 'tblTempVendorCDR_20' ) end [2025-04-24 14:24:22] Production.INFO: ProcessCDR(1,14980201,1,1,2) [2025-04-24 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980201', 'tblTempUsageDetail_20' ) start [2025-04-24 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980201', 'tblTempUsageDetail_20' ) end [2025-04-24 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:24:27] Production.INFO: ==14398== Releasing lock... [2025-04-24 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:24:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:25:05 [end_date_ymd] => 2025-04-24 14:25:05 [RateCDR] => 1 ) [2025-04-24 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:25:05' and `end` < '2025-04-24 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:25:19] Production.INFO: count ==5606 [2025-04-24 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:25:05 - End Time 2025-04-24 14:25:05 [2025-04-24 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980206', 'tblTempUsageDetail_20' ) start [2025-04-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980206', 'tblTempUsageDetail_20' ) end [2025-04-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980206', 'tblTempVendorCDR_20' ) start [2025-04-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980206', 'tblTempVendorCDR_20' ) end [2025-04-24 14:25:22] Production.INFO: ProcessCDR(1,14980206,1,1,2) [2025-04-24 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980206', 'tblTempUsageDetail_20' ) start [2025-04-24 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980206', 'tblTempUsageDetail_20' ) end [2025-04-24 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:25:27] Production.INFO: ==14515== Releasing lock... [2025-04-24 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:25:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:26:05 [end_date_ymd] => 2025-04-24 14:26:05 [RateCDR] => 1 ) [2025-04-24 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:26:05' and `end` < '2025-04-24 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:26:18] Production.INFO: count ==5598 [2025-04-24 14:26:20] Production.ERROR: pbx CDR StartTime 2025-04-24 11:26:05 - End Time 2025-04-24 14:26:05 [2025-04-24 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980211', 'tblTempUsageDetail_20' ) start [2025-04-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980211', 'tblTempUsageDetail_20' ) end [2025-04-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980211', 'tblTempVendorCDR_20' ) start [2025-04-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980211', 'tblTempVendorCDR_20' ) end [2025-04-24 14:26:21] Production.INFO: ProcessCDR(1,14980211,1,1,2) [2025-04-24 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980211', 'tblTempUsageDetail_20' ) start [2025-04-24 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980211', 'tblTempUsageDetail_20' ) end [2025-04-24 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:26:26] Production.INFO: ==14586== Releasing lock... [2025-04-24 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:26:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:27:05 [end_date_ymd] => 2025-04-24 14:27:05 [RateCDR] => 1 ) [2025-04-24 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:27:05' and `end` < '2025-04-24 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:27:19] Production.INFO: count ==5590 [2025-04-24 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:27:05 - End Time 2025-04-24 14:27:05 [2025-04-24 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980216', 'tblTempUsageDetail_20' ) start [2025-04-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980216', 'tblTempUsageDetail_20' ) end [2025-04-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980216', 'tblTempVendorCDR_20' ) start [2025-04-24 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980216', 'tblTempVendorCDR_20' ) end [2025-04-24 14:27:22] Production.INFO: ProcessCDR(1,14980216,1,1,2) [2025-04-24 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980216', 'tblTempUsageDetail_20' ) start [2025-04-24 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980216', 'tblTempUsageDetail_20' ) end [2025-04-24 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:27:26] Production.INFO: ==14661== Releasing lock... [2025-04-24 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:27:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:28:04 [end_date_ymd] => 2025-04-24 14:28:04 [RateCDR] => 1 ) [2025-04-24 14:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:28:04' and `end` < '2025-04-24 14:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:28:18] Production.INFO: count ==5604 [2025-04-24 14:28:20] Production.ERROR: pbx CDR StartTime 2025-04-24 11:28:04 - End Time 2025-04-24 14:28:04 [2025-04-24 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980221', 'tblTempUsageDetail_20' ) start [2025-04-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980221', 'tblTempUsageDetail_20' ) end [2025-04-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980221', 'tblTempVendorCDR_20' ) start [2025-04-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980221', 'tblTempVendorCDR_20' ) end [2025-04-24 14:28:21] Production.INFO: ProcessCDR(1,14980221,1,1,2) [2025-04-24 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980221', 'tblTempUsageDetail_20' ) start [2025-04-24 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980221', 'tblTempUsageDetail_20' ) end [2025-04-24 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:28:26] Production.INFO: ==14737== Releasing lock... [2025-04-24 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:28:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:29:06 [end_date_ymd] => 2025-04-24 14:29:06 [RateCDR] => 1 ) [2025-04-24 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:29:06' and `end` < '2025-04-24 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:29:20] Production.INFO: count ==5642 [2025-04-24 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:29:06 - End Time 2025-04-24 14:29:06 [2025-04-24 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980226', 'tblTempUsageDetail_20' ) start [2025-04-24 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980226', 'tblTempUsageDetail_20' ) end [2025-04-24 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980226', 'tblTempVendorCDR_20' ) start [2025-04-24 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980226', 'tblTempVendorCDR_20' ) end [2025-04-24 14:29:22] Production.INFO: ProcessCDR(1,14980226,1,1,2) [2025-04-24 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980226', 'tblTempUsageDetail_20' ) start [2025-04-24 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980226', 'tblTempUsageDetail_20' ) end [2025-04-24 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:29:28] Production.INFO: ==14812== Releasing lock... [2025-04-24 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:29:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:30:05 [end_date_ymd] => 2025-04-24 14:30:05 [RateCDR] => 1 ) [2025-04-24 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:30:05' and `end` < '2025-04-24 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:30:19] Production.INFO: count ==5635 [2025-04-24 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:30:05 - End Time 2025-04-24 14:30:05 [2025-04-24 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980232', 'tblTempUsageDetail_20' ) start [2025-04-24 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980232', 'tblTempUsageDetail_20' ) end [2025-04-24 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980232', 'tblTempVendorCDR_20' ) start [2025-04-24 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980232', 'tblTempVendorCDR_20' ) end [2025-04-24 14:30:22] Production.INFO: ProcessCDR(1,14980232,1,1,2) [2025-04-24 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980232', 'tblTempUsageDetail_20' ) start [2025-04-24 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980232', 'tblTempUsageDetail_20' ) end [2025-04-24 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:30:28] Production.INFO: ==14886== Releasing lock... [2025-04-24 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:30:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:31:05 [end_date_ymd] => 2025-04-24 14:31:05 [RateCDR] => 1 ) [2025-04-24 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:31:05' and `end` < '2025-04-24 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:31:19] Production.INFO: count ==5656 [2025-04-24 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:31:05 - End Time 2025-04-24 14:31:05 [2025-04-24 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980237', 'tblTempUsageDetail_20' ) start [2025-04-24 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980237', 'tblTempUsageDetail_20' ) end [2025-04-24 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980237', 'tblTempVendorCDR_20' ) start [2025-04-24 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980237', 'tblTempVendorCDR_20' ) end [2025-04-24 14:31:22] Production.INFO: ProcessCDR(1,14980237,1,1,2) [2025-04-24 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980237', 'tblTempUsageDetail_20' ) start [2025-04-24 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980237', 'tblTempUsageDetail_20' ) end [2025-04-24 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:31:27] Production.INFO: ==14965== Releasing lock... [2025-04-24 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:31:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:32:05 [end_date_ymd] => 2025-04-24 14:32:05 [RateCDR] => 1 ) [2025-04-24 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:32:05' and `end` < '2025-04-24 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:32:19] Production.INFO: count ==5682 [2025-04-24 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:32:05 - End Time 2025-04-24 14:32:05 [2025-04-24 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980242', 'tblTempUsageDetail_20' ) start [2025-04-24 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980242', 'tblTempUsageDetail_20' ) end [2025-04-24 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980242', 'tblTempVendorCDR_20' ) start [2025-04-24 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980242', 'tblTempVendorCDR_20' ) end [2025-04-24 14:32:22] Production.INFO: ProcessCDR(1,14980242,1,1,2) [2025-04-24 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980242', 'tblTempUsageDetail_20' ) start [2025-04-24 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980242', 'tblTempUsageDetail_20' ) end [2025-04-24 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:32:27] Production.INFO: ==15036== Releasing lock... [2025-04-24 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:32:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:33:05 [end_date_ymd] => 2025-04-24 14:33:05 [RateCDR] => 1 ) [2025-04-24 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:33:05' and `end` < '2025-04-24 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:33:19] Production.INFO: count ==5702 [2025-04-24 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:33:05 - End Time 2025-04-24 14:33:05 [2025-04-24 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980247', 'tblTempUsageDetail_20' ) start [2025-04-24 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980247', 'tblTempUsageDetail_20' ) end [2025-04-24 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980247', 'tblTempVendorCDR_20' ) start [2025-04-24 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980247', 'tblTempVendorCDR_20' ) end [2025-04-24 14:33:21] Production.INFO: ProcessCDR(1,14980247,1,1,2) [2025-04-24 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980247', 'tblTempUsageDetail_20' ) start [2025-04-24 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980247', 'tblTempUsageDetail_20' ) end [2025-04-24 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:33:26] Production.INFO: ==15113== Releasing lock... [2025-04-24 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:33:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:34:05 [end_date_ymd] => 2025-04-24 14:34:05 [RateCDR] => 1 ) [2025-04-24 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:34:05' and `end` < '2025-04-24 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:34:19] Production.INFO: count ==5703 [2025-04-24 14:34:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:34:05 - End Time 2025-04-24 14:34:05 [2025-04-24 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980252', 'tblTempUsageDetail_20' ) start [2025-04-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980252', 'tblTempUsageDetail_20' ) end [2025-04-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980252', 'tblTempVendorCDR_20' ) start [2025-04-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980252', 'tblTempVendorCDR_20' ) end [2025-04-24 14:34:22] Production.INFO: ProcessCDR(1,14980252,1,1,2) [2025-04-24 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980252', 'tblTempUsageDetail_20' ) start [2025-04-24 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980252', 'tblTempUsageDetail_20' ) end [2025-04-24 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:34:27] Production.INFO: ==15192== Releasing lock... [2025-04-24 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:34:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:35:05 [end_date_ymd] => 2025-04-24 14:35:05 [RateCDR] => 1 ) [2025-04-24 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:35:05' and `end` < '2025-04-24 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:35:19] Production.INFO: count ==5682 [2025-04-24 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:35:05 - End Time 2025-04-24 14:35:05 [2025-04-24 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980257', 'tblTempUsageDetail_20' ) start [2025-04-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980257', 'tblTempUsageDetail_20' ) end [2025-04-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980257', 'tblTempVendorCDR_20' ) start [2025-04-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980257', 'tblTempVendorCDR_20' ) end [2025-04-24 14:35:21] Production.INFO: ProcessCDR(1,14980257,1,1,2) [2025-04-24 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980257', 'tblTempUsageDetail_20' ) start [2025-04-24 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980257', 'tblTempUsageDetail_20' ) end [2025-04-24 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:35:26] Production.INFO: ==15268== Releasing lock... [2025-04-24 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:35:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:36:05 [end_date_ymd] => 2025-04-24 14:36:05 [RateCDR] => 1 ) [2025-04-24 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:36:05' and `end` < '2025-04-24 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:36:19] Production.INFO: count ==5687 [2025-04-24 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:36:05 - End Time 2025-04-24 14:36:05 [2025-04-24 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980262', 'tblTempUsageDetail_20' ) start [2025-04-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980262', 'tblTempUsageDetail_20' ) end [2025-04-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980262', 'tblTempVendorCDR_20' ) start [2025-04-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980262', 'tblTempVendorCDR_20' ) end [2025-04-24 14:36:22] Production.INFO: ProcessCDR(1,14980262,1,1,2) [2025-04-24 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980262', 'tblTempUsageDetail_20' ) start [2025-04-24 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980262', 'tblTempUsageDetail_20' ) end [2025-04-24 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:36:27] Production.INFO: ==15346== Releasing lock... [2025-04-24 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:36:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:37:05 [end_date_ymd] => 2025-04-24 14:37:05 [RateCDR] => 1 ) [2025-04-24 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:37:05' and `end` < '2025-04-24 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:37:18] Production.INFO: count ==5673 [2025-04-24 14:37:20] Production.ERROR: pbx CDR StartTime 2025-04-24 11:37:05 - End Time 2025-04-24 14:37:05 [2025-04-24 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980267', 'tblTempUsageDetail_20' ) start [2025-04-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980267', 'tblTempUsageDetail_20' ) end [2025-04-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980267', 'tblTempVendorCDR_20' ) start [2025-04-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980267', 'tblTempVendorCDR_20' ) end [2025-04-24 14:37:21] Production.INFO: ProcessCDR(1,14980267,1,1,2) [2025-04-24 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980267', 'tblTempUsageDetail_20' ) start [2025-04-24 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980267', 'tblTempUsageDetail_20' ) end [2025-04-24 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:37:26] Production.INFO: ==15419== Releasing lock... [2025-04-24 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:37:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:38:05 [end_date_ymd] => 2025-04-24 14:38:05 [RateCDR] => 1 ) [2025-04-24 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:38:05' and `end` < '2025-04-24 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:38:19] Production.INFO: count ==5684 [2025-04-24 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:38:05 - End Time 2025-04-24 14:38:05 [2025-04-24 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980272', 'tblTempUsageDetail_20' ) start [2025-04-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980272', 'tblTempUsageDetail_20' ) end [2025-04-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980272', 'tblTempVendorCDR_20' ) start [2025-04-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980272', 'tblTempVendorCDR_20' ) end [2025-04-24 14:38:22] Production.INFO: ProcessCDR(1,14980272,1,1,2) [2025-04-24 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980272', 'tblTempUsageDetail_20' ) start [2025-04-24 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980272', 'tblTempUsageDetail_20' ) end [2025-04-24 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:38:27] Production.INFO: ==15497== Releasing lock... [2025-04-24 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:38:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:39:05 [end_date_ymd] => 2025-04-24 14:39:05 [RateCDR] => 1 ) [2025-04-24 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:39:05' and `end` < '2025-04-24 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:39:19] Production.INFO: count ==5671 [2025-04-24 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:39:05 - End Time 2025-04-24 14:39:05 [2025-04-24 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980277', 'tblTempUsageDetail_20' ) start [2025-04-24 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980277', 'tblTempUsageDetail_20' ) end [2025-04-24 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980277', 'tblTempVendorCDR_20' ) start [2025-04-24 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980277', 'tblTempVendorCDR_20' ) end [2025-04-24 14:39:22] Production.INFO: ProcessCDR(1,14980277,1,1,2) [2025-04-24 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980277', 'tblTempUsageDetail_20' ) start [2025-04-24 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980277', 'tblTempUsageDetail_20' ) end [2025-04-24 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:39:26] Production.INFO: ==15575== Releasing lock... [2025-04-24 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:39:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:40:06 [end_date_ymd] => 2025-04-24 14:40:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:40:06' and `end` < '2025-04-24 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-04-24 14:40:20] Production.INFO: count ==5668 [2025-04-24 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:40:06 - End Time 2025-04-24 14:40:06 [2025-04-24 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980283', 'tblTempUsageDetail_20' ) start [2025-04-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980283', 'tblTempUsageDetail_20' ) end [2025-04-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980283', 'tblTempVendorCDR_20' ) start [2025-04-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980283', 'tblTempVendorCDR_20' ) end [2025-04-24 14:40:22] Production.INFO: ProcessCDR(1,14980283,1,1,2) [2025-04-24 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980283', 'tblTempUsageDetail_20' ) start [2025-04-24 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980283', 'tblTempUsageDetail_20' ) end [2025-04-24 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:40:27] Production.INFO: ==15688== Releasing lock... [2025-04-24 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:40:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:41:05 [end_date_ymd] => 2025-04-24 14:41:05 [RateCDR] => 1 ) [2025-04-24 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:41:05' and `end` < '2025-04-24 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:41:19] Production.INFO: count ==5671 [2025-04-24 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:41:05 - End Time 2025-04-24 14:41:05 [2025-04-24 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980288', 'tblTempUsageDetail_20' ) start [2025-04-24 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980288', 'tblTempUsageDetail_20' ) end [2025-04-24 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980288', 'tblTempVendorCDR_20' ) start [2025-04-24 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980288', 'tblTempVendorCDR_20' ) end [2025-04-24 14:41:22] Production.INFO: ProcessCDR(1,14980288,1,1,2) [2025-04-24 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980288', 'tblTempUsageDetail_20' ) start [2025-04-24 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980288', 'tblTempUsageDetail_20' ) end [2025-04-24 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:41:26] Production.INFO: ==15769== Releasing lock... [2025-04-24 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:41:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:42:05 [end_date_ymd] => 2025-04-24 14:42:05 [RateCDR] => 1 ) [2025-04-24 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:42:05' and `end` < '2025-04-24 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:42:19] Production.INFO: count ==5680 [2025-04-24 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:42:05 - End Time 2025-04-24 14:42:05 [2025-04-24 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980293', 'tblTempUsageDetail_20' ) start [2025-04-24 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980293', 'tblTempUsageDetail_20' ) end [2025-04-24 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980293', 'tblTempVendorCDR_20' ) start [2025-04-24 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980293', 'tblTempVendorCDR_20' ) end [2025-04-24 14:42:22] Production.INFO: ProcessCDR(1,14980293,1,1,2) [2025-04-24 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980293', 'tblTempUsageDetail_20' ) start [2025-04-24 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980293', 'tblTempUsageDetail_20' ) end [2025-04-24 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:42:27] Production.INFO: ==15842== Releasing lock... [2025-04-24 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:42:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:43:05 [end_date_ymd] => 2025-04-24 14:43:05 [RateCDR] => 1 ) [2025-04-24 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:43:05' and `end` < '2025-04-24 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:43:19] Production.INFO: count ==5688 [2025-04-24 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:43:05 - End Time 2025-04-24 14:43:05 [2025-04-24 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980298', 'tblTempUsageDetail_20' ) start [2025-04-24 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980298', 'tblTempUsageDetail_20' ) end [2025-04-24 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980298', 'tblTempVendorCDR_20' ) start [2025-04-24 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980298', 'tblTempVendorCDR_20' ) end [2025-04-24 14:43:22] Production.INFO: ProcessCDR(1,14980298,1,1,2) [2025-04-24 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980298', 'tblTempUsageDetail_20' ) start [2025-04-24 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980298', 'tblTempUsageDetail_20' ) end [2025-04-24 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:43:27] Production.INFO: ==15920== Releasing lock... [2025-04-24 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:43:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:44:05 [end_date_ymd] => 2025-04-24 14:44:05 [RateCDR] => 1 ) [2025-04-24 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:44:05' and `end` < '2025-04-24 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:44:19] Production.INFO: count ==5662 [2025-04-24 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:44:05 - End Time 2025-04-24 14:44:05 [2025-04-24 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980303', 'tblTempUsageDetail_20' ) start [2025-04-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980303', 'tblTempUsageDetail_20' ) end [2025-04-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980303', 'tblTempVendorCDR_20' ) start [2025-04-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980303', 'tblTempVendorCDR_20' ) end [2025-04-24 14:44:22] Production.INFO: ProcessCDR(1,14980303,1,1,2) [2025-04-24 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980303', 'tblTempUsageDetail_20' ) start [2025-04-24 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980303', 'tblTempUsageDetail_20' ) end [2025-04-24 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:44:27] Production.INFO: ==15991== Releasing lock... [2025-04-24 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:44:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:45:05 [end_date_ymd] => 2025-04-24 14:45:05 [RateCDR] => 1 ) [2025-04-24 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:45:05' and `end` < '2025-04-24 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:45:19] Production.INFO: count ==5676 [2025-04-24 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:45:05 - End Time 2025-04-24 14:45:05 [2025-04-24 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980308', 'tblTempUsageDetail_20' ) start [2025-04-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980308', 'tblTempUsageDetail_20' ) end [2025-04-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980308', 'tblTempVendorCDR_20' ) start [2025-04-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980308', 'tblTempVendorCDR_20' ) end [2025-04-24 14:45:22] Production.INFO: ProcessCDR(1,14980308,1,1,2) [2025-04-24 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980308', 'tblTempUsageDetail_20' ) start [2025-04-24 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980308', 'tblTempUsageDetail_20' ) end [2025-04-24 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:45:27] Production.INFO: ==16069== Releasing lock... [2025-04-24 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:45:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:46:04 [end_date_ymd] => 2025-04-24 14:46:04 [RateCDR] => 1 ) [2025-04-24 14: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-04-24 11:46:04' and `end` < '2025-04-24 14: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-04-24 14:46:18] Production.INFO: count ==5663 [2025-04-24 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:46:04 - End Time 2025-04-24 14:46:04 [2025-04-24 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980313', 'tblTempUsageDetail_20' ) start [2025-04-24 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980313', 'tblTempUsageDetail_20' ) end [2025-04-24 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980313', 'tblTempVendorCDR_20' ) start [2025-04-24 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980313', 'tblTempVendorCDR_20' ) end [2025-04-24 14:46:21] Production.INFO: ProcessCDR(1,14980313,1,1,2) [2025-04-24 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980313', 'tblTempUsageDetail_20' ) start [2025-04-24 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980313', 'tblTempUsageDetail_20' ) end [2025-04-24 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:46:26] Production.INFO: ==16156== Releasing lock... [2025-04-24 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:46:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:47:05 [end_date_ymd] => 2025-04-24 14:47:05 [RateCDR] => 1 ) [2025-04-24 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:47:05' and `end` < '2025-04-24 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:47:19] Production.INFO: count ==5652 [2025-04-24 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:47:05 - End Time 2025-04-24 14:47:05 [2025-04-24 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980318', 'tblTempUsageDetail_20' ) start [2025-04-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980318', 'tblTempUsageDetail_20' ) end [2025-04-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980318', 'tblTempVendorCDR_20' ) start [2025-04-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980318', 'tblTempVendorCDR_20' ) end [2025-04-24 14:47:22] Production.INFO: ProcessCDR(1,14980318,1,1,2) [2025-04-24 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980318', 'tblTempUsageDetail_20' ) start [2025-04-24 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980318', 'tblTempUsageDetail_20' ) end [2025-04-24 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:47:27] Production.INFO: ==16232== Releasing lock... [2025-04-24 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:47:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:48:06 [end_date_ymd] => 2025-04-24 14:48:06 [RateCDR] => 1 ) [2025-04-24 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:48:06' and `end` < '2025-04-24 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:48:20] Production.INFO: count ==5626 [2025-04-24 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:48:06 - End Time 2025-04-24 14:48:06 [2025-04-24 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980323', 'tblTempUsageDetail_20' ) start [2025-04-24 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980323', 'tblTempUsageDetail_20' ) end [2025-04-24 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980323', 'tblTempVendorCDR_20' ) start [2025-04-24 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980323', 'tblTempVendorCDR_20' ) end [2025-04-24 14:48:22] Production.INFO: ProcessCDR(1,14980323,1,1,2) [2025-04-24 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980323', 'tblTempUsageDetail_20' ) start [2025-04-24 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980323', 'tblTempUsageDetail_20' ) end [2025-04-24 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:48:27] Production.INFO: ==16309== Releasing lock... [2025-04-24 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:48:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:49:05 [end_date_ymd] => 2025-04-24 14:49:05 [RateCDR] => 1 ) [2025-04-24 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:49:05' and `end` < '2025-04-24 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:49:19] Production.INFO: count ==5624 [2025-04-24 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:49:05 - End Time 2025-04-24 14:49:05 [2025-04-24 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980328', 'tblTempUsageDetail_20' ) start [2025-04-24 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980328', 'tblTempUsageDetail_20' ) end [2025-04-24 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980328', 'tblTempVendorCDR_20' ) start [2025-04-24 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980328', 'tblTempVendorCDR_20' ) end [2025-04-24 14:49:21] Production.INFO: ProcessCDR(1,14980328,1,1,2) [2025-04-24 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980328', 'tblTempUsageDetail_20' ) start [2025-04-24 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980328', 'tblTempUsageDetail_20' ) end [2025-04-24 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:49:26] Production.INFO: ==16383== Releasing lock... [2025-04-24 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:49:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:50:05 [end_date_ymd] => 2025-04-24 14:50:05 [RateCDR] => 1 ) [2025-04-24 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:50:05' and `end` < '2025-04-24 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:50:20] Production.INFO: count ==5630 [2025-04-24 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:50:05 - End Time 2025-04-24 14:50:05 [2025-04-24 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980334', 'tblTempUsageDetail_20' ) start [2025-04-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980334', 'tblTempUsageDetail_20' ) end [2025-04-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980334', 'tblTempVendorCDR_20' ) start [2025-04-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980334', 'tblTempVendorCDR_20' ) end [2025-04-24 14:50:23] Production.INFO: ProcessCDR(1,14980334,1,1,2) [2025-04-24 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980334', 'tblTempUsageDetail_20' ) start [2025-04-24 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980334', 'tblTempUsageDetail_20' ) end [2025-04-24 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:50:28] Production.INFO: ==16460== Releasing lock... [2025-04-24 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:50:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:51:05 [end_date_ymd] => 2025-04-24 14:51:05 [RateCDR] => 1 ) [2025-04-24 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:51:05' and `end` < '2025-04-24 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:51:19] Production.INFO: count ==5583 [2025-04-24 14:51:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:51:05 - End Time 2025-04-24 14:51:05 [2025-04-24 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980339', 'tblTempUsageDetail_20' ) start [2025-04-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980339', 'tblTempUsageDetail_20' ) end [2025-04-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980339', 'tblTempVendorCDR_20' ) start [2025-04-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980339', 'tblTempVendorCDR_20' ) end [2025-04-24 14:51:22] Production.INFO: ProcessCDR(1,14980339,1,1,2) [2025-04-24 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980339', 'tblTempUsageDetail_20' ) start [2025-04-24 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980339', 'tblTempUsageDetail_20' ) end [2025-04-24 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:51:27] Production.INFO: ==16543== Releasing lock... [2025-04-24 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:51:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:52:06 [end_date_ymd] => 2025-04-24 14:52:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:52:06' and `end` < '2025-04-24 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-04-24 14:52:19] Production.INFO: count ==5579 [2025-04-24 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:52:06 - End Time 2025-04-24 14:52:06 [2025-04-24 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980344', 'tblTempUsageDetail_20' ) start [2025-04-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980344', 'tblTempUsageDetail_20' ) end [2025-04-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980344', 'tblTempVendorCDR_20' ) start [2025-04-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980344', 'tblTempVendorCDR_20' ) end [2025-04-24 14:52:22] Production.INFO: ProcessCDR(1,14980344,1,1,2) [2025-04-24 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980344', 'tblTempUsageDetail_20' ) start [2025-04-24 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980344', 'tblTempUsageDetail_20' ) end [2025-04-24 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:52:27] Production.INFO: ==16620== Releasing lock... [2025-04-24 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:52:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:53:04 [end_date_ymd] => 2025-04-24 14:53:04 [RateCDR] => 1 ) [2025-04-24 14: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-04-24 11:53:04' and `end` < '2025-04-24 14: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-04-24 14:53:18] Production.INFO: count ==5562 [2025-04-24 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:53:04 - End Time 2025-04-24 14:53:04 [2025-04-24 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980349', 'tblTempUsageDetail_20' ) start [2025-04-24 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980349', 'tblTempUsageDetail_20' ) end [2025-04-24 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980349', 'tblTempVendorCDR_20' ) start [2025-04-24 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980349', 'tblTempVendorCDR_20' ) end [2025-04-24 14:53:21] Production.INFO: ProcessCDR(1,14980349,1,1,2) [2025-04-24 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980349', 'tblTempUsageDetail_20' ) start [2025-04-24 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980349', 'tblTempUsageDetail_20' ) end [2025-04-24 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:53:26] Production.INFO: ==16695== Releasing lock... [2025-04-24 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:53:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:54:05 [end_date_ymd] => 2025-04-24 14:54:05 [RateCDR] => 1 ) [2025-04-24 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:54:05' and `end` < '2025-04-24 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:54:19] Production.INFO: count ==5567 [2025-04-24 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:54:05 - End Time 2025-04-24 14:54:05 [2025-04-24 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980354', 'tblTempUsageDetail_20' ) start [2025-04-24 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980354', 'tblTempUsageDetail_20' ) end [2025-04-24 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980354', 'tblTempVendorCDR_20' ) start [2025-04-24 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980354', 'tblTempVendorCDR_20' ) end [2025-04-24 14:54:21] Production.INFO: ProcessCDR(1,14980354,1,1,2) [2025-04-24 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980354', 'tblTempUsageDetail_20' ) start [2025-04-24 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980354', 'tblTempUsageDetail_20' ) end [2025-04-24 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:54:26] Production.INFO: ==16782== Releasing lock... [2025-04-24 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:54:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:55:05 [end_date_ymd] => 2025-04-24 14:55:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 11:55:05' and `end` < '2025-04-24 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-04-24 14:55:19] Production.INFO: count ==5564 [2025-04-24 14:55:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:55:05 - End Time 2025-04-24 14:55:05 [2025-04-24 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980359', 'tblTempUsageDetail_20' ) start [2025-04-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980359', 'tblTempUsageDetail_20' ) end [2025-04-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980359', 'tblTempVendorCDR_20' ) start [2025-04-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980359', 'tblTempVendorCDR_20' ) end [2025-04-24 14:55:21] Production.INFO: ProcessCDR(1,14980359,1,1,2) [2025-04-24 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980359', 'tblTempUsageDetail_20' ) start [2025-04-24 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980359', 'tblTempUsageDetail_20' ) end [2025-04-24 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:55:26] Production.INFO: ==16896== Releasing lock... [2025-04-24 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:55:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:56:06 [end_date_ymd] => 2025-04-24 14:56:06 [RateCDR] => 1 ) [2025-04-24 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:56:06' and `end` < '2025-04-24 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:56:20] Production.INFO: count ==5530 [2025-04-24 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-24 11:56:06 - End Time 2025-04-24 14:56:06 [2025-04-24 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980364', 'tblTempUsageDetail_20' ) start [2025-04-24 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980364', 'tblTempUsageDetail_20' ) end [2025-04-24 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980364', 'tblTempVendorCDR_20' ) start [2025-04-24 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980364', 'tblTempVendorCDR_20' ) end [2025-04-24 14:56:23] Production.INFO: ProcessCDR(1,14980364,1,1,2) [2025-04-24 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980364', 'tblTempUsageDetail_20' ) start [2025-04-24 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980364', 'tblTempUsageDetail_20' ) end [2025-04-24 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:56:28] Production.INFO: ==16977== Releasing lock... [2025-04-24 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:56:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:57:05 [end_date_ymd] => 2025-04-24 14:57:05 [RateCDR] => 1 ) [2025-04-24 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:57:05' and `end` < '2025-04-24 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:57:18] Production.INFO: count ==5569 [2025-04-24 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:57:05 - End Time 2025-04-24 14:57:05 [2025-04-24 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980369', 'tblTempUsageDetail_20' ) start [2025-04-24 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980369', 'tblTempUsageDetail_20' ) end [2025-04-24 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980369', 'tblTempVendorCDR_20' ) start [2025-04-24 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980369', 'tblTempVendorCDR_20' ) end [2025-04-24 14:57:21] Production.INFO: ProcessCDR(1,14980369,1,1,2) [2025-04-24 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980369', 'tblTempUsageDetail_20' ) start [2025-04-24 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980369', 'tblTempUsageDetail_20' ) end [2025-04-24 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:57:26] Production.INFO: ==17052== Releasing lock... [2025-04-24 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:57:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:58:05 [end_date_ymd] => 2025-04-24 14:58:05 [RateCDR] => 1 ) [2025-04-24 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:58:05' and `end` < '2025-04-24 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:58:19] Production.INFO: count ==5574 [2025-04-24 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:58:05 - End Time 2025-04-24 14:58:05 [2025-04-24 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980374', 'tblTempUsageDetail_20' ) start [2025-04-24 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980374', 'tblTempUsageDetail_20' ) end [2025-04-24 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980374', 'tblTempVendorCDR_20' ) start [2025-04-24 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980374', 'tblTempVendorCDR_20' ) end [2025-04-24 14:58:22] Production.INFO: ProcessCDR(1,14980374,1,1,2) [2025-04-24 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980374', 'tblTempUsageDetail_20' ) start [2025-04-24 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980374', 'tblTempUsageDetail_20' ) end [2025-04-24 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:58:27] Production.INFO: ==17129== Releasing lock... [2025-04-24 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:58:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 11:59:05 [end_date_ymd] => 2025-04-24 14:59:05 [RateCDR] => 1 ) [2025-04-24 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 11:59:05' and `end` < '2025-04-24 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 14:59:18] Production.INFO: count ==5563 [2025-04-24 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-24 11:59:05 - End Time 2025-04-24 14:59:05 [2025-04-24 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980379', 'tblTempUsageDetail_20' ) start [2025-04-24 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980379', 'tblTempUsageDetail_20' ) end [2025-04-24 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980379', 'tblTempVendorCDR_20' ) start [2025-04-24 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980379', 'tblTempVendorCDR_20' ) end [2025-04-24 14:59:21] Production.INFO: ProcessCDR(1,14980379,1,1,2) [2025-04-24 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980379', 'tblTempUsageDetail_20' ) start [2025-04-24 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980379', 'tblTempUsageDetail_20' ) end [2025-04-24 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 14:59:26] Production.INFO: ==17206== Releasing lock... [2025-04-24 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 14:59:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:00:06 [end_date_ymd] => 2025-04-24 15:00:06 [RateCDR] => 1 ) [2025-04-24 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:00:06' and `end` < '2025-04-24 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:00:20] Production.INFO: count ==5551 [2025-04-24 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:00:06 - End Time 2025-04-24 15:00:06 [2025-04-24 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980385', 'tblTempUsageDetail_20' ) start [2025-04-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980385', 'tblTempUsageDetail_20' ) end [2025-04-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980385', 'tblTempVendorCDR_20' ) start [2025-04-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980385', 'tblTempVendorCDR_20' ) end [2025-04-24 15:00:23] Production.INFO: ProcessCDR(1,14980385,1,1,2) [2025-04-24 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980385', 'tblTempUsageDetail_20' ) start [2025-04-24 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980385', 'tblTempUsageDetail_20' ) end [2025-04-24 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:00:28] Production.INFO: ==17284== Releasing lock... [2025-04-24 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:00:28] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:01:05 [end_date_ymd] => 2025-04-24 15:01:05 [RateCDR] => 1 ) [2025-04-24 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:01:05' and `end` < '2025-04-24 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:01:19] Production.INFO: count ==5516 [2025-04-24 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:01:05 - End Time 2025-04-24 15:01:05 [2025-04-24 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980390', 'tblTempUsageDetail_20' ) start [2025-04-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980390', 'tblTempUsageDetail_20' ) end [2025-04-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980390', 'tblTempVendorCDR_20' ) start [2025-04-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980390', 'tblTempVendorCDR_20' ) end [2025-04-24 15:01:22] Production.INFO: ProcessCDR(1,14980390,1,1,2) [2025-04-24 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980390', 'tblTempUsageDetail_20' ) start [2025-04-24 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980390', 'tblTempUsageDetail_20' ) end [2025-04-24 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:01:25] Production.INFO: ==17456== Releasing lock... [2025-04-24 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:01:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:02:05 [end_date_ymd] => 2025-04-24 15:02:05 [RateCDR] => 1 ) [2025-04-24 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:02:05' and `end` < '2025-04-24 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:02:19] Production.INFO: count ==5486 [2025-04-24 15:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:02:05 - End Time 2025-04-24 15:02:05 [2025-04-24 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980395', 'tblTempUsageDetail_20' ) start [2025-04-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980395', 'tblTempUsageDetail_20' ) end [2025-04-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980395', 'tblTempVendorCDR_20' ) start [2025-04-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980395', 'tblTempVendorCDR_20' ) end [2025-04-24 15:02:22] Production.INFO: ProcessCDR(1,14980395,1,1,2) [2025-04-24 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980395', 'tblTempUsageDetail_20' ) start [2025-04-24 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980395', 'tblTempUsageDetail_20' ) end [2025-04-24 15:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:02:25] Production.INFO: ==17538== Releasing lock... [2025-04-24 15:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:02:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:03:05 [end_date_ymd] => 2025-04-24 15:03:05 [RateCDR] => 1 ) [2025-04-24 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:03:05' and `end` < '2025-04-24 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:03:19] Production.INFO: count ==5473 [2025-04-24 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:03:05 - End Time 2025-04-24 15:03:05 [2025-04-24 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980400', 'tblTempUsageDetail_20' ) start [2025-04-24 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980400', 'tblTempUsageDetail_20' ) end [2025-04-24 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980400', 'tblTempVendorCDR_20' ) start [2025-04-24 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980400', 'tblTempVendorCDR_20' ) end [2025-04-24 15:03:21] Production.INFO: ProcessCDR(1,14980400,1,1,2) [2025-04-24 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980400', 'tblTempUsageDetail_20' ) start [2025-04-24 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980400', 'tblTempUsageDetail_20' ) end [2025-04-24 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:03:26] Production.INFO: ==17616== Releasing lock... [2025-04-24 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:03:26] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:04:05 [end_date_ymd] => 2025-04-24 15:04:05 [RateCDR] => 1 ) [2025-04-24 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:04:05' and `end` < '2025-04-24 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:04:19] Production.INFO: count ==5474 [2025-04-24 15:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:04:05 - End Time 2025-04-24 15:04:05 [2025-04-24 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980405', 'tblTempUsageDetail_20' ) start [2025-04-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980405', 'tblTempUsageDetail_20' ) end [2025-04-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980405', 'tblTempVendorCDR_20' ) start [2025-04-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980405', 'tblTempVendorCDR_20' ) end [2025-04-24 15:04:22] Production.INFO: ProcessCDR(1,14980405,1,1,2) [2025-04-24 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980405', 'tblTempUsageDetail_20' ) start [2025-04-24 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980405', 'tblTempUsageDetail_20' ) end [2025-04-24 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:04:27] Production.INFO: ==17692== Releasing lock... [2025-04-24 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:04:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:05:05 [end_date_ymd] => 2025-04-24 15:05:05 [RateCDR] => 1 ) [2025-04-24 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:05:05' and `end` < '2025-04-24 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:05:19] Production.INFO: count ==5463 [2025-04-24 15:05:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:05:05 - End Time 2025-04-24 15:05:05 [2025-04-24 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980410', 'tblTempUsageDetail_20' ) start [2025-04-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980410', 'tblTempUsageDetail_20' ) end [2025-04-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980410', 'tblTempVendorCDR_20' ) start [2025-04-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980410', 'tblTempVendorCDR_20' ) end [2025-04-24 15:05:22] Production.INFO: ProcessCDR(1,14980410,1,1,2) [2025-04-24 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980410', 'tblTempUsageDetail_20' ) start [2025-04-24 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980410', 'tblTempUsageDetail_20' ) end [2025-04-24 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:05:27] Production.INFO: ==17852== Releasing lock... [2025-04-24 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:05:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:06:05 [end_date_ymd] => 2025-04-24 15:06:05 [RateCDR] => 1 ) [2025-04-24 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:06:05' and `end` < '2025-04-24 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:06:19] Production.INFO: count ==5449 [2025-04-24 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:06:05 - End Time 2025-04-24 15:06:05 [2025-04-24 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980415', 'tblTempUsageDetail_20' ) start [2025-04-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980415', 'tblTempUsageDetail_20' ) end [2025-04-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980415', 'tblTempVendorCDR_20' ) start [2025-04-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980415', 'tblTempVendorCDR_20' ) end [2025-04-24 15:06:22] Production.INFO: ProcessCDR(1,14980415,1,1,2) [2025-04-24 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980415', 'tblTempUsageDetail_20' ) start [2025-04-24 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980415', 'tblTempUsageDetail_20' ) end [2025-04-24 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:06:27] Production.INFO: ==17929== Releasing lock... [2025-04-24 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:06:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:07:06 [end_date_ymd] => 2025-04-24 15:07:06 [RateCDR] => 1 ) [2025-04-24 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:07:06' and `end` < '2025-04-24 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:07:19] Production.INFO: count ==5443 [2025-04-24 15:07:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:07:06 - End Time 2025-04-24 15:07:06 [2025-04-24 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980420', 'tblTempUsageDetail_20' ) start [2025-04-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980420', 'tblTempUsageDetail_20' ) end [2025-04-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980420', 'tblTempVendorCDR_20' ) start [2025-04-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980420', 'tblTempVendorCDR_20' ) end [2025-04-24 15:07:22] Production.INFO: ProcessCDR(1,14980420,1,1,2) [2025-04-24 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980420', 'tblTempUsageDetail_20' ) start [2025-04-24 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980420', 'tblTempUsageDetail_20' ) end [2025-04-24 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:07:27] Production.INFO: ==18010== Releasing lock... [2025-04-24 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:07:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:08:05 [end_date_ymd] => 2025-04-24 15:08:05 [RateCDR] => 1 ) [2025-04-24 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:08:05' and `end` < '2025-04-24 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:08:19] Production.INFO: count ==5436 [2025-04-24 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:08:05 - End Time 2025-04-24 15:08:05 [2025-04-24 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980425', 'tblTempUsageDetail_20' ) start [2025-04-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980425', 'tblTempUsageDetail_20' ) end [2025-04-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980425', 'tblTempVendorCDR_20' ) start [2025-04-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980425', 'tblTempVendorCDR_20' ) end [2025-04-24 15:08:21] Production.INFO: ProcessCDR(1,14980425,1,1,2) [2025-04-24 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980425', 'tblTempUsageDetail_20' ) start [2025-04-24 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980425', 'tblTempUsageDetail_20' ) end [2025-04-24 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:08:26] Production.INFO: ==18163== Releasing lock... [2025-04-24 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:08:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:09:05 [end_date_ymd] => 2025-04-24 15:09:05 [RateCDR] => 1 ) [2025-04-24 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:09:05' and `end` < '2025-04-24 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:09:19] Production.INFO: count ==5404 [2025-04-24 15:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:09:05 - End Time 2025-04-24 15:09:05 [2025-04-24 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980430', 'tblTempUsageDetail_20' ) start [2025-04-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980430', 'tblTempUsageDetail_20' ) end [2025-04-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980430', 'tblTempVendorCDR_20' ) start [2025-04-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980430', 'tblTempVendorCDR_20' ) end [2025-04-24 15:09:21] Production.INFO: ProcessCDR(1,14980430,1,1,2) [2025-04-24 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980430', 'tblTempUsageDetail_20' ) start [2025-04-24 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980430', 'tblTempUsageDetail_20' ) end [2025-04-24 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:09:26] Production.INFO: ==18239== Releasing lock... [2025-04-24 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:09:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:10:05 [end_date_ymd] => 2025-04-24 15:10:05 [RateCDR] => 1 ) [2025-04-24 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:10:05' and `end` < '2025-04-24 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:10:19] Production.INFO: count ==5432 [2025-04-24 15:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:10:05 - End Time 2025-04-24 15:10:05 [2025-04-24 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980436', 'tblTempUsageDetail_20' ) start [2025-04-24 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980436', 'tblTempUsageDetail_20' ) end [2025-04-24 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980436', 'tblTempVendorCDR_20' ) start [2025-04-24 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980436', 'tblTempVendorCDR_20' ) end [2025-04-24 15:10:22] Production.INFO: ProcessCDR(1,14980436,1,1,2) [2025-04-24 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980436', 'tblTempUsageDetail_20' ) start [2025-04-24 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980436', 'tblTempUsageDetail_20' ) end [2025-04-24 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:10:27] Production.INFO: ==18315== Releasing lock... [2025-04-24 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:10:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:11:05 [end_date_ymd] => 2025-04-24 15:11:05 [RateCDR] => 1 ) [2025-04-24 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:11:05' and `end` < '2025-04-24 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:11:19] Production.INFO: count ==5450 [2025-04-24 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:11:05 - End Time 2025-04-24 15:11:05 [2025-04-24 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980441', 'tblTempUsageDetail_20' ) start [2025-04-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980441', 'tblTempUsageDetail_20' ) end [2025-04-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980441', 'tblTempVendorCDR_20' ) start [2025-04-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980441', 'tblTempVendorCDR_20' ) end [2025-04-24 15:11:22] Production.INFO: ProcessCDR(1,14980441,1,1,2) [2025-04-24 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980441', 'tblTempUsageDetail_20' ) start [2025-04-24 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980441', 'tblTempUsageDetail_20' ) end [2025-04-24 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:11:27] Production.INFO: ==18433== Releasing lock... [2025-04-24 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:11:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:12:05 [end_date_ymd] => 2025-04-24 15:12:05 [RateCDR] => 1 ) [2025-04-24 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:12:05' and `end` < '2025-04-24 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:12:19] Production.INFO: count ==5458 [2025-04-24 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:12:05 - End Time 2025-04-24 15:12:05 [2025-04-24 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980446', 'tblTempUsageDetail_20' ) start [2025-04-24 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980446', 'tblTempUsageDetail_20' ) end [2025-04-24 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980446', 'tblTempVendorCDR_20' ) start [2025-04-24 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980446', 'tblTempVendorCDR_20' ) end [2025-04-24 15:12:21] Production.INFO: ProcessCDR(1,14980446,1,1,2) [2025-04-24 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980446', 'tblTempUsageDetail_20' ) start [2025-04-24 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980446', 'tblTempUsageDetail_20' ) end [2025-04-24 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:12:26] Production.INFO: ==18591== Releasing lock... [2025-04-24 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:12:26] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:13:05 [end_date_ymd] => 2025-04-24 15:13:05 [RateCDR] => 1 ) [2025-04-24 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:13:05' and `end` < '2025-04-24 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:13:19] Production.INFO: count ==5479 [2025-04-24 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:13:05 - End Time 2025-04-24 15:13:05 [2025-04-24 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980451', 'tblTempUsageDetail_20' ) start [2025-04-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980451', 'tblTempUsageDetail_20' ) end [2025-04-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980451', 'tblTempVendorCDR_20' ) start [2025-04-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980451', 'tblTempVendorCDR_20' ) end [2025-04-24 15:13:22] Production.INFO: ProcessCDR(1,14980451,1,1,2) [2025-04-24 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980451', 'tblTempUsageDetail_20' ) start [2025-04-24 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980451', 'tblTempUsageDetail_20' ) end [2025-04-24 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:13:27] Production.INFO: ==18664== Releasing lock... [2025-04-24 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:13:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:14:06 [end_date_ymd] => 2025-04-24 15:14:06 [RateCDR] => 1 ) [2025-04-24 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:14:06' and `end` < '2025-04-24 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:14:20] Production.INFO: count ==5497 [2025-04-24 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:14:06 - End Time 2025-04-24 15:14:06 [2025-04-24 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980456', 'tblTempUsageDetail_20' ) start [2025-04-24 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980456', 'tblTempUsageDetail_20' ) end [2025-04-24 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980456', 'tblTempVendorCDR_20' ) start [2025-04-24 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980456', 'tblTempVendorCDR_20' ) end [2025-04-24 15:14:22] Production.INFO: ProcessCDR(1,14980456,1,1,2) [2025-04-24 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980456', 'tblTempUsageDetail_20' ) start [2025-04-24 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980456', 'tblTempUsageDetail_20' ) end [2025-04-24 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:14:26] Production.INFO: ==18741== Releasing lock... [2025-04-24 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:14:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:15:05 [end_date_ymd] => 2025-04-24 15:15:05 [RateCDR] => 1 ) [2025-04-24 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:15:05' and `end` < '2025-04-24 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:15:19] Production.INFO: count ==5511 [2025-04-24 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:15:05 - End Time 2025-04-24 15:15:05 [2025-04-24 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980461', 'tblTempUsageDetail_20' ) start [2025-04-24 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980461', 'tblTempUsageDetail_20' ) end [2025-04-24 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980461', 'tblTempVendorCDR_20' ) start [2025-04-24 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980461', 'tblTempVendorCDR_20' ) end [2025-04-24 15:15:22] Production.INFO: ProcessCDR(1,14980461,1,1,2) [2025-04-24 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980461', 'tblTempUsageDetail_20' ) start [2025-04-24 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980461', 'tblTempUsageDetail_20' ) end [2025-04-24 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:15:27] Production.INFO: ==18892== Releasing lock... [2025-04-24 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:15:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:16:05 [end_date_ymd] => 2025-04-24 15:16:05 [RateCDR] => 1 ) [2025-04-24 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:16:05' and `end` < '2025-04-24 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:16:19] Production.INFO: count ==5496 [2025-04-24 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:16:05 - End Time 2025-04-24 15:16:05 [2025-04-24 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980466', 'tblTempUsageDetail_20' ) start [2025-04-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980466', 'tblTempUsageDetail_20' ) end [2025-04-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980466', 'tblTempVendorCDR_20' ) start [2025-04-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980466', 'tblTempVendorCDR_20' ) end [2025-04-24 15:16:22] Production.INFO: ProcessCDR(1,14980466,1,1,2) [2025-04-24 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980466', 'tblTempUsageDetail_20' ) start [2025-04-24 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980466', 'tblTempUsageDetail_20' ) end [2025-04-24 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:16:27] Production.INFO: ==18969== Releasing lock... [2025-04-24 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:16:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:17:05 [end_date_ymd] => 2025-04-24 15:17:05 [RateCDR] => 1 ) [2025-04-24 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:17:05' and `end` < '2025-04-24 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:17:19] Production.INFO: count ==5503 [2025-04-24 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:17:05 - End Time 2025-04-24 15:17:05 [2025-04-24 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980471', 'tblTempUsageDetail_20' ) start [2025-04-24 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980471', 'tblTempUsageDetail_20' ) end [2025-04-24 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980471', 'tblTempVendorCDR_20' ) start [2025-04-24 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980471', 'tblTempVendorCDR_20' ) end [2025-04-24 15:17:21] Production.INFO: ProcessCDR(1,14980471,1,1,2) [2025-04-24 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980471', 'tblTempUsageDetail_20' ) start [2025-04-24 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980471', 'tblTempUsageDetail_20' ) end [2025-04-24 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:17:27] Production.INFO: ==19046== Releasing lock... [2025-04-24 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:17:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:18:06 [end_date_ymd] => 2025-04-24 15:18:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 12:18:06' and `end` < '2025-04-24 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-04-24 15:18:20] Production.INFO: count ==5516 [2025-04-24 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:18:06 - End Time 2025-04-24 15:18:06 [2025-04-24 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980476', 'tblTempUsageDetail_20' ) start [2025-04-24 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980476', 'tblTempUsageDetail_20' ) end [2025-04-24 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980476', 'tblTempVendorCDR_20' ) start [2025-04-24 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980476', 'tblTempVendorCDR_20' ) end [2025-04-24 15:18:22] Production.INFO: ProcessCDR(1,14980476,1,1,2) [2025-04-24 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980476', 'tblTempUsageDetail_20' ) start [2025-04-24 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980476', 'tblTempUsageDetail_20' ) end [2025-04-24 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:18:27] Production.INFO: ==19124== Releasing lock... [2025-04-24 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:18:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:19:05 [end_date_ymd] => 2025-04-24 15:19:05 [RateCDR] => 1 ) [2025-04-24 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:19:05' and `end` < '2025-04-24 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:19:19] Production.INFO: count ==5489 [2025-04-24 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:19:05 - End Time 2025-04-24 15:19:05 [2025-04-24 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980481', 'tblTempUsageDetail_20' ) start [2025-04-24 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980481', 'tblTempUsageDetail_20' ) end [2025-04-24 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980481', 'tblTempVendorCDR_20' ) start [2025-04-24 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980481', 'tblTempVendorCDR_20' ) end [2025-04-24 15:19:22] Production.INFO: ProcessCDR(1,14980481,1,1,2) [2025-04-24 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980481', 'tblTempUsageDetail_20' ) start [2025-04-24 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980481', 'tblTempUsageDetail_20' ) end [2025-04-24 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:19:26] Production.INFO: ==19197== Releasing lock... [2025-04-24 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:19:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:20:06 [end_date_ymd] => 2025-04-24 15:20:06 [RateCDR] => 1 ) [2025-04-24 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:20:06' and `end` < '2025-04-24 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:20:20] Production.INFO: count ==5487 [2025-04-24 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:20:06 - End Time 2025-04-24 15:20:06 [2025-04-24 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980487', 'tblTempUsageDetail_20' ) start [2025-04-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980487', 'tblTempUsageDetail_20' ) end [2025-04-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980487', 'tblTempVendorCDR_20' ) start [2025-04-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980487', 'tblTempVendorCDR_20' ) end [2025-04-24 15:20:22] Production.INFO: ProcessCDR(1,14980487,1,1,2) [2025-04-24 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980487', 'tblTempUsageDetail_20' ) start [2025-04-24 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980487', 'tblTempUsageDetail_20' ) end [2025-04-24 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:20:28] Production.INFO: ==19276== Releasing lock... [2025-04-24 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:20:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:21:05 [end_date_ymd] => 2025-04-24 15:21:05 [RateCDR] => 1 ) [2025-04-24 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:21:05' and `end` < '2025-04-24 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:21:19] Production.INFO: count ==5506 [2025-04-24 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:21:05 - End Time 2025-04-24 15:21:05 [2025-04-24 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980492', 'tblTempUsageDetail_20' ) start [2025-04-24 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980492', 'tblTempUsageDetail_20' ) end [2025-04-24 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980492', 'tblTempVendorCDR_20' ) start [2025-04-24 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980492', 'tblTempVendorCDR_20' ) end [2025-04-24 15:21:22] Production.INFO: ProcessCDR(1,14980492,1,1,2) [2025-04-24 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980492', 'tblTempUsageDetail_20' ) start [2025-04-24 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980492', 'tblTempUsageDetail_20' ) end [2025-04-24 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:21:25] Production.INFO: ==19353== Releasing lock... [2025-04-24 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:21:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:22:05 [end_date_ymd] => 2025-04-24 15:22:05 [RateCDR] => 1 ) [2025-04-24 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:22:05' and `end` < '2025-04-24 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:22:19] Production.INFO: count ==5499 [2025-04-24 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:22:05 - End Time 2025-04-24 15:22:05 [2025-04-24 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980497', 'tblTempUsageDetail_20' ) start [2025-04-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980497', 'tblTempUsageDetail_20' ) end [2025-04-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980497', 'tblTempVendorCDR_20' ) start [2025-04-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980497', 'tblTempVendorCDR_20' ) end [2025-04-24 15:22:22] Production.INFO: ProcessCDR(1,14980497,1,1,2) [2025-04-24 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980497', 'tblTempUsageDetail_20' ) start [2025-04-24 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980497', 'tblTempUsageDetail_20' ) end [2025-04-24 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:22:27] Production.INFO: ==19432== Releasing lock... [2025-04-24 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:22:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:23:05 [end_date_ymd] => 2025-04-24 15:23:05 [RateCDR] => 1 ) [2025-04-24 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:23:05' and `end` < '2025-04-24 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:23:18] Production.INFO: count ==5500 [2025-04-24 15:23:20] Production.ERROR: pbx CDR StartTime 2025-04-24 12:23:05 - End Time 2025-04-24 15:23:05 [2025-04-24 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980502', 'tblTempUsageDetail_20' ) start [2025-04-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980502', 'tblTempUsageDetail_20' ) end [2025-04-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980502', 'tblTempVendorCDR_20' ) start [2025-04-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980502', 'tblTempVendorCDR_20' ) end [2025-04-24 15:23:21] Production.INFO: ProcessCDR(1,14980502,1,1,2) [2025-04-24 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980502', 'tblTempUsageDetail_20' ) start [2025-04-24 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980502', 'tblTempUsageDetail_20' ) end [2025-04-24 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:23:26] Production.INFO: ==19512== Releasing lock... [2025-04-24 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:23:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:24:05 [end_date_ymd] => 2025-04-24 15:24:05 [RateCDR] => 1 ) [2025-04-24 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:24:05' and `end` < '2025-04-24 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:24:19] Production.INFO: count ==5490 [2025-04-24 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:24:05 - End Time 2025-04-24 15:24:05 [2025-04-24 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980507', 'tblTempUsageDetail_20' ) start [2025-04-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980507', 'tblTempUsageDetail_20' ) end [2025-04-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980507', 'tblTempVendorCDR_20' ) start [2025-04-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980507', 'tblTempVendorCDR_20' ) end [2025-04-24 15:24:21] Production.INFO: ProcessCDR(1,14980507,1,1,2) [2025-04-24 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980507', 'tblTempUsageDetail_20' ) start [2025-04-24 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980507', 'tblTempUsageDetail_20' ) end [2025-04-24 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:24:26] Production.INFO: ==19586== Releasing lock... [2025-04-24 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:24:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:25:06 [end_date_ymd] => 2025-04-24 15:25:06 [RateCDR] => 1 ) [2025-04-24 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:25:06' and `end` < '2025-04-24 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:25:20] Production.INFO: count ==5481 [2025-04-24 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:25:06 - End Time 2025-04-24 15:25:06 [2025-04-24 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980512', 'tblTempUsageDetail_20' ) start [2025-04-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980512', 'tblTempUsageDetail_20' ) end [2025-04-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980512', 'tblTempVendorCDR_20' ) start [2025-04-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980512', 'tblTempVendorCDR_20' ) end [2025-04-24 15:25:22] Production.INFO: ProcessCDR(1,14980512,1,1,2) [2025-04-24 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980512', 'tblTempUsageDetail_20' ) start [2025-04-24 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980512', 'tblTempUsageDetail_20' ) end [2025-04-24 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:25:27] Production.INFO: ==19661== Releasing lock... [2025-04-24 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:25:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:26:05 [end_date_ymd] => 2025-04-24 15:26:05 [RateCDR] => 1 ) [2025-04-24 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:26:05' and `end` < '2025-04-24 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:26:19] Production.INFO: count ==5471 [2025-04-24 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:26:05 - End Time 2025-04-24 15:26:05 [2025-04-24 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980517', 'tblTempUsageDetail_20' ) start [2025-04-24 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980517', 'tblTempUsageDetail_20' ) end [2025-04-24 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980517', 'tblTempVendorCDR_20' ) start [2025-04-24 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980517', 'tblTempVendorCDR_20' ) end [2025-04-24 15:26:21] Production.INFO: ProcessCDR(1,14980517,1,1,2) [2025-04-24 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980517', 'tblTempUsageDetail_20' ) start [2025-04-24 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980517', 'tblTempUsageDetail_20' ) end [2025-04-24 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:26:25] Production.INFO: ==19775== Releasing lock... [2025-04-24 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:26:25] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:27:06 [end_date_ymd] => 2025-04-24 15:27:06 [RateCDR] => 1 ) [2025-04-24 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:27:06' and `end` < '2025-04-24 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:27:19] Production.INFO: count ==5444 [2025-04-24 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:27:06 - End Time 2025-04-24 15:27:06 [2025-04-24 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980522', 'tblTempUsageDetail_20' ) start [2025-04-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980522', 'tblTempUsageDetail_20' ) end [2025-04-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980522', 'tblTempVendorCDR_20' ) start [2025-04-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980522', 'tblTempVendorCDR_20' ) end [2025-04-24 15:27:22] Production.INFO: ProcessCDR(1,14980522,1,1,2) [2025-04-24 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980522', 'tblTempUsageDetail_20' ) start [2025-04-24 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980522', 'tblTempUsageDetail_20' ) end [2025-04-24 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:27:27] Production.INFO: ==19852== Releasing lock... [2025-04-24 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:27:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:28:05 [end_date_ymd] => 2025-04-24 15:28:05 [RateCDR] => 1 ) [2025-04-24 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:28:05' and `end` < '2025-04-24 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:28:19] Production.INFO: count ==5446 [2025-04-24 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:28:05 - End Time 2025-04-24 15:28:05 [2025-04-24 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980527', 'tblTempUsageDetail_20' ) start [2025-04-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980527', 'tblTempUsageDetail_20' ) end [2025-04-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980527', 'tblTempVendorCDR_20' ) start [2025-04-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980527', 'tblTempVendorCDR_20' ) end [2025-04-24 15:28:22] Production.INFO: ProcessCDR(1,14980527,1,1,2) [2025-04-24 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980527', 'tblTempUsageDetail_20' ) start [2025-04-24 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980527', 'tblTempUsageDetail_20' ) end [2025-04-24 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:28:27] Production.INFO: ==19926== Releasing lock... [2025-04-24 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:28:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:29:06 [end_date_ymd] => 2025-04-24 15:29:06 [RateCDR] => 1 ) [2025-04-24 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:29:06' and `end` < '2025-04-24 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:29:20] Production.INFO: count ==5439 [2025-04-24 15:29:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:29:06 - End Time 2025-04-24 15:29:06 [2025-04-24 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980532', 'tblTempUsageDetail_20' ) start [2025-04-24 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980532', 'tblTempUsageDetail_20' ) end [2025-04-24 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980532', 'tblTempVendorCDR_20' ) start [2025-04-24 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980532', 'tblTempVendorCDR_20' ) end [2025-04-24 15:29:22] Production.INFO: ProcessCDR(1,14980532,1,1,2) [2025-04-24 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980532', 'tblTempUsageDetail_20' ) start [2025-04-24 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980532', 'tblTempUsageDetail_20' ) end [2025-04-24 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:29:27] Production.INFO: ==20004== Releasing lock... [2025-04-24 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:29:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:30:05 [end_date_ymd] => 2025-04-24 15:30:05 [RateCDR] => 1 ) [2025-04-24 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:30:05' and `end` < '2025-04-24 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:30:20] Production.INFO: count ==5440 [2025-04-24 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:30:05 - End Time 2025-04-24 15:30:05 [2025-04-24 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980538', 'tblTempUsageDetail_20' ) start [2025-04-24 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980538', 'tblTempUsageDetail_20' ) end [2025-04-24 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980538', 'tblTempVendorCDR_20' ) start [2025-04-24 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980538', 'tblTempVendorCDR_20' ) end [2025-04-24 15:30:22] Production.INFO: ProcessCDR(1,14980538,1,1,2) [2025-04-24 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980538', 'tblTempUsageDetail_20' ) start [2025-04-24 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980538', 'tblTempUsageDetail_20' ) end [2025-04-24 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:30:27] Production.INFO: ==20078== Releasing lock... [2025-04-24 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:30:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:31:05 [end_date_ymd] => 2025-04-24 15:31:05 [RateCDR] => 1 ) [2025-04-24 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:31:05' and `end` < '2025-04-24 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:31:20] Production.INFO: count ==5425 [2025-04-24 15:31:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:31:05 - End Time 2025-04-24 15:31:05 [2025-04-24 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980543', 'tblTempUsageDetail_20' ) start [2025-04-24 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980543', 'tblTempUsageDetail_20' ) end [2025-04-24 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980543', 'tblTempVendorCDR_20' ) start [2025-04-24 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980543', 'tblTempVendorCDR_20' ) end [2025-04-24 15:31:23] Production.INFO: ProcessCDR(1,14980543,1,1,2) [2025-04-24 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980543', 'tblTempUsageDetail_20' ) start [2025-04-24 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980543', 'tblTempUsageDetail_20' ) end [2025-04-24 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:31:28] Production.INFO: ==20156== Releasing lock... [2025-04-24 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:31:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:32:05 [end_date_ymd] => 2025-04-24 15:32:05 [RateCDR] => 1 ) [2025-04-24 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:32:05' and `end` < '2025-04-24 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:32:19] Production.INFO: count ==5409 [2025-04-24 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:32:05 - End Time 2025-04-24 15:32:05 [2025-04-24 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980548', 'tblTempUsageDetail_20' ) start [2025-04-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980548', 'tblTempUsageDetail_20' ) end [2025-04-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980548', 'tblTempVendorCDR_20' ) start [2025-04-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980548', 'tblTempVendorCDR_20' ) end [2025-04-24 15:32:22] Production.INFO: ProcessCDR(1,14980548,1,1,2) [2025-04-24 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980548', 'tblTempUsageDetail_20' ) start [2025-04-24 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980548', 'tblTempUsageDetail_20' ) end [2025-04-24 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:32:27] Production.INFO: ==20231== Releasing lock... [2025-04-24 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:32:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:33:05 [end_date_ymd] => 2025-04-24 15:33:05 [RateCDR] => 1 ) [2025-04-24 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:33:05' and `end` < '2025-04-24 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:33:19] Production.INFO: count ==5411 [2025-04-24 15:33:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:33:05 - End Time 2025-04-24 15:33:05 [2025-04-24 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980553', 'tblTempUsageDetail_20' ) start [2025-04-24 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980553', 'tblTempUsageDetail_20' ) end [2025-04-24 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980553', 'tblTempVendorCDR_20' ) start [2025-04-24 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980553', 'tblTempVendorCDR_20' ) end [2025-04-24 15:33:22] Production.INFO: ProcessCDR(1,14980553,1,1,2) [2025-04-24 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980553', 'tblTempUsageDetail_20' ) start [2025-04-24 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980553', 'tblTempUsageDetail_20' ) end [2025-04-24 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:33:27] Production.INFO: ==20307== Releasing lock... [2025-04-24 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:33:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:34:05 [end_date_ymd] => 2025-04-24 15:34:05 [RateCDR] => 1 ) [2025-04-24 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:34:05' and `end` < '2025-04-24 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:34:19] Production.INFO: count ==5425 [2025-04-24 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:34:05 - End Time 2025-04-24 15:34:05 [2025-04-24 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980558', 'tblTempUsageDetail_20' ) start [2025-04-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980558', 'tblTempUsageDetail_20' ) end [2025-04-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980558', 'tblTempVendorCDR_20' ) start [2025-04-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980558', 'tblTempVendorCDR_20' ) end [2025-04-24 15:34:22] Production.INFO: ProcessCDR(1,14980558,1,1,2) [2025-04-24 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980558', 'tblTempUsageDetail_20' ) start [2025-04-24 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980558', 'tblTempUsageDetail_20' ) end [2025-04-24 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:34:27] Production.INFO: ==20380== Releasing lock... [2025-04-24 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:34:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:35:05 [end_date_ymd] => 2025-04-24 15:35:05 [RateCDR] => 1 ) [2025-04-24 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:35:05' and `end` < '2025-04-24 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-04-24 15:35:20] Production.INFO: count ==5429 [2025-04-24 15:35:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:35:05 - End Time 2025-04-24 15:35:05 [2025-04-24 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980563', 'tblTempUsageDetail_20' ) start [2025-04-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980563', 'tblTempUsageDetail_20' ) end [2025-04-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980563', 'tblTempVendorCDR_20' ) start [2025-04-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980563', 'tblTempVendorCDR_20' ) end [2025-04-24 15:35:22] Production.INFO: ProcessCDR(1,14980563,1,1,2) [2025-04-24 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980563', 'tblTempUsageDetail_20' ) start [2025-04-24 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980563', 'tblTempUsageDetail_20' ) end [2025-04-24 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:35:27] Production.INFO: ==20465== Releasing lock... [2025-04-24 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:35:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:36:05 [end_date_ymd] => 2025-04-24 15:36:05 [RateCDR] => 1 ) [2025-04-24 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:36:05' and `end` < '2025-04-24 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:36:19] Production.INFO: count ==5444 [2025-04-24 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:36:05 - End Time 2025-04-24 15:36:05 [2025-04-24 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980568', 'tblTempUsageDetail_20' ) start [2025-04-24 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980568', 'tblTempUsageDetail_20' ) end [2025-04-24 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980568', 'tblTempVendorCDR_20' ) start [2025-04-24 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980568', 'tblTempVendorCDR_20' ) end [2025-04-24 15:36:22] Production.INFO: ProcessCDR(1,14980568,1,1,2) [2025-04-24 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980568', 'tblTempUsageDetail_20' ) start [2025-04-24 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980568', 'tblTempUsageDetail_20' ) end [2025-04-24 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:36:28] Production.INFO: ==20541== Releasing lock... [2025-04-24 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:36:28] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:37:05 [end_date_ymd] => 2025-04-24 15:37:05 [RateCDR] => 1 ) [2025-04-24 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:37:05' and `end` < '2025-04-24 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:37:19] Production.INFO: count ==5448 [2025-04-24 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:37:05 - End Time 2025-04-24 15:37:05 [2025-04-24 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980573', 'tblTempUsageDetail_20' ) start [2025-04-24 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980573', 'tblTempUsageDetail_20' ) end [2025-04-24 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980573', 'tblTempVendorCDR_20' ) start [2025-04-24 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980573', 'tblTempVendorCDR_20' ) end [2025-04-24 15:37:22] Production.INFO: ProcessCDR(1,14980573,1,1,2) [2025-04-24 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980573', 'tblTempUsageDetail_20' ) start [2025-04-24 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980573', 'tblTempUsageDetail_20' ) end [2025-04-24 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:37:27] Production.INFO: ==20613== Releasing lock... [2025-04-24 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:37:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:38:05 [end_date_ymd] => 2025-04-24 15:38:05 [RateCDR] => 1 ) [2025-04-24 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:38:05' and `end` < '2025-04-24 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:38:20] Production.INFO: count ==5445 [2025-04-24 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:38:05 - End Time 2025-04-24 15:38:05 [2025-04-24 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980578', 'tblTempUsageDetail_20' ) start [2025-04-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980578', 'tblTempUsageDetail_20' ) end [2025-04-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980578', 'tblTempVendorCDR_20' ) start [2025-04-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980578', 'tblTempVendorCDR_20' ) end [2025-04-24 15:38:22] Production.INFO: ProcessCDR(1,14980578,1,1,2) [2025-04-24 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980578', 'tblTempUsageDetail_20' ) start [2025-04-24 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980578', 'tblTempUsageDetail_20' ) end [2025-04-24 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:38:27] Production.INFO: ==20700== Releasing lock... [2025-04-24 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:38:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:39:05 [end_date_ymd] => 2025-04-24 15:39:05 [RateCDR] => 1 ) [2025-04-24 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:39:05' and `end` < '2025-04-24 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:39:19] Production.INFO: count ==5437 [2025-04-24 15:39:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:39:05 - End Time 2025-04-24 15:39:05 [2025-04-24 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980583', 'tblTempUsageDetail_20' ) start [2025-04-24 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980583', 'tblTempUsageDetail_20' ) end [2025-04-24 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980583', 'tblTempVendorCDR_20' ) start [2025-04-24 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980583', 'tblTempVendorCDR_20' ) end [2025-04-24 15:39:22] Production.INFO: ProcessCDR(1,14980583,1,1,2) [2025-04-24 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980583', 'tblTempUsageDetail_20' ) start [2025-04-24 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980583', 'tblTempUsageDetail_20' ) end [2025-04-24 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:39:27] Production.INFO: ==20785== Releasing lock... [2025-04-24 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:39:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:40:06 [end_date_ymd] => 2025-04-24 15:40:06 [RateCDR] => 1 ) [2025-04-24 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:40:06' and `end` < '2025-04-24 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:40:21] Production.INFO: count ==5435 [2025-04-24 15:40:23] Production.ERROR: pbx CDR StartTime 2025-04-24 12:40:06 - End Time 2025-04-24 15:40:06 [2025-04-24 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980589', 'tblTempUsageDetail_20' ) start [2025-04-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980589', 'tblTempUsageDetail_20' ) end [2025-04-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980589', 'tblTempVendorCDR_20' ) start [2025-04-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980589', 'tblTempVendorCDR_20' ) end [2025-04-24 15:40:23] Production.INFO: ProcessCDR(1,14980589,1,1,2) [2025-04-24 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980589', 'tblTempUsageDetail_20' ) start [2025-04-24 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980589', 'tblTempUsageDetail_20' ) end [2025-04-24 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:40:29] Production.INFO: ==20875== Releasing lock... [2025-04-24 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:40:29] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:41:05 [end_date_ymd] => 2025-04-24 15:41:05 [RateCDR] => 1 ) [2025-04-24 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:41:05' and `end` < '2025-04-24 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:41:19] Production.INFO: count ==5424 [2025-04-24 15:41:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:41:05 - End Time 2025-04-24 15:41:05 [2025-04-24 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980594', 'tblTempUsageDetail_20' ) start [2025-04-24 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980594', 'tblTempUsageDetail_20' ) end [2025-04-24 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980594', 'tblTempVendorCDR_20' ) start [2025-04-24 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980594', 'tblTempVendorCDR_20' ) end [2025-04-24 15:41:22] Production.INFO: ProcessCDR(1,14980594,1,1,2) [2025-04-24 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980594', 'tblTempUsageDetail_20' ) start [2025-04-24 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980594', 'tblTempUsageDetail_20' ) end [2025-04-24 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:41:27] Production.INFO: ==20960== Releasing lock... [2025-04-24 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:41:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:42:05 [end_date_ymd] => 2025-04-24 15:42:05 [RateCDR] => 1 ) [2025-04-24 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:42:05' and `end` < '2025-04-24 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:42:19] Production.INFO: count ==5411 [2025-04-24 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:42:05 - End Time 2025-04-24 15:42:05 [2025-04-24 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980599', 'tblTempUsageDetail_20' ) start [2025-04-24 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980599', 'tblTempUsageDetail_20' ) end [2025-04-24 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980599', 'tblTempVendorCDR_20' ) start [2025-04-24 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980599', 'tblTempVendorCDR_20' ) end [2025-04-24 15:42:22] Production.INFO: ProcessCDR(1,14980599,1,1,2) [2025-04-24 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980599', 'tblTempUsageDetail_20' ) start [2025-04-24 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980599', 'tblTempUsageDetail_20' ) end [2025-04-24 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:42:27] Production.INFO: ==21087== Releasing lock... [2025-04-24 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:42:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:43:05 [end_date_ymd] => 2025-04-24 15:43:05 [RateCDR] => 1 ) [2025-04-24 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:43:05' and `end` < '2025-04-24 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:43:19] Production.INFO: count ==5402 [2025-04-24 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:43:05 - End Time 2025-04-24 15:43:05 [2025-04-24 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980604', 'tblTempUsageDetail_20' ) start [2025-04-24 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980604', 'tblTempUsageDetail_20' ) end [2025-04-24 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980604', 'tblTempVendorCDR_20' ) start [2025-04-24 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980604', 'tblTempVendorCDR_20' ) end [2025-04-24 15:43:21] Production.INFO: ProcessCDR(1,14980604,1,1,2) [2025-04-24 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980604', 'tblTempUsageDetail_20' ) start [2025-04-24 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980604', 'tblTempUsageDetail_20' ) end [2025-04-24 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:43:27] Production.INFO: ==21166== Releasing lock... [2025-04-24 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:43:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:44:05 [end_date_ymd] => 2025-04-24 15:44:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 12:44:05' and `end` < '2025-04-24 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-04-24 15:44:19] Production.INFO: count ==5413 [2025-04-24 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:44:05 - End Time 2025-04-24 15:44:05 [2025-04-24 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980609', 'tblTempUsageDetail_20' ) start [2025-04-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980609', 'tblTempUsageDetail_20' ) end [2025-04-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980609', 'tblTempVendorCDR_20' ) start [2025-04-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980609', 'tblTempVendorCDR_20' ) end [2025-04-24 15:44:22] Production.INFO: ProcessCDR(1,14980609,1,1,2) [2025-04-24 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980609', 'tblTempUsageDetail_20' ) start [2025-04-24 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980609', 'tblTempUsageDetail_20' ) end [2025-04-24 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:44:27] Production.INFO: ==21247== Releasing lock... [2025-04-24 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:44:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:45:05 [end_date_ymd] => 2025-04-24 15:45:05 [RateCDR] => 1 ) [2025-04-24 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:45:05' and `end` < '2025-04-24 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:45:19] Production.INFO: count ==5414 [2025-04-24 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:45:05 - End Time 2025-04-24 15:45:05 [2025-04-24 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980614', 'tblTempUsageDetail_20' ) start [2025-04-24 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980614', 'tblTempUsageDetail_20' ) end [2025-04-24 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980614', 'tblTempVendorCDR_20' ) start [2025-04-24 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980614', 'tblTempVendorCDR_20' ) end [2025-04-24 15:45:22] Production.INFO: ProcessCDR(1,14980614,1,1,2) [2025-04-24 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980614', 'tblTempUsageDetail_20' ) start [2025-04-24 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980614', 'tblTempUsageDetail_20' ) end [2025-04-24 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:45:26] Production.INFO: ==21325== Releasing lock... [2025-04-24 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:45:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:46:05 [end_date_ymd] => 2025-04-24 15:46:05 [RateCDR] => 1 ) [2025-04-24 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:46:05' and `end` < '2025-04-24 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:46:19] Production.INFO: count ==5411 [2025-04-24 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:46:05 - End Time 2025-04-24 15:46:05 [2025-04-24 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980619', 'tblTempUsageDetail_20' ) start [2025-04-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980619', 'tblTempUsageDetail_20' ) end [2025-04-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980619', 'tblTempVendorCDR_20' ) start [2025-04-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980619', 'tblTempVendorCDR_20' ) end [2025-04-24 15:46:22] Production.INFO: ProcessCDR(1,14980619,1,1,2) [2025-04-24 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980619', 'tblTempUsageDetail_20' ) start [2025-04-24 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980619', 'tblTempUsageDetail_20' ) end [2025-04-24 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:46:27] Production.INFO: ==21405== Releasing lock... [2025-04-24 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:46:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:47:04 [end_date_ymd] => 2025-04-24 15:47:04 [RateCDR] => 1 ) [2025-04-24 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:47:04' and `end` < '2025-04-24 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:47:18] Production.INFO: count ==5403 [2025-04-24 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:47:04 - End Time 2025-04-24 15:47:04 [2025-04-24 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980624', 'tblTempUsageDetail_20' ) start [2025-04-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980624', 'tblTempUsageDetail_20' ) end [2025-04-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980624', 'tblTempVendorCDR_20' ) start [2025-04-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980624', 'tblTempVendorCDR_20' ) end [2025-04-24 15:47:21] Production.INFO: ProcessCDR(1,14980624,1,1,2) [2025-04-24 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980624', 'tblTempUsageDetail_20' ) start [2025-04-24 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980624', 'tblTempUsageDetail_20' ) end [2025-04-24 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:47:26] Production.INFO: ==21476== Releasing lock... [2025-04-24 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:47:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:48:05 [end_date_ymd] => 2025-04-24 15:48:05 [RateCDR] => 1 ) [2025-04-24 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:48:05' and `end` < '2025-04-24 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:48:19] Production.INFO: count ==5440 [2025-04-24 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:48:05 - End Time 2025-04-24 15:48:05 [2025-04-24 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980629', 'tblTempUsageDetail_20' ) start [2025-04-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980629', 'tblTempUsageDetail_20' ) end [2025-04-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980629', 'tblTempVendorCDR_20' ) start [2025-04-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980629', 'tblTempVendorCDR_20' ) end [2025-04-24 15:48:22] Production.INFO: ProcessCDR(1,14980629,1,1,2) [2025-04-24 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980629', 'tblTempUsageDetail_20' ) start [2025-04-24 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980629', 'tblTempUsageDetail_20' ) end [2025-04-24 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:48:27] Production.INFO: ==21547== Releasing lock... [2025-04-24 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:48:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:49:05 [end_date_ymd] => 2025-04-24 15:49:05 [RateCDR] => 1 ) [2025-04-24 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:49:05' and `end` < '2025-04-24 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:49:19] Production.INFO: count ==5460 [2025-04-24 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:49:05 - End Time 2025-04-24 15:49:05 [2025-04-24 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980634', 'tblTempUsageDetail_20' ) start [2025-04-24 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980634', 'tblTempUsageDetail_20' ) end [2025-04-24 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980634', 'tblTempVendorCDR_20' ) start [2025-04-24 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980634', 'tblTempVendorCDR_20' ) end [2025-04-24 15:49:22] Production.INFO: ProcessCDR(1,14980634,1,1,2) [2025-04-24 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980634', 'tblTempUsageDetail_20' ) start [2025-04-24 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980634', 'tblTempUsageDetail_20' ) end [2025-04-24 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:49:27] Production.INFO: ==21619== Releasing lock... [2025-04-24 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:49:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:50:06 [end_date_ymd] => 2025-04-24 15:50:06 [RateCDR] => 1 ) [2025-04-24 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:50:06' and `end` < '2025-04-24 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:50:19] Production.INFO: count ==5467 [2025-04-24 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:50:06 - End Time 2025-04-24 15:50:06 [2025-04-24 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980640', 'tblTempUsageDetail_20' ) start [2025-04-24 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980640', 'tblTempUsageDetail_20' ) end [2025-04-24 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980640', 'tblTempVendorCDR_20' ) start [2025-04-24 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980640', 'tblTempVendorCDR_20' ) end [2025-04-24 15:50:22] Production.INFO: ProcessCDR(1,14980640,1,1,2) [2025-04-24 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980640', 'tblTempUsageDetail_20' ) start [2025-04-24 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980640', 'tblTempUsageDetail_20' ) end [2025-04-24 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:50:27] Production.INFO: ==21692== Releasing lock... [2025-04-24 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:50:27] Production.INFO: 69 MB #Memory Used# [2025-04-24 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:51:06 [end_date_ymd] => 2025-04-24 15:51:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 12:51:06' and `end` < '2025-04-24 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-04-24 15:51:20] Production.INFO: count ==5521 [2025-04-24 15:51:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:51:06 - End Time 2025-04-24 15:51:06 [2025-04-24 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980645', 'tblTempUsageDetail_20' ) start [2025-04-24 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980645', 'tblTempUsageDetail_20' ) end [2025-04-24 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980645', 'tblTempVendorCDR_20' ) start [2025-04-24 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980645', 'tblTempVendorCDR_20' ) end [2025-04-24 15:51:23] Production.INFO: ProcessCDR(1,14980645,1,1,2) [2025-04-24 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980645', 'tblTempUsageDetail_20' ) start [2025-04-24 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980645', 'tblTempUsageDetail_20' ) end [2025-04-24 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:51:28] Production.INFO: ==21778== Releasing lock... [2025-04-24 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:51:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:52:05 [end_date_ymd] => 2025-04-24 15:52:05 [RateCDR] => 1 ) [2025-04-24 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:52:05' and `end` < '2025-04-24 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:52:19] Production.INFO: count ==5549 [2025-04-24 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:52:05 - End Time 2025-04-24 15:52:05 [2025-04-24 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980650', 'tblTempUsageDetail_20' ) start [2025-04-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980650', 'tblTempUsageDetail_20' ) end [2025-04-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980650', 'tblTempVendorCDR_20' ) start [2025-04-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980650', 'tblTempVendorCDR_20' ) end [2025-04-24 15:52:22] Production.INFO: ProcessCDR(1,14980650,1,1,2) [2025-04-24 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980650', 'tblTempUsageDetail_20' ) start [2025-04-24 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980650', 'tblTempUsageDetail_20' ) end [2025-04-24 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:52:27] Production.INFO: ==21854== Releasing lock... [2025-04-24 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:53:05 [end_date_ymd] => 2025-04-24 15:53:05 [RateCDR] => 1 ) [2025-04-24 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:53:05' and `end` < '2025-04-24 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:53:19] Production.INFO: count ==5565 [2025-04-24 15:53:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:53:05 - End Time 2025-04-24 15:53:05 [2025-04-24 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980655', 'tblTempUsageDetail_20' ) start [2025-04-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980655', 'tblTempUsageDetail_20' ) end [2025-04-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980655', 'tblTempVendorCDR_20' ) start [2025-04-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980655', 'tblTempVendorCDR_20' ) end [2025-04-24 15:53:22] Production.INFO: ProcessCDR(1,14980655,1,1,2) [2025-04-24 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980655', 'tblTempUsageDetail_20' ) start [2025-04-24 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980655', 'tblTempUsageDetail_20' ) end [2025-04-24 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:53:27] Production.INFO: ==21926== Releasing lock... [2025-04-24 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:53:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:54:05 [end_date_ymd] => 2025-04-24 15:54:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 12:54:05' and `end` < '2025-04-24 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-04-24 15:54:19] Production.INFO: count ==5599 [2025-04-24 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:54:05 - End Time 2025-04-24 15:54:05 [2025-04-24 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980660', 'tblTempUsageDetail_20' ) start [2025-04-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980660', 'tblTempUsageDetail_20' ) end [2025-04-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980660', 'tblTempVendorCDR_20' ) start [2025-04-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980660', 'tblTempVendorCDR_20' ) end [2025-04-24 15:54:22] Production.INFO: ProcessCDR(1,14980660,1,1,2) [2025-04-24 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980660', 'tblTempUsageDetail_20' ) start [2025-04-24 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980660', 'tblTempUsageDetail_20' ) end [2025-04-24 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:54:27] Production.INFO: ==22004== Releasing lock... [2025-04-24 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:54:27] Production.INFO: 70 MB #Memory Used# [2025-04-24 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:55:06 [end_date_ymd] => 2025-04-24 15:55:06 [RateCDR] => 1 ) [2025-04-24 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:55:06' and `end` < '2025-04-24 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:55:20] Production.INFO: count ==5609 [2025-04-24 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-24 12:55:06 - End Time 2025-04-24 15:55:06 [2025-04-24 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980665', 'tblTempUsageDetail_20' ) start [2025-04-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980665', 'tblTempUsageDetail_20' ) end [2025-04-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980665', 'tblTempVendorCDR_20' ) start [2025-04-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980665', 'tblTempVendorCDR_20' ) end [2025-04-24 15:55:22] Production.INFO: ProcessCDR(1,14980665,1,1,2) [2025-04-24 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980665', 'tblTempUsageDetail_20' ) start [2025-04-24 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980665', 'tblTempUsageDetail_20' ) end [2025-04-24 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:55:28] Production.INFO: ==22074== Releasing lock... [2025-04-24 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:55:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:56:05 [end_date_ymd] => 2025-04-24 15:56:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 12:56:05' and `end` < '2025-04-24 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-04-24 15:56:19] Production.INFO: count ==5623 [2025-04-24 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:56:05 - End Time 2025-04-24 15:56:05 [2025-04-24 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980670', 'tblTempUsageDetail_20' ) start [2025-04-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980670', 'tblTempUsageDetail_20' ) end [2025-04-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980670', 'tblTempVendorCDR_20' ) start [2025-04-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980670', 'tblTempVendorCDR_20' ) end [2025-04-24 15:56:22] Production.INFO: ProcessCDR(1,14980670,1,1,2) [2025-04-24 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980670', 'tblTempUsageDetail_20' ) start [2025-04-24 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980670', 'tblTempUsageDetail_20' ) end [2025-04-24 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:56:27] Production.INFO: ==22170== Releasing lock... [2025-04-24 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:56:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:57:05 [end_date_ymd] => 2025-04-24 15:57:05 [RateCDR] => 1 ) [2025-04-24 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:57:05' and `end` < '2025-04-24 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:57:19] Production.INFO: count ==5643 [2025-04-24 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:57:05 - End Time 2025-04-24 15:57:05 [2025-04-24 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980675', 'tblTempUsageDetail_20' ) start [2025-04-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980675', 'tblTempUsageDetail_20' ) end [2025-04-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980675', 'tblTempVendorCDR_20' ) start [2025-04-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980675', 'tblTempVendorCDR_20' ) end [2025-04-24 15:57:22] Production.INFO: ProcessCDR(1,14980675,1,1,2) [2025-04-24 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980675', 'tblTempUsageDetail_20' ) start [2025-04-24 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980675', 'tblTempUsageDetail_20' ) end [2025-04-24 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:57:27] Production.INFO: ==22283== Releasing lock... [2025-04-24 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:57:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:58:05 [end_date_ymd] => 2025-04-24 15:58:05 [RateCDR] => 1 ) [2025-04-24 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:58:05' and `end` < '2025-04-24 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:58:19] Production.INFO: count ==5635 [2025-04-24 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:58:05 - End Time 2025-04-24 15:58:05 [2025-04-24 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980680', 'tblTempUsageDetail_20' ) start [2025-04-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980680', 'tblTempUsageDetail_20' ) end [2025-04-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980680', 'tblTempVendorCDR_20' ) start [2025-04-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980680', 'tblTempVendorCDR_20' ) end [2025-04-24 15:58:22] Production.INFO: ProcessCDR(1,14980680,1,1,2) [2025-04-24 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980680', 'tblTempUsageDetail_20' ) start [2025-04-24 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980680', 'tblTempUsageDetail_20' ) end [2025-04-24 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:58:27] Production.INFO: ==22359== Releasing lock... [2025-04-24 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:58:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 12:59:05 [end_date_ymd] => 2025-04-24 15:59:05 [RateCDR] => 1 ) [2025-04-24 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 12:59:05' and `end` < '2025-04-24 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 15:59:19] Production.INFO: count ==5644 [2025-04-24 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-24 12:59:05 - End Time 2025-04-24 15:59:05 [2025-04-24 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980685', 'tblTempUsageDetail_20' ) start [2025-04-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980685', 'tblTempUsageDetail_20' ) end [2025-04-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980685', 'tblTempVendorCDR_20' ) start [2025-04-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980685', 'tblTempVendorCDR_20' ) end [2025-04-24 15:59:22] Production.INFO: ProcessCDR(1,14980685,1,1,2) [2025-04-24 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980685', 'tblTempUsageDetail_20' ) start [2025-04-24 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980685', 'tblTempUsageDetail_20' ) end [2025-04-24 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 15:59:27] Production.INFO: ==22430== Releasing lock... [2025-04-24 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 15:59:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:00:06 [end_date_ymd] => 2025-04-24 16:00:06 [RateCDR] => 1 ) [2025-04-24 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:00:06' and `end` < '2025-04-24 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:00:20] Production.INFO: count ==5657 [2025-04-24 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-24 13:00:06 - End Time 2025-04-24 16:00:06 [2025-04-24 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980691', 'tblTempUsageDetail_20' ) start [2025-04-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980691', 'tblTempUsageDetail_20' ) end [2025-04-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980691', 'tblTempVendorCDR_20' ) start [2025-04-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980691', 'tblTempVendorCDR_20' ) end [2025-04-24 16:00:23] Production.INFO: ProcessCDR(1,14980691,1,1,2) [2025-04-24 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980691', 'tblTempUsageDetail_20' ) start [2025-04-24 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980691', 'tblTempUsageDetail_20' ) end [2025-04-24 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:00:29] Production.INFO: ==22511== Releasing lock... [2025-04-24 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:00:29] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:01:05 [end_date_ymd] => 2025-04-24 16:01:05 [RateCDR] => 1 ) [2025-04-24 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:01:05' and `end` < '2025-04-24 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:01:19] Production.INFO: count ==5689 [2025-04-24 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:01:05 - End Time 2025-04-24 16:01:05 [2025-04-24 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980696', 'tblTempUsageDetail_20' ) start [2025-04-24 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980696', 'tblTempUsageDetail_20' ) end [2025-04-24 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980696', 'tblTempVendorCDR_20' ) start [2025-04-24 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980696', 'tblTempVendorCDR_20' ) end [2025-04-24 16:01:22] Production.INFO: ProcessCDR(1,14980696,1,1,2) [2025-04-24 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980696', 'tblTempUsageDetail_20' ) start [2025-04-24 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980696', 'tblTempUsageDetail_20' ) end [2025-04-24 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:01:27] Production.INFO: ==22597== Releasing lock... [2025-04-24 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:01:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:02:05 [end_date_ymd] => 2025-04-24 16:02:05 [RateCDR] => 1 ) [2025-04-24 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:02:05' and `end` < '2025-04-24 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:02:19] Production.INFO: count ==5726 [2025-04-24 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:02:05 - End Time 2025-04-24 16:02:05 [2025-04-24 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980701', 'tblTempUsageDetail_20' ) start [2025-04-24 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980701', 'tblTempUsageDetail_20' ) end [2025-04-24 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980701', 'tblTempVendorCDR_20' ) start [2025-04-24 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980701', 'tblTempVendorCDR_20' ) end [2025-04-24 16:02:22] Production.INFO: ProcessCDR(1,14980701,1,1,2) [2025-04-24 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980701', 'tblTempUsageDetail_20' ) start [2025-04-24 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980701', 'tblTempUsageDetail_20' ) end [2025-04-24 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:02:27] Production.INFO: ==22669== Releasing lock... [2025-04-24 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:02:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:03:05 [end_date_ymd] => 2025-04-24 16:03:05 [RateCDR] => 1 ) [2025-04-24 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:03:05' and `end` < '2025-04-24 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:03:19] Production.INFO: count ==5724 [2025-04-24 16:03:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:03:05 - End Time 2025-04-24 16:03:05 [2025-04-24 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980706', 'tblTempUsageDetail_20' ) start [2025-04-24 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980706', 'tblTempUsageDetail_20' ) end [2025-04-24 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980706', 'tblTempVendorCDR_20' ) start [2025-04-24 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980706', 'tblTempVendorCDR_20' ) end [2025-04-24 16:03:22] Production.INFO: ProcessCDR(1,14980706,1,1,2) [2025-04-24 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980706', 'tblTempUsageDetail_20' ) start [2025-04-24 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980706', 'tblTempUsageDetail_20' ) end [2025-04-24 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:03:28] Production.INFO: ==22741== Releasing lock... [2025-04-24 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:03:28] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:04:05 [end_date_ymd] => 2025-04-24 16:04:05 [RateCDR] => 1 ) [2025-04-24 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:04:05' and `end` < '2025-04-24 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:04:19] Production.INFO: count ==5730 [2025-04-24 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:04:05 - End Time 2025-04-24 16:04:05 [2025-04-24 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980711', 'tblTempUsageDetail_20' ) start [2025-04-24 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980711', 'tblTempUsageDetail_20' ) end [2025-04-24 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980711', 'tblTempVendorCDR_20' ) start [2025-04-24 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980711', 'tblTempVendorCDR_20' ) end [2025-04-24 16:04:22] Production.INFO: ProcessCDR(1,14980711,1,1,2) [2025-04-24 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980711', 'tblTempUsageDetail_20' ) start [2025-04-24 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980711', 'tblTempUsageDetail_20' ) end [2025-04-24 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:04:27] Production.INFO: ==22822== Releasing lock... [2025-04-24 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:04:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:05:05 [end_date_ymd] => 2025-04-24 16:05:05 [RateCDR] => 1 ) [2025-04-24 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:05:05' and `end` < '2025-04-24 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:05:19] Production.INFO: count ==5727 [2025-04-24 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:05:05 - End Time 2025-04-24 16:05:05 [2025-04-24 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980716', 'tblTempUsageDetail_20' ) start [2025-04-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980716', 'tblTempUsageDetail_20' ) end [2025-04-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980716', 'tblTempVendorCDR_20' ) start [2025-04-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980716', 'tblTempVendorCDR_20' ) end [2025-04-24 16:05:22] Production.INFO: ProcessCDR(1,14980716,1,1,2) [2025-04-24 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980716', 'tblTempUsageDetail_20' ) start [2025-04-24 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980716', 'tblTempUsageDetail_20' ) end [2025-04-24 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:05:25] Production.INFO: ==22894== Releasing lock... [2025-04-24 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:05:25] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:06:05 [end_date_ymd] => 2025-04-24 16:06:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 13:06:05' and `end` < '2025-04-24 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-04-24 16:06:19] Production.INFO: count ==5731 [2025-04-24 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:06:05 - End Time 2025-04-24 16:06:05 [2025-04-24 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980721', 'tblTempUsageDetail_20' ) start [2025-04-24 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980721', 'tblTempUsageDetail_20' ) end [2025-04-24 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980721', 'tblTempVendorCDR_20' ) start [2025-04-24 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980721', 'tblTempVendorCDR_20' ) end [2025-04-24 16:06:22] Production.INFO: ProcessCDR(1,14980721,1,1,2) [2025-04-24 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980721', 'tblTempUsageDetail_20' ) start [2025-04-24 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980721', 'tblTempUsageDetail_20' ) end [2025-04-24 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:06:27] Production.INFO: ==22969== Releasing lock... [2025-04-24 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:06:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:07:05 [end_date_ymd] => 2025-04-24 16:07:05 [RateCDR] => 1 ) [2025-04-24 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:07:05' and `end` < '2025-04-24 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:07:18] Production.INFO: count ==5738 [2025-04-24 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:07:05 - End Time 2025-04-24 16:07:05 [2025-04-24 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980726', 'tblTempUsageDetail_20' ) start [2025-04-24 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980726', 'tblTempUsageDetail_20' ) end [2025-04-24 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980726', 'tblTempVendorCDR_20' ) start [2025-04-24 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980726', 'tblTempVendorCDR_20' ) end [2025-04-24 16:07:21] Production.INFO: ProcessCDR(1,14980726,1,1,2) [2025-04-24 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980726', 'tblTempUsageDetail_20' ) start [2025-04-24 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980726', 'tblTempUsageDetail_20' ) end [2025-04-24 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:07:26] Production.INFO: ==23040== Releasing lock... [2025-04-24 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:07:26] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:08:05 [end_date_ymd] => 2025-04-24 16:08:05 [RateCDR] => 1 ) [2025-04-24 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:08:05' and `end` < '2025-04-24 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:08:19] Production.INFO: count ==5743 [2025-04-24 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:08:05 - End Time 2025-04-24 16:08:05 [2025-04-24 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980731', 'tblTempUsageDetail_20' ) start [2025-04-24 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980731', 'tblTempUsageDetail_20' ) end [2025-04-24 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980731', 'tblTempVendorCDR_20' ) start [2025-04-24 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980731', 'tblTempVendorCDR_20' ) end [2025-04-24 16:08:21] Production.INFO: ProcessCDR(1,14980731,1,1,2) [2025-04-24 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980731', 'tblTempUsageDetail_20' ) start [2025-04-24 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980731', 'tblTempUsageDetail_20' ) end [2025-04-24 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:08:26] Production.INFO: ==23113== Releasing lock... [2025-04-24 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:08:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:09:05 [end_date_ymd] => 2025-04-24 16:09:05 [RateCDR] => 1 ) [2025-04-24 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:09:05' and `end` < '2025-04-24 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:09:19] Production.INFO: count ==5763 [2025-04-24 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:09:05 - End Time 2025-04-24 16:09:05 [2025-04-24 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980736', 'tblTempUsageDetail_20' ) start [2025-04-24 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980736', 'tblTempUsageDetail_20' ) end [2025-04-24 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980736', 'tblTempVendorCDR_20' ) start [2025-04-24 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980736', 'tblTempVendorCDR_20' ) end [2025-04-24 16:09:21] Production.INFO: ProcessCDR(1,14980736,1,1,2) [2025-04-24 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980736', 'tblTempUsageDetail_20' ) start [2025-04-24 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980736', 'tblTempUsageDetail_20' ) end [2025-04-24 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:09:25] Production.INFO: ==23185== Releasing lock... [2025-04-24 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:09:25] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:10:06 [end_date_ymd] => 2025-04-24 16:10:06 [RateCDR] => 1 ) [2025-04-24 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:10:06' and `end` < '2025-04-24 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:10:20] Production.INFO: count ==5764 [2025-04-24 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:10:06 - End Time 2025-04-24 16:10:06 [2025-04-24 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980742', 'tblTempUsageDetail_20' ) start [2025-04-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980742', 'tblTempUsageDetail_20' ) end [2025-04-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980742', 'tblTempVendorCDR_20' ) start [2025-04-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980742', 'tblTempVendorCDR_20' ) end [2025-04-24 16:10:23] Production.INFO: ProcessCDR(1,14980742,1,1,2) [2025-04-24 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980742', 'tblTempUsageDetail_20' ) start [2025-04-24 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980742', 'tblTempUsageDetail_20' ) end [2025-04-24 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:10:28] Production.INFO: ==23265== Releasing lock... [2025-04-24 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:10:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:11:05 [end_date_ymd] => 2025-04-24 16:11:05 [RateCDR] => 1 ) [2025-04-24 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:11:05' and `end` < '2025-04-24 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:11:19] Production.INFO: count ==5761 [2025-04-24 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:11:05 - End Time 2025-04-24 16:11:05 [2025-04-24 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980747', 'tblTempUsageDetail_20' ) start [2025-04-24 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980747', 'tblTempUsageDetail_20' ) end [2025-04-24 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980747', 'tblTempVendorCDR_20' ) start [2025-04-24 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980747', 'tblTempVendorCDR_20' ) end [2025-04-24 16:11:22] Production.INFO: ProcessCDR(1,14980747,1,1,2) [2025-04-24 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980747', 'tblTempUsageDetail_20' ) start [2025-04-24 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980747', 'tblTempUsageDetail_20' ) end [2025-04-24 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:11:27] Production.INFO: ==23342== Releasing lock... [2025-04-24 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:11:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:12:04 [end_date_ymd] => 2025-04-24 16:12:04 [RateCDR] => 1 ) [2025-04-24 16:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:12:04' and `end` < '2025-04-24 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:12:18] Production.INFO: count ==5754 [2025-04-24 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:12:04 - End Time 2025-04-24 16:12:04 [2025-04-24 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980752', 'tblTempUsageDetail_20' ) start [2025-04-24 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980752', 'tblTempUsageDetail_20' ) end [2025-04-24 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980752', 'tblTempVendorCDR_20' ) start [2025-04-24 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980752', 'tblTempVendorCDR_20' ) end [2025-04-24 16:12:21] Production.INFO: ProcessCDR(1,14980752,1,1,2) [2025-04-24 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980752', 'tblTempUsageDetail_20' ) start [2025-04-24 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980752', 'tblTempUsageDetail_20' ) end [2025-04-24 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:12:26] Production.INFO: ==23413== Releasing lock... [2025-04-24 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:12:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:13:05 [end_date_ymd] => 2025-04-24 16:13:05 [RateCDR] => 1 ) [2025-04-24 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:13:05' and `end` < '2025-04-24 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:13:19] Production.INFO: count ==5753 [2025-04-24 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:13:05 - End Time 2025-04-24 16:13:05 [2025-04-24 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980757', 'tblTempUsageDetail_20' ) start [2025-04-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980757', 'tblTempUsageDetail_20' ) end [2025-04-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980757', 'tblTempVendorCDR_20' ) start [2025-04-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980757', 'tblTempVendorCDR_20' ) end [2025-04-24 16:13:22] Production.INFO: ProcessCDR(1,14980757,1,1,2) [2025-04-24 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980757', 'tblTempUsageDetail_20' ) start [2025-04-24 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980757', 'tblTempUsageDetail_20' ) end [2025-04-24 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:13:27] Production.INFO: ==23534== Releasing lock... [2025-04-24 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:13:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:14:06 [end_date_ymd] => 2025-04-24 16:14:06 [RateCDR] => 1 ) [2025-04-24 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:14:06' and `end` < '2025-04-24 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:14:20] Production.INFO: count ==5744 [2025-04-24 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:14:06 - End Time 2025-04-24 16:14:06 [2025-04-24 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980762', 'tblTempUsageDetail_20' ) start [2025-04-24 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980762', 'tblTempUsageDetail_20' ) end [2025-04-24 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980762', 'tblTempVendorCDR_20' ) start [2025-04-24 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980762', 'tblTempVendorCDR_20' ) end [2025-04-24 16:14:23] Production.INFO: ProcessCDR(1,14980762,1,1,2) [2025-04-24 16:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980762', 'tblTempUsageDetail_20' ) start [2025-04-24 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980762', 'tblTempUsageDetail_20' ) end [2025-04-24 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:14:28] Production.INFO: ==23606== Releasing lock... [2025-04-24 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:14:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:15:05 [end_date_ymd] => 2025-04-24 16:15:05 [RateCDR] => 1 ) [2025-04-24 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:15:05' and `end` < '2025-04-24 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:15:19] Production.INFO: count ==5750 [2025-04-24 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:15:05 - End Time 2025-04-24 16:15:05 [2025-04-24 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980767', 'tblTempUsageDetail_20' ) start [2025-04-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980767', 'tblTempUsageDetail_20' ) end [2025-04-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980767', 'tblTempVendorCDR_20' ) start [2025-04-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980767', 'tblTempVendorCDR_20' ) end [2025-04-24 16:15:22] Production.INFO: ProcessCDR(1,14980767,1,1,2) [2025-04-24 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980767', 'tblTempUsageDetail_20' ) start [2025-04-24 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980767', 'tblTempUsageDetail_20' ) end [2025-04-24 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:15:28] Production.INFO: ==23694== Releasing lock... [2025-04-24 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:15:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:16:05 [end_date_ymd] => 2025-04-24 16:16:05 [RateCDR] => 1 ) [2025-04-24 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:16:05' and `end` < '2025-04-24 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:16:19] Production.INFO: count ==5758 [2025-04-24 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:16:05 - End Time 2025-04-24 16:16:05 [2025-04-24 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980772', 'tblTempUsageDetail_20' ) start [2025-04-24 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980772', 'tblTempUsageDetail_20' ) end [2025-04-24 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980772', 'tblTempVendorCDR_20' ) start [2025-04-24 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980772', 'tblTempVendorCDR_20' ) end [2025-04-24 16:16:22] Production.INFO: ProcessCDR(1,14980772,1,1,2) [2025-04-24 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980772', 'tblTempUsageDetail_20' ) start [2025-04-24 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980772', 'tblTempUsageDetail_20' ) end [2025-04-24 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:16:27] Production.INFO: ==23767== Releasing lock... [2025-04-24 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:16:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:17:05 [end_date_ymd] => 2025-04-24 16:17:05 [RateCDR] => 1 ) [2025-04-24 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:17:05' and `end` < '2025-04-24 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:17:18] Production.INFO: count ==5793 [2025-04-24 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:17:05 - End Time 2025-04-24 16:17:05 [2025-04-24 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980777', 'tblTempUsageDetail_20' ) start [2025-04-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980777', 'tblTempUsageDetail_20' ) end [2025-04-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980777', 'tblTempVendorCDR_20' ) start [2025-04-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980777', 'tblTempVendorCDR_20' ) end [2025-04-24 16:17:21] Production.INFO: ProcessCDR(1,14980777,1,1,2) [2025-04-24 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980777', 'tblTempUsageDetail_20' ) start [2025-04-24 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980777', 'tblTempUsageDetail_20' ) end [2025-04-24 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:17:26] Production.INFO: ==23838== Releasing lock... [2025-04-24 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:17:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:18:05 [end_date_ymd] => 2025-04-24 16:18:05 [RateCDR] => 1 ) [2025-04-24 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:18:05' and `end` < '2025-04-24 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:18:19] Production.INFO: count ==5793 [2025-04-24 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:18:05 - End Time 2025-04-24 16:18:05 [2025-04-24 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980782', 'tblTempUsageDetail_20' ) start [2025-04-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980782', 'tblTempUsageDetail_20' ) end [2025-04-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980782', 'tblTempVendorCDR_20' ) start [2025-04-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980782', 'tblTempVendorCDR_20' ) end [2025-04-24 16:18:22] Production.INFO: ProcessCDR(1,14980782,1,1,2) [2025-04-24 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980782', 'tblTempUsageDetail_20' ) start [2025-04-24 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980782', 'tblTempUsageDetail_20' ) end [2025-04-24 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:18:27] Production.INFO: ==23915== Releasing lock... [2025-04-24 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:19:05 [end_date_ymd] => 2025-04-24 16:19:05 [RateCDR] => 1 ) [2025-04-24 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:19:05' and `end` < '2025-04-24 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:19:19] Production.INFO: count ==5767 [2025-04-24 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:19:05 - End Time 2025-04-24 16:19:05 [2025-04-24 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980787', 'tblTempUsageDetail_20' ) start [2025-04-24 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980787', 'tblTempUsageDetail_20' ) end [2025-04-24 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980787', 'tblTempVendorCDR_20' ) start [2025-04-24 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980787', 'tblTempVendorCDR_20' ) end [2025-04-24 16:19:22] Production.INFO: ProcessCDR(1,14980787,1,1,2) [2025-04-24 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980787', 'tblTempUsageDetail_20' ) start [2025-04-24 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980787', 'tblTempUsageDetail_20' ) end [2025-04-24 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:19:27] Production.INFO: ==23985== Releasing lock... [2025-04-24 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:19:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:20:06 [end_date_ymd] => 2025-04-24 16:20:06 [RateCDR] => 1 ) [2025-04-24 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:20:06' and `end` < '2025-04-24 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:20:20] Production.INFO: count ==5754 [2025-04-24 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:20:06 - End Time 2025-04-24 16:20:06 [2025-04-24 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980792', 'tblTempUsageDetail_20' ) start [2025-04-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980792', 'tblTempUsageDetail_20' ) end [2025-04-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980792', 'tblTempVendorCDR_20' ) start [2025-04-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980792', 'tblTempVendorCDR_20' ) end [2025-04-24 16:20:23] Production.INFO: ProcessCDR(1,14980792,1,1,2) [2025-04-24 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980792', 'tblTempUsageDetail_20' ) start [2025-04-24 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980792', 'tblTempUsageDetail_20' ) end [2025-04-24 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:20:28] Production.INFO: ==24058== Releasing lock... [2025-04-24 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:20:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:21:05 [end_date_ymd] => 2025-04-24 16:21:05 [RateCDR] => 1 ) [2025-04-24 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:21:05' and `end` < '2025-04-24 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:21:19] Production.INFO: count ==5765 [2025-04-24 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:21:05 - End Time 2025-04-24 16:21:05 [2025-04-24 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980798', 'tblTempUsageDetail_20' ) start [2025-04-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980798', 'tblTempUsageDetail_20' ) end [2025-04-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980798', 'tblTempVendorCDR_20' ) start [2025-04-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980798', 'tblTempVendorCDR_20' ) end [2025-04-24 16:21:22] Production.INFO: ProcessCDR(1,14980798,1,1,2) [2025-04-24 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980798', 'tblTempUsageDetail_20' ) start [2025-04-24 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980798', 'tblTempUsageDetail_20' ) end [2025-04-24 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:21:27] Production.INFO: ==24134== Releasing lock... [2025-04-24 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:21:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:22:06 [end_date_ymd] => 2025-04-24 16:22:06 [RateCDR] => 1 ) [2025-04-24 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:22:06' and `end` < '2025-04-24 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:22:20] Production.INFO: count ==5758 [2025-04-24 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:22:06 - End Time 2025-04-24 16:22:06 [2025-04-24 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980803', 'tblTempUsageDetail_20' ) start [2025-04-24 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980803', 'tblTempUsageDetail_20' ) end [2025-04-24 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980803', 'tblTempVendorCDR_20' ) start [2025-04-24 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980803', 'tblTempVendorCDR_20' ) end [2025-04-24 16:22:23] Production.INFO: ProcessCDR(1,14980803,1,1,2) [2025-04-24 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980803', 'tblTempUsageDetail_20' ) start [2025-04-24 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980803', 'tblTempUsageDetail_20' ) end [2025-04-24 16:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:22:29] Production.INFO: ==24207== Releasing lock... [2025-04-24 16:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:22:29] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:23:05 [end_date_ymd] => 2025-04-24 16:23:05 [RateCDR] => 1 ) [2025-04-24 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:23:05' and `end` < '2025-04-24 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:23:19] Production.INFO: count ==5781 [2025-04-24 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:23:05 - End Time 2025-04-24 16:23:05 [2025-04-24 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980808', 'tblTempUsageDetail_20' ) start [2025-04-24 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980808', 'tblTempUsageDetail_20' ) end [2025-04-24 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980808', 'tblTempVendorCDR_20' ) start [2025-04-24 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980808', 'tblTempVendorCDR_20' ) end [2025-04-24 16:23:22] Production.INFO: ProcessCDR(1,14980808,1,1,2) [2025-04-24 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980808', 'tblTempUsageDetail_20' ) start [2025-04-24 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980808', 'tblTempUsageDetail_20' ) end [2025-04-24 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:23:27] Production.INFO: ==24281== Releasing lock... [2025-04-24 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:23:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:24:06 [end_date_ymd] => 2025-04-24 16:24:06 [RateCDR] => 1 ) [2025-04-24 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:24:06' and `end` < '2025-04-24 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:24:20] Production.INFO: count ==5778 [2025-04-24 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:24:06 - End Time 2025-04-24 16:24:06 [2025-04-24 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980813', 'tblTempUsageDetail_20' ) start [2025-04-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980813', 'tblTempUsageDetail_20' ) end [2025-04-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980813', 'tblTempVendorCDR_20' ) start [2025-04-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980813', 'tblTempVendorCDR_20' ) end [2025-04-24 16:24:23] Production.INFO: ProcessCDR(1,14980813,1,1,2) [2025-04-24 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980813', 'tblTempUsageDetail_20' ) start [2025-04-24 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980813', 'tblTempUsageDetail_20' ) end [2025-04-24 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:24:28] Production.INFO: ==24363== Releasing lock... [2025-04-24 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:24:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-24 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:25:05 [end_date_ymd] => 2025-04-24 16:25:05 [RateCDR] => 1 ) [2025-04-24 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:25:05' and `end` < '2025-04-24 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:25:19] Production.INFO: count ==5781 [2025-04-24 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:25:05 - End Time 2025-04-24 16:25:05 [2025-04-24 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980818', 'tblTempUsageDetail_20' ) start [2025-04-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980818', 'tblTempUsageDetail_20' ) end [2025-04-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980818', 'tblTempVendorCDR_20' ) start [2025-04-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980818', 'tblTempVendorCDR_20' ) end [2025-04-24 16:25:22] Production.INFO: ProcessCDR(1,14980818,1,1,2) [2025-04-24 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980818', 'tblTempUsageDetail_20' ) start [2025-04-24 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980818', 'tblTempUsageDetail_20' ) end [2025-04-24 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:25:27] Production.INFO: ==24434== Releasing lock... [2025-04-24 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:25:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:26:05 [end_date_ymd] => 2025-04-24 16:26:05 [RateCDR] => 1 ) [2025-04-24 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:26:05' and `end` < '2025-04-24 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:26:19] Production.INFO: count ==5787 [2025-04-24 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:26:05 - End Time 2025-04-24 16:26:05 [2025-04-24 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980823', 'tblTempUsageDetail_20' ) start [2025-04-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980823', 'tblTempUsageDetail_20' ) end [2025-04-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980823', 'tblTempVendorCDR_20' ) start [2025-04-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980823', 'tblTempVendorCDR_20' ) end [2025-04-24 16:26:22] Production.INFO: ProcessCDR(1,14980823,1,1,2) [2025-04-24 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980823', 'tblTempUsageDetail_20' ) start [2025-04-24 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980823', 'tblTempUsageDetail_20' ) end [2025-04-24 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:26:28] Production.INFO: ==24509== Releasing lock... [2025-04-24 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:26:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:27:05 [end_date_ymd] => 2025-04-24 16:27:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 13:27:05' and `end` < '2025-04-24 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-04-24 16:27:19] Production.INFO: count ==5763 [2025-04-24 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:27:05 - End Time 2025-04-24 16:27:05 [2025-04-24 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980828', 'tblTempUsageDetail_20' ) start [2025-04-24 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980828', 'tblTempUsageDetail_20' ) end [2025-04-24 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980828', 'tblTempVendorCDR_20' ) start [2025-04-24 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980828', 'tblTempVendorCDR_20' ) end [2025-04-24 16:27:22] Production.INFO: ProcessCDR(1,14980828,1,1,2) [2025-04-24 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980828', 'tblTempUsageDetail_20' ) start [2025-04-24 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980828', 'tblTempUsageDetail_20' ) end [2025-04-24 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:27:27] Production.INFO: ==24587== Releasing lock... [2025-04-24 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:27:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:28:06 [end_date_ymd] => 2025-04-24 16:28:06 [RateCDR] => 1 ) [2025-04-24 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:28:06' and `end` < '2025-04-24 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:28:20] Production.INFO: count ==5776 [2025-04-24 16:28:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:28:06 - End Time 2025-04-24 16:28:06 [2025-04-24 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980833', 'tblTempUsageDetail_20' ) start [2025-04-24 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980833', 'tblTempUsageDetail_20' ) end [2025-04-24 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980833', 'tblTempVendorCDR_20' ) start [2025-04-24 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980833', 'tblTempVendorCDR_20' ) end [2025-04-24 16:28:23] Production.INFO: ProcessCDR(1,14980833,1,1,2) [2025-04-24 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980833', 'tblTempUsageDetail_20' ) start [2025-04-24 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980833', 'tblTempUsageDetail_20' ) end [2025-04-24 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:28:28] Production.INFO: ==24700== Releasing lock... [2025-04-24 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:28:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:29:05 [end_date_ymd] => 2025-04-24 16:29:05 [RateCDR] => 1 ) [2025-04-24 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:29:05' and `end` < '2025-04-24 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:29:19] Production.INFO: count ==5765 [2025-04-24 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:29:05 - End Time 2025-04-24 16:29:05 [2025-04-24 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980838', 'tblTempUsageDetail_20' ) start [2025-04-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980838', 'tblTempUsageDetail_20' ) end [2025-04-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980838', 'tblTempVendorCDR_20' ) start [2025-04-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980838', 'tblTempVendorCDR_20' ) end [2025-04-24 16:29:22] Production.INFO: ProcessCDR(1,14980838,1,1,2) [2025-04-24 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980838', 'tblTempUsageDetail_20' ) start [2025-04-24 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980838', 'tblTempUsageDetail_20' ) end [2025-04-24 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:29:27] Production.INFO: ==24776== Releasing lock... [2025-04-24 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:29:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:30:07 [end_date_ymd] => 2025-04-24 16:30:07 [RateCDR] => 1 ) [2025-04-24 16:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:30:07' and `end` < '2025-04-24 16:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:30:21] Production.INFO: count ==5753 [2025-04-24 16:30:23] Production.ERROR: pbx CDR StartTime 2025-04-24 13:30:07 - End Time 2025-04-24 16:30:07 [2025-04-24 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980844', 'tblTempUsageDetail_20' ) start [2025-04-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980844', 'tblTempUsageDetail_20' ) end [2025-04-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980844', 'tblTempVendorCDR_20' ) start [2025-04-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980844', 'tblTempVendorCDR_20' ) end [2025-04-24 16:30:23] Production.INFO: ProcessCDR(1,14980844,1,1,2) [2025-04-24 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980844', 'tblTempUsageDetail_20' ) start [2025-04-24 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980844', 'tblTempUsageDetail_20' ) end [2025-04-24 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:30:28] Production.INFO: ==24848== Releasing lock... [2025-04-24 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:30:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:31:05 [end_date_ymd] => 2025-04-24 16:31:05 [RateCDR] => 1 ) [2025-04-24 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:31:05' and `end` < '2025-04-24 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:31:19] Production.INFO: count ==5771 [2025-04-24 16:31:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:31:05 - End Time 2025-04-24 16:31:05 [2025-04-24 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980849', 'tblTempUsageDetail_20' ) start [2025-04-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980849', 'tblTempUsageDetail_20' ) end [2025-04-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980849', 'tblTempVendorCDR_20' ) start [2025-04-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980849', 'tblTempVendorCDR_20' ) end [2025-04-24 16:31:22] Production.INFO: ProcessCDR(1,14980849,1,1,2) [2025-04-24 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980849', 'tblTempUsageDetail_20' ) start [2025-04-24 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980849', 'tblTempUsageDetail_20' ) end [2025-04-24 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:31:28] Production.INFO: ==24926== Releasing lock... [2025-04-24 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:31:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:32:05 [end_date_ymd] => 2025-04-24 16:32:05 [RateCDR] => 1 ) [2025-04-24 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:32:05' and `end` < '2025-04-24 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:32:20] Production.INFO: count ==5772 [2025-04-24 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:32:05 - End Time 2025-04-24 16:32:05 [2025-04-24 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980854', 'tblTempUsageDetail_20' ) start [2025-04-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980854', 'tblTempUsageDetail_20' ) end [2025-04-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980854', 'tblTempVendorCDR_20' ) start [2025-04-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980854', 'tblTempVendorCDR_20' ) end [2025-04-24 16:32:23] Production.INFO: ProcessCDR(1,14980854,1,1,2) [2025-04-24 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980854', 'tblTempUsageDetail_20' ) start [2025-04-24 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980854', 'tblTempUsageDetail_20' ) end [2025-04-24 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:32:28] Production.INFO: ==25003== Releasing lock... [2025-04-24 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:32:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:33:05 [end_date_ymd] => 2025-04-24 16:33:05 [RateCDR] => 1 ) [2025-04-24 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:33:05' and `end` < '2025-04-24 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:33:20] Production.INFO: count ==5783 [2025-04-24 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:33:05 - End Time 2025-04-24 16:33:05 [2025-04-24 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980859', 'tblTempUsageDetail_20' ) start [2025-04-24 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980859', 'tblTempUsageDetail_20' ) end [2025-04-24 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980859', 'tblTempVendorCDR_20' ) start [2025-04-24 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980859', 'tblTempVendorCDR_20' ) end [2025-04-24 16:33:23] Production.INFO: ProcessCDR(1,14980859,1,1,2) [2025-04-24 16:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980859', 'tblTempUsageDetail_20' ) start [2025-04-24 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980859', 'tblTempUsageDetail_20' ) end [2025-04-24 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:33:28] Production.INFO: ==25085== Releasing lock... [2025-04-24 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:33:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:34:05 [end_date_ymd] => 2025-04-24 16:34:05 [RateCDR] => 1 ) [2025-04-24 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:34:05' and `end` < '2025-04-24 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:34:19] Production.INFO: count ==5795 [2025-04-24 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:34:05 - End Time 2025-04-24 16:34:05 [2025-04-24 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980864', 'tblTempUsageDetail_20' ) start [2025-04-24 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980864', 'tblTempUsageDetail_20' ) end [2025-04-24 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980864', 'tblTempVendorCDR_20' ) start [2025-04-24 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980864', 'tblTempVendorCDR_20' ) end [2025-04-24 16:34:22] Production.INFO: ProcessCDR(1,14980864,1,1,2) [2025-04-24 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980864', 'tblTempUsageDetail_20' ) start [2025-04-24 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980864', 'tblTempUsageDetail_20' ) end [2025-04-24 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:34:28] Production.INFO: ==25156== Releasing lock... [2025-04-24 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:34:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:35:06 [end_date_ymd] => 2025-04-24 16:35:06 [RateCDR] => 1 ) [2025-04-24 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:35:06' and `end` < '2025-04-24 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:35:20] Production.INFO: count ==5798 [2025-04-24 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:35:06 - End Time 2025-04-24 16:35:06 [2025-04-24 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980869', 'tblTempUsageDetail_20' ) start [2025-04-24 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980869', 'tblTempUsageDetail_20' ) end [2025-04-24 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980869', 'tblTempVendorCDR_20' ) start [2025-04-24 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980869', 'tblTempVendorCDR_20' ) end [2025-04-24 16:35:23] Production.INFO: ProcessCDR(1,14980869,1,1,2) [2025-04-24 16:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980869', 'tblTempUsageDetail_20' ) start [2025-04-24 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980869', 'tblTempUsageDetail_20' ) end [2025-04-24 16:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:35:29] Production.INFO: ==25227== Releasing lock... [2025-04-24 16:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:35:29] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:36:05 [end_date_ymd] => 2025-04-24 16:36:05 [RateCDR] => 1 ) [2025-04-24 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:36:05' and `end` < '2025-04-24 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:36:19] Production.INFO: count ==5795 [2025-04-24 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:36:05 - End Time 2025-04-24 16:36:05 [2025-04-24 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980874', 'tblTempUsageDetail_20' ) start [2025-04-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980874', 'tblTempUsageDetail_20' ) end [2025-04-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980874', 'tblTempVendorCDR_20' ) start [2025-04-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980874', 'tblTempVendorCDR_20' ) end [2025-04-24 16:36:22] Production.INFO: ProcessCDR(1,14980874,1,1,2) [2025-04-24 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980874', 'tblTempUsageDetail_20' ) start [2025-04-24 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980874', 'tblTempUsageDetail_20' ) end [2025-04-24 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:36:27] Production.INFO: ==25298== Releasing lock... [2025-04-24 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:36:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:37:06 [end_date_ymd] => 2025-04-24 16:37:06 [RateCDR] => 1 ) [2025-04-24 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:37:06' and `end` < '2025-04-24 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:37:20] Production.INFO: count ==5795 [2025-04-24 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:37:06 - End Time 2025-04-24 16:37:06 [2025-04-24 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980879', 'tblTempUsageDetail_20' ) start [2025-04-24 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980879', 'tblTempUsageDetail_20' ) end [2025-04-24 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980879', 'tblTempVendorCDR_20' ) start [2025-04-24 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980879', 'tblTempVendorCDR_20' ) end [2025-04-24 16:37:23] Production.INFO: ProcessCDR(1,14980879,1,1,2) [2025-04-24 16:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980879', 'tblTempUsageDetail_20' ) start [2025-04-24 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980879', 'tblTempUsageDetail_20' ) end [2025-04-24 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:37:28] Production.INFO: ==25374== Releasing lock... [2025-04-24 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:37:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:38:06 [end_date_ymd] => 2025-04-24 16:38:06 [RateCDR] => 1 ) [2025-04-24 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:38:06' and `end` < '2025-04-24 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:38:20] Production.INFO: count ==5785 [2025-04-24 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:38:06 - End Time 2025-04-24 16:38:06 [2025-04-24 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980884', 'tblTempUsageDetail_20' ) start [2025-04-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980884', 'tblTempUsageDetail_20' ) end [2025-04-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980884', 'tblTempVendorCDR_20' ) start [2025-04-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980884', 'tblTempVendorCDR_20' ) end [2025-04-24 16:38:23] Production.INFO: ProcessCDR(1,14980884,1,1,2) [2025-04-24 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980884', 'tblTempUsageDetail_20' ) start [2025-04-24 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980884', 'tblTempUsageDetail_20' ) end [2025-04-24 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:38:28] Production.INFO: ==25453== Releasing lock... [2025-04-24 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:38:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:39:05 [end_date_ymd] => 2025-04-24 16:39:05 [RateCDR] => 1 ) [2025-04-24 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:39:05' and `end` < '2025-04-24 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:39:19] Production.INFO: count ==5805 [2025-04-24 16:39:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:39:05 - End Time 2025-04-24 16:39:05 [2025-04-24 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980889', 'tblTempUsageDetail_20' ) start [2025-04-24 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980889', 'tblTempUsageDetail_20' ) end [2025-04-24 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980889', 'tblTempVendorCDR_20' ) start [2025-04-24 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980889', 'tblTempVendorCDR_20' ) end [2025-04-24 16:39:22] Production.INFO: ProcessCDR(1,14980889,1,1,2) [2025-04-24 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980889', 'tblTempUsageDetail_20' ) start [2025-04-24 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980889', 'tblTempUsageDetail_20' ) end [2025-04-24 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:39:27] Production.INFO: ==25534== Releasing lock... [2025-04-24 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:39:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:40:06 [end_date_ymd] => 2025-04-24 16:40:06 [RateCDR] => 1 ) [2025-04-24 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:40:06' and `end` < '2025-04-24 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:40:20] Production.INFO: count ==5790 [2025-04-24 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:40:06 - End Time 2025-04-24 16:40:06 [2025-04-24 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980894', 'tblTempUsageDetail_20' ) start [2025-04-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980894', 'tblTempUsageDetail_20' ) end [2025-04-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980894', 'tblTempVendorCDR_20' ) start [2025-04-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980894', 'tblTempVendorCDR_20' ) end [2025-04-24 16:40:23] Production.INFO: ProcessCDR(1,14980894,1,1,2) [2025-04-24 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980894', 'tblTempUsageDetail_20' ) start [2025-04-24 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980894', 'tblTempUsageDetail_20' ) end [2025-04-24 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:40:28] Production.INFO: ==25611== Releasing lock... [2025-04-24 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:40:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:41:06 [end_date_ymd] => 2025-04-24 16:41:06 [RateCDR] => 1 ) [2025-04-24 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:41:06' and `end` < '2025-04-24 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:41:19] Production.INFO: count ==5773 [2025-04-24 16:41:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:41:06 - End Time 2025-04-24 16:41:06 [2025-04-24 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980900', 'tblTempUsageDetail_20' ) start [2025-04-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980900', 'tblTempUsageDetail_20' ) end [2025-04-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980900', 'tblTempVendorCDR_20' ) start [2025-04-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980900', 'tblTempVendorCDR_20' ) end [2025-04-24 16:41:22] Production.INFO: ProcessCDR(1,14980900,1,1,2) [2025-04-24 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980900', 'tblTempUsageDetail_20' ) start [2025-04-24 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980900', 'tblTempUsageDetail_20' ) end [2025-04-24 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:41:27] Production.INFO: ==25686== Releasing lock... [2025-04-24 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:41:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:42:05 [end_date_ymd] => 2025-04-24 16:42:05 [RateCDR] => 1 ) [2025-04-24 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:42:05' and `end` < '2025-04-24 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:42:19] Production.INFO: count ==5772 [2025-04-24 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:42:05 - End Time 2025-04-24 16:42:05 [2025-04-24 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980905', 'tblTempUsageDetail_20' ) start [2025-04-24 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980905', 'tblTempUsageDetail_20' ) end [2025-04-24 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980905', 'tblTempVendorCDR_20' ) start [2025-04-24 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980905', 'tblTempVendorCDR_20' ) end [2025-04-24 16:42:22] Production.INFO: ProcessCDR(1,14980905,1,1,2) [2025-04-24 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980905', 'tblTempUsageDetail_20' ) start [2025-04-24 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980905', 'tblTempUsageDetail_20' ) end [2025-04-24 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:42:27] Production.INFO: ==25760== Releasing lock... [2025-04-24 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:42:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:43:05 [end_date_ymd] => 2025-04-24 16:43:05 [RateCDR] => 1 ) [2025-04-24 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:43:05' and `end` < '2025-04-24 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:43:19] Production.INFO: count ==5775 [2025-04-24 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:43:05 - End Time 2025-04-24 16:43:05 [2025-04-24 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980910', 'tblTempUsageDetail_20' ) start [2025-04-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980910', 'tblTempUsageDetail_20' ) end [2025-04-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980910', 'tblTempVendorCDR_20' ) start [2025-04-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980910', 'tblTempVendorCDR_20' ) end [2025-04-24 16:43:22] Production.INFO: ProcessCDR(1,14980910,1,1,2) [2025-04-24 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980910', 'tblTempUsageDetail_20' ) start [2025-04-24 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980910', 'tblTempUsageDetail_20' ) end [2025-04-24 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:43:27] Production.INFO: ==25829== Releasing lock... [2025-04-24 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:43:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:44:04 [end_date_ymd] => 2025-04-24 16:44:04 [RateCDR] => 1 ) [2025-04-24 16:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:44:04' and `end` < '2025-04-24 16:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:44:18] Production.INFO: count ==5773 [2025-04-24 16:44:20] Production.ERROR: pbx CDR StartTime 2025-04-24 13:44:04 - End Time 2025-04-24 16:44:04 [2025-04-24 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980915', 'tblTempUsageDetail_20' ) start [2025-04-24 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980915', 'tblTempUsageDetail_20' ) end [2025-04-24 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980915', 'tblTempVendorCDR_20' ) start [2025-04-24 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980915', 'tblTempVendorCDR_20' ) end [2025-04-24 16:44:21] Production.INFO: ProcessCDR(1,14980915,1,1,2) [2025-04-24 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980915', 'tblTempUsageDetail_20' ) start [2025-04-24 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980915', 'tblTempUsageDetail_20' ) end [2025-04-24 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:44:26] Production.INFO: ==25946== Releasing lock... [2025-04-24 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:44:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:45:05 [end_date_ymd] => 2025-04-24 16:45:05 [RateCDR] => 1 ) [2025-04-24 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:45:05' and `end` < '2025-04-24 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:45:19] Production.INFO: count ==5760 [2025-04-24 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:45:05 - End Time 2025-04-24 16:45:05 [2025-04-24 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980920', 'tblTempUsageDetail_20' ) start [2025-04-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980920', 'tblTempUsageDetail_20' ) end [2025-04-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980920', 'tblTempVendorCDR_20' ) start [2025-04-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980920', 'tblTempVendorCDR_20' ) end [2025-04-24 16:45:22] Production.INFO: ProcessCDR(1,14980920,1,1,2) [2025-04-24 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980920', 'tblTempUsageDetail_20' ) start [2025-04-24 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980920', 'tblTempUsageDetail_20' ) end [2025-04-24 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:45:27] Production.INFO: ==26020== Releasing lock... [2025-04-24 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:45:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:46:05 [end_date_ymd] => 2025-04-24 16:46:05 [RateCDR] => 1 ) [2025-04-24 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:46:05' and `end` < '2025-04-24 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:46:19] Production.INFO: count ==5773 [2025-04-24 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:46:05 - End Time 2025-04-24 16:46:05 [2025-04-24 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980925', 'tblTempUsageDetail_20' ) start [2025-04-24 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980925', 'tblTempUsageDetail_20' ) end [2025-04-24 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980925', 'tblTempVendorCDR_20' ) start [2025-04-24 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980925', 'tblTempVendorCDR_20' ) end [2025-04-24 16:46:22] Production.INFO: ProcessCDR(1,14980925,1,1,2) [2025-04-24 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980925', 'tblTempUsageDetail_20' ) start [2025-04-24 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980925', 'tblTempUsageDetail_20' ) end [2025-04-24 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:46:28] Production.INFO: ==26089== Releasing lock... [2025-04-24 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:46:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:47:05 [end_date_ymd] => 2025-04-24 16:47:05 [RateCDR] => 1 ) [2025-04-24 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:47:05' and `end` < '2025-04-24 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:47:19] Production.INFO: count ==5785 [2025-04-24 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:47:05 - End Time 2025-04-24 16:47:05 [2025-04-24 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980930', 'tblTempUsageDetail_20' ) start [2025-04-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980930', 'tblTempUsageDetail_20' ) end [2025-04-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980930', 'tblTempVendorCDR_20' ) start [2025-04-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980930', 'tblTempVendorCDR_20' ) end [2025-04-24 16:47:22] Production.INFO: ProcessCDR(1,14980930,1,1,2) [2025-04-24 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980930', 'tblTempUsageDetail_20' ) start [2025-04-24 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980930', 'tblTempUsageDetail_20' ) end [2025-04-24 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:47:27] Production.INFO: ==26162== Releasing lock... [2025-04-24 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:47:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:48:05 [end_date_ymd] => 2025-04-24 16:48:05 [RateCDR] => 1 ) [2025-04-24 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:48:05' and `end` < '2025-04-24 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:48:19] Production.INFO: count ==5810 [2025-04-24 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:48:05 - End Time 2025-04-24 16:48:05 [2025-04-24 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980935', 'tblTempUsageDetail_20' ) start [2025-04-24 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980935', 'tblTempUsageDetail_20' ) end [2025-04-24 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980935', 'tblTempVendorCDR_20' ) start [2025-04-24 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980935', 'tblTempVendorCDR_20' ) end [2025-04-24 16:48:22] Production.INFO: ProcessCDR(1,14980935,1,1,2) [2025-04-24 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980935', 'tblTempUsageDetail_20' ) start [2025-04-24 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980935', 'tblTempUsageDetail_20' ) end [2025-04-24 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:48:27] Production.INFO: ==26232== Releasing lock... [2025-04-24 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:48:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-24 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:49:05 [end_date_ymd] => 2025-04-24 16:49:05 [RateCDR] => 1 ) [2025-04-24 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:49:05' and `end` < '2025-04-24 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:49:19] Production.INFO: count ==5787 [2025-04-24 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:49:05 - End Time 2025-04-24 16:49:05 [2025-04-24 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980940', 'tblTempUsageDetail_20' ) start [2025-04-24 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980940', 'tblTempUsageDetail_20' ) end [2025-04-24 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980940', 'tblTempVendorCDR_20' ) start [2025-04-24 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980940', 'tblTempVendorCDR_20' ) end [2025-04-24 16:49:21] Production.INFO: ProcessCDR(1,14980940,1,1,2) [2025-04-24 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980940', 'tblTempUsageDetail_20' ) start [2025-04-24 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980940', 'tblTempUsageDetail_20' ) end [2025-04-24 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:49:26] Production.INFO: ==26307== Releasing lock... [2025-04-24 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:49:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:50:06 [end_date_ymd] => 2025-04-24 16:50:06 [RateCDR] => 1 ) [2025-04-24 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:50:06' and `end` < '2025-04-24 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:50:20] Production.INFO: count ==5795 [2025-04-24 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:50:06 - End Time 2025-04-24 16:50:06 [2025-04-24 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980946', 'tblTempUsageDetail_20' ) start [2025-04-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980946', 'tblTempUsageDetail_20' ) end [2025-04-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980946', 'tblTempVendorCDR_20' ) start [2025-04-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980946', 'tblTempVendorCDR_20' ) end [2025-04-24 16:50:23] Production.INFO: ProcessCDR(1,14980946,1,1,2) [2025-04-24 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980946', 'tblTempUsageDetail_20' ) start [2025-04-24 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980946', 'tblTempUsageDetail_20' ) end [2025-04-24 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:50:28] Production.INFO: ==26387== Releasing lock... [2025-04-24 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:50:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:51:05 [end_date_ymd] => 2025-04-24 16:51:05 [RateCDR] => 1 ) [2025-04-24 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:51:05' and `end` < '2025-04-24 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:51:19] Production.INFO: count ==5750 [2025-04-24 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:51:05 - End Time 2025-04-24 16:51:05 [2025-04-24 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980951', 'tblTempUsageDetail_20' ) start [2025-04-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980951', 'tblTempUsageDetail_20' ) end [2025-04-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980951', 'tblTempVendorCDR_20' ) start [2025-04-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980951', 'tblTempVendorCDR_20' ) end [2025-04-24 16:51:23] Production.INFO: ProcessCDR(1,14980951,1,1,2) [2025-04-24 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980951', 'tblTempUsageDetail_20' ) start [2025-04-24 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980951', 'tblTempUsageDetail_20' ) end [2025-04-24 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:51:28] Production.INFO: ==26464== Releasing lock... [2025-04-24 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:51:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:52:05 [end_date_ymd] => 2025-04-24 16:52:05 [RateCDR] => 1 ) [2025-04-24 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:52:05' and `end` < '2025-04-24 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:52:19] Production.INFO: count ==5730 [2025-04-24 16:52:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:52:05 - End Time 2025-04-24 16:52:05 [2025-04-24 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980956', 'tblTempUsageDetail_20' ) start [2025-04-24 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980956', 'tblTempUsageDetail_20' ) end [2025-04-24 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980956', 'tblTempVendorCDR_20' ) start [2025-04-24 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980956', 'tblTempVendorCDR_20' ) end [2025-04-24 16:52:22] Production.INFO: ProcessCDR(1,14980956,1,1,2) [2025-04-24 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980956', 'tblTempUsageDetail_20' ) start [2025-04-24 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980956', 'tblTempUsageDetail_20' ) end [2025-04-24 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:52:27] Production.INFO: ==26534== Releasing lock... [2025-04-24 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:52:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:53:05 [end_date_ymd] => 2025-04-24 16:53:05 [RateCDR] => 1 ) [2025-04-24 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:53:05' and `end` < '2025-04-24 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:53:19] Production.INFO: count ==5761 [2025-04-24 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:53:05 - End Time 2025-04-24 16:53:05 [2025-04-24 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980961', 'tblTempUsageDetail_20' ) start [2025-04-24 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980961', 'tblTempUsageDetail_20' ) end [2025-04-24 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980961', 'tblTempVendorCDR_20' ) start [2025-04-24 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980961', 'tblTempVendorCDR_20' ) end [2025-04-24 16:53:22] Production.INFO: ProcessCDR(1,14980961,1,1,2) [2025-04-24 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980961', 'tblTempUsageDetail_20' ) start [2025-04-24 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980961', 'tblTempUsageDetail_20' ) end [2025-04-24 16:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:53:28] Production.INFO: ==26607== Releasing lock... [2025-04-24 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:53:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:54:05 [end_date_ymd] => 2025-04-24 16:54:05 [RateCDR] => 1 ) [2025-04-24 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:54:05' and `end` < '2025-04-24 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:54:19] Production.INFO: count ==5766 [2025-04-24 16:54:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:54:05 - End Time 2025-04-24 16:54:05 [2025-04-24 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980966', 'tblTempUsageDetail_20' ) start [2025-04-24 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980966', 'tblTempUsageDetail_20' ) end [2025-04-24 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980966', 'tblTempVendorCDR_20' ) start [2025-04-24 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980966', 'tblTempVendorCDR_20' ) end [2025-04-24 16:54:22] Production.INFO: ProcessCDR(1,14980966,1,1,2) [2025-04-24 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980966', 'tblTempUsageDetail_20' ) start [2025-04-24 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980966', 'tblTempUsageDetail_20' ) end [2025-04-24 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:54:28] Production.INFO: ==26686== Releasing lock... [2025-04-24 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:54:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:55:06 [end_date_ymd] => 2025-04-24 16:55:06 [RateCDR] => 1 ) [2025-04-24 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:55:06' and `end` < '2025-04-24 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:55:20] Production.INFO: count ==5777 [2025-04-24 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:55:06 - End Time 2025-04-24 16:55:06 [2025-04-24 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980971', 'tblTempUsageDetail_20' ) start [2025-04-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980971', 'tblTempUsageDetail_20' ) end [2025-04-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980971', 'tblTempVendorCDR_20' ) start [2025-04-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980971', 'tblTempVendorCDR_20' ) end [2025-04-24 16:55:23] Production.INFO: ProcessCDR(1,14980971,1,1,2) [2025-04-24 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980971', 'tblTempUsageDetail_20' ) start [2025-04-24 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980971', 'tblTempUsageDetail_20' ) end [2025-04-24 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:55:28] Production.INFO: ==26759== Releasing lock... [2025-04-24 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:55:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-24 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:56:05 [end_date_ymd] => 2025-04-24 16:56:05 [RateCDR] => 1 ) [2025-04-24 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:56:05' and `end` < '2025-04-24 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:56:19] Production.INFO: count ==5774 [2025-04-24 16:56:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:56:05 - End Time 2025-04-24 16:56:05 [2025-04-24 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980976', 'tblTempUsageDetail_20' ) start [2025-04-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980976', 'tblTempUsageDetail_20' ) end [2025-04-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980976', 'tblTempVendorCDR_20' ) start [2025-04-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980976', 'tblTempVendorCDR_20' ) end [2025-04-24 16:56:22] Production.INFO: ProcessCDR(1,14980976,1,1,2) [2025-04-24 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980976', 'tblTempUsageDetail_20' ) start [2025-04-24 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980976', 'tblTempUsageDetail_20' ) end [2025-04-24 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:56:27] Production.INFO: ==26831== Releasing lock... [2025-04-24 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:56:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:57:05 [end_date_ymd] => 2025-04-24 16:57:05 [RateCDR] => 1 ) [2025-04-24 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:57:05' and `end` < '2025-04-24 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:57:19] Production.INFO: count ==5774 [2025-04-24 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:57:05 - End Time 2025-04-24 16:57:05 [2025-04-24 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980981', 'tblTempUsageDetail_20' ) start [2025-04-24 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980981', 'tblTempUsageDetail_20' ) end [2025-04-24 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980981', 'tblTempVendorCDR_20' ) start [2025-04-24 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980981', 'tblTempVendorCDR_20' ) end [2025-04-24 16:57:22] Production.INFO: ProcessCDR(1,14980981,1,1,2) [2025-04-24 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980981', 'tblTempUsageDetail_20' ) start [2025-04-24 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980981', 'tblTempUsageDetail_20' ) end [2025-04-24 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:57:27] Production.INFO: ==26905== Releasing lock... [2025-04-24 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:57:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:58:05 [end_date_ymd] => 2025-04-24 16:58:05 [RateCDR] => 1 ) [2025-04-24 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:58:05' and `end` < '2025-04-24 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:58:19] Production.INFO: count ==5755 [2025-04-24 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-24 13:58:05 - End Time 2025-04-24 16:58:05 [2025-04-24 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980986', 'tblTempUsageDetail_20' ) start [2025-04-24 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980986', 'tblTempUsageDetail_20' ) end [2025-04-24 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980986', 'tblTempVendorCDR_20' ) start [2025-04-24 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980986', 'tblTempVendorCDR_20' ) end [2025-04-24 16:58:22] Production.INFO: ProcessCDR(1,14980986,1,1,2) [2025-04-24 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980986', 'tblTempUsageDetail_20' ) start [2025-04-24 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980986', 'tblTempUsageDetail_20' ) end [2025-04-24 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:58:27] Production.INFO: ==26983== Releasing lock... [2025-04-24 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:58:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 13:59:05 [end_date_ymd] => 2025-04-24 16:59:05 [RateCDR] => 1 ) [2025-04-24 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 13:59:05' and `end` < '2025-04-24 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 16:59:19] Production.INFO: count ==5739 [2025-04-24 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-24 13:59:05 - End Time 2025-04-24 16:59:05 [2025-04-24 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980991', 'tblTempUsageDetail_20' ) start [2025-04-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980991', 'tblTempUsageDetail_20' ) end [2025-04-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980991', 'tblTempVendorCDR_20' ) start [2025-04-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980991', 'tblTempVendorCDR_20' ) end [2025-04-24 16:59:22] Production.INFO: ProcessCDR(1,14980991,1,1,2) [2025-04-24 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980991', 'tblTempUsageDetail_20' ) start [2025-04-24 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980991', 'tblTempUsageDetail_20' ) end [2025-04-24 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 16:59:27] Production.INFO: ==27096== Releasing lock... [2025-04-24 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 16:59:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:00:06 [end_date_ymd] => 2025-04-24 17:00:06 [RateCDR] => 1 ) [2025-04-24 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:00:06' and `end` < '2025-04-24 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:00:20] Production.INFO: count ==5732 [2025-04-24 17:00:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:00:06 - End Time 2025-04-24 17:00:06 [2025-04-24 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980997', 'tblTempUsageDetail_20' ) start [2025-04-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14980997', 'tblTempUsageDetail_20' ) end [2025-04-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980997', 'tblTempVendorCDR_20' ) start [2025-04-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14980997', 'tblTempVendorCDR_20' ) end [2025-04-24 17:00:23] Production.INFO: ProcessCDR(1,14980997,1,1,2) [2025-04-24 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14980997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14980997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14980997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14980997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980997', 'tblTempUsageDetail_20' ) start [2025-04-24 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14980997', 'tblTempUsageDetail_20' ) end [2025-04-24 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:00:28] Production.INFO: ==27168== Releasing lock... [2025-04-24 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:00:28] Production.INFO: 71 MB #Memory Used# [2025-04-24 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:01:04 [end_date_ymd] => 2025-04-24 17:01:04 [RateCDR] => 1 ) [2025-04-24 17:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:01:04' and `end` < '2025-04-24 17:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:01:18] Production.INFO: count ==5697 [2025-04-24 17:01:20] Production.ERROR: pbx CDR StartTime 2025-04-24 14:01:04 - End Time 2025-04-24 17:01:04 [2025-04-24 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981002', 'tblTempUsageDetail_20' ) start [2025-04-24 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981002', 'tblTempUsageDetail_20' ) end [2025-04-24 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981002', 'tblTempVendorCDR_20' ) start [2025-04-24 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981002', 'tblTempVendorCDR_20' ) end [2025-04-24 17:01:21] Production.INFO: ProcessCDR(1,14981002,1,1,2) [2025-04-24 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981002', 'tblTempUsageDetail_20' ) start [2025-04-24 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981002', 'tblTempUsageDetail_20' ) end [2025-04-24 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:01:26] Production.INFO: ==27254== Releasing lock... [2025-04-24 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:01:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:02:05 [end_date_ymd] => 2025-04-24 17:02:05 [RateCDR] => 1 ) [2025-04-24 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:02:05' and `end` < '2025-04-24 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:02:19] Production.INFO: count ==5676 [2025-04-24 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:02:05 - End Time 2025-04-24 17:02:05 [2025-04-24 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981007', 'tblTempUsageDetail_20' ) start [2025-04-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981007', 'tblTempUsageDetail_20' ) end [2025-04-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981007', 'tblTempVendorCDR_20' ) start [2025-04-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981007', 'tblTempVendorCDR_20' ) end [2025-04-24 17:02:22] Production.INFO: ProcessCDR(1,14981007,1,1,2) [2025-04-24 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981007', 'tblTempUsageDetail_20' ) start [2025-04-24 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981007', 'tblTempUsageDetail_20' ) end [2025-04-24 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:02:27] Production.INFO: ==27330== Releasing lock... [2025-04-24 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:02:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:03:05 [end_date_ymd] => 2025-04-24 17:03:05 [RateCDR] => 1 ) [2025-04-24 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:03:05' and `end` < '2025-04-24 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:03:19] Production.INFO: count ==5651 [2025-04-24 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:03:05 - End Time 2025-04-24 17:03:05 [2025-04-24 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981012', 'tblTempUsageDetail_20' ) start [2025-04-24 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981012', 'tblTempUsageDetail_20' ) end [2025-04-24 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981012', 'tblTempVendorCDR_20' ) start [2025-04-24 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981012', 'tblTempVendorCDR_20' ) end [2025-04-24 17:03:21] Production.INFO: ProcessCDR(1,14981012,1,1,2) [2025-04-24 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981012', 'tblTempUsageDetail_20' ) start [2025-04-24 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981012', 'tblTempUsageDetail_20' ) end [2025-04-24 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:03:26] Production.INFO: ==27403== Releasing lock... [2025-04-24 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:03:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:04:05 [end_date_ymd] => 2025-04-24 17:04:05 [RateCDR] => 1 ) [2025-04-24 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:04:05' and `end` < '2025-04-24 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:04:19] Production.INFO: count ==5671 [2025-04-24 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:04:05 - End Time 2025-04-24 17:04:05 [2025-04-24 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981017', 'tblTempUsageDetail_20' ) start [2025-04-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981017', 'tblTempUsageDetail_20' ) end [2025-04-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981017', 'tblTempVendorCDR_20' ) start [2025-04-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981017', 'tblTempVendorCDR_20' ) end [2025-04-24 17:04:22] Production.INFO: ProcessCDR(1,14981017,1,1,2) [2025-04-24 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981017', 'tblTempUsageDetail_20' ) start [2025-04-24 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981017', 'tblTempUsageDetail_20' ) end [2025-04-24 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:04:27] Production.INFO: ==27475== Releasing lock... [2025-04-24 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:04:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:05:04 [end_date_ymd] => 2025-04-24 17:05:04 [RateCDR] => 1 ) [2025-04-24 17: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-04-24 14:05:04' and `end` < '2025-04-24 17: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-04-24 17:05:18] Production.INFO: count ==5687 [2025-04-24 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:05:04 - End Time 2025-04-24 17:05:04 [2025-04-24 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981022', 'tblTempUsageDetail_20' ) start [2025-04-24 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981022', 'tblTempUsageDetail_20' ) end [2025-04-24 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981022', 'tblTempVendorCDR_20' ) start [2025-04-24 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981022', 'tblTempVendorCDR_20' ) end [2025-04-24 17:05:21] Production.INFO: ProcessCDR(1,14981022,1,1,2) [2025-04-24 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981022', 'tblTempUsageDetail_20' ) start [2025-04-24 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981022', 'tblTempUsageDetail_20' ) end [2025-04-24 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:05:27] Production.INFO: ==27545== Releasing lock... [2025-04-24 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:05:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:06:05 [end_date_ymd] => 2025-04-24 17:06:05 [RateCDR] => 1 ) [2025-04-24 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:06:05' and `end` < '2025-04-24 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:06:19] Production.INFO: count ==5692 [2025-04-24 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:06:05 - End Time 2025-04-24 17:06:05 [2025-04-24 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981027', 'tblTempUsageDetail_20' ) start [2025-04-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981027', 'tblTempUsageDetail_20' ) end [2025-04-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981027', 'tblTempVendorCDR_20' ) start [2025-04-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981027', 'tblTempVendorCDR_20' ) end [2025-04-24 17:06:22] Production.INFO: ProcessCDR(1,14981027,1,1,2) [2025-04-24 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981027', 'tblTempUsageDetail_20' ) start [2025-04-24 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981027', 'tblTempUsageDetail_20' ) end [2025-04-24 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:06:27] Production.INFO: ==27618== Releasing lock... [2025-04-24 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:06:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:07:05 [end_date_ymd] => 2025-04-24 17:07:05 [RateCDR] => 1 ) [2025-04-24 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:07:05' and `end` < '2025-04-24 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:07:19] Production.INFO: count ==5691 [2025-04-24 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:07:05 - End Time 2025-04-24 17:07:05 [2025-04-24 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981032', 'tblTempUsageDetail_20' ) start [2025-04-24 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981032', 'tblTempUsageDetail_20' ) end [2025-04-24 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981032', 'tblTempVendorCDR_20' ) start [2025-04-24 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981032', 'tblTempVendorCDR_20' ) end [2025-04-24 17:07:22] Production.INFO: ProcessCDR(1,14981032,1,1,2) [2025-04-24 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981032', 'tblTempUsageDetail_20' ) start [2025-04-24 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981032', 'tblTempUsageDetail_20' ) end [2025-04-24 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:07:27] Production.INFO: ==27694== Releasing lock... [2025-04-24 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:07:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:08:06 [end_date_ymd] => 2025-04-24 17:08:06 [RateCDR] => 1 ) [2025-04-24 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:08:06' and `end` < '2025-04-24 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:08:20] Production.INFO: count ==5686 [2025-04-24 17:08:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:08:06 - End Time 2025-04-24 17:08:06 [2025-04-24 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981037', 'tblTempUsageDetail_20' ) start [2025-04-24 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981037', 'tblTempUsageDetail_20' ) end [2025-04-24 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981037', 'tblTempVendorCDR_20' ) start [2025-04-24 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981037', 'tblTempVendorCDR_20' ) end [2025-04-24 17:08:23] Production.INFO: ProcessCDR(1,14981037,1,1,2) [2025-04-24 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981037', 'tblTempUsageDetail_20' ) start [2025-04-24 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981037', 'tblTempUsageDetail_20' ) end [2025-04-24 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:08:26] Production.INFO: ==27783== Releasing lock... [2025-04-24 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:08:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:09:05 [end_date_ymd] => 2025-04-24 17:09:05 [RateCDR] => 1 ) [2025-04-24 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:09:05' and `end` < '2025-04-24 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:09:19] Production.INFO: count ==5697 [2025-04-24 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:09:05 - End Time 2025-04-24 17:09:05 [2025-04-24 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981042', 'tblTempUsageDetail_20' ) start [2025-04-24 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981042', 'tblTempUsageDetail_20' ) end [2025-04-24 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981042', 'tblTempVendorCDR_20' ) start [2025-04-24 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981042', 'tblTempVendorCDR_20' ) end [2025-04-24 17:09:22] Production.INFO: ProcessCDR(1,14981042,1,1,2) [2025-04-24 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981042', 'tblTempUsageDetail_20' ) start [2025-04-24 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981042', 'tblTempUsageDetail_20' ) end [2025-04-24 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:09:28] Production.INFO: ==27856== Releasing lock... [2025-04-24 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:09:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:10:07 [end_date_ymd] => 2025-04-24 17:10:07 [RateCDR] => 1 ) [2025-04-24 17:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:10:07' and `end` < '2025-04-24 17:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:10:20] Production.INFO: count ==5701 [2025-04-24 17:10:23] Production.ERROR: pbx CDR StartTime 2025-04-24 14:10:07 - End Time 2025-04-24 17:10:07 [2025-04-24 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981048', 'tblTempUsageDetail_20' ) start [2025-04-24 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981048', 'tblTempUsageDetail_20' ) end [2025-04-24 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981048', 'tblTempVendorCDR_20' ) start [2025-04-24 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981048', 'tblTempVendorCDR_20' ) end [2025-04-24 17:10:24] Production.INFO: ProcessCDR(1,14981048,1,1,2) [2025-04-24 17:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981048', 'tblTempUsageDetail_20' ) start [2025-04-24 17:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981048', 'tblTempUsageDetail_20' ) end [2025-04-24 17:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:10:30] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:10:30] Production.INFO: ==27928== Releasing lock... [2025-04-24 17:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:10:30] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:11:05 [end_date_ymd] => 2025-04-24 17:11:05 [RateCDR] => 1 ) [2025-04-24 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:11:05' and `end` < '2025-04-24 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:11:19] Production.INFO: count ==5669 [2025-04-24 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:11:05 - End Time 2025-04-24 17:11:05 [2025-04-24 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981053', 'tblTempUsageDetail_20' ) start [2025-04-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981053', 'tblTempUsageDetail_20' ) end [2025-04-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981053', 'tblTempVendorCDR_20' ) start [2025-04-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981053', 'tblTempVendorCDR_20' ) end [2025-04-24 17:11:22] Production.INFO: ProcessCDR(1,14981053,1,1,2) [2025-04-24 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981053', 'tblTempUsageDetail_20' ) start [2025-04-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981053', 'tblTempUsageDetail_20' ) end [2025-04-24 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:11:27] Production.INFO: ==28001== Releasing lock... [2025-04-24 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:11:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:12:05 [end_date_ymd] => 2025-04-24 17:12:05 [RateCDR] => 1 ) [2025-04-24 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:12:05' and `end` < '2025-04-24 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:12:19] Production.INFO: count ==5665 [2025-04-24 17:12:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:12:05 - End Time 2025-04-24 17:12:05 [2025-04-24 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981058', 'tblTempUsageDetail_20' ) start [2025-04-24 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981058', 'tblTempUsageDetail_20' ) end [2025-04-24 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981058', 'tblTempVendorCDR_20' ) start [2025-04-24 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981058', 'tblTempVendorCDR_20' ) end [2025-04-24 17:12:22] Production.INFO: ProcessCDR(1,14981058,1,1,2) [2025-04-24 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981058', 'tblTempUsageDetail_20' ) start [2025-04-24 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981058', 'tblTempUsageDetail_20' ) end [2025-04-24 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:12:27] Production.INFO: ==28075== Releasing lock... [2025-04-24 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:12:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:13:06 [end_date_ymd] => 2025-04-24 17:13:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:13:06' and `end` < '2025-04-24 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-04-24 17:13:20] Production.INFO: count ==5661 [2025-04-24 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:13:06 - End Time 2025-04-24 17:13:06 [2025-04-24 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981063', 'tblTempUsageDetail_20' ) start [2025-04-24 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981063', 'tblTempUsageDetail_20' ) end [2025-04-24 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981063', 'tblTempVendorCDR_20' ) start [2025-04-24 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981063', 'tblTempVendorCDR_20' ) end [2025-04-24 17:13:23] Production.INFO: ProcessCDR(1,14981063,1,1,2) [2025-04-24 17:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981063', 'tblTempUsageDetail_20' ) start [2025-04-24 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981063', 'tblTempUsageDetail_20' ) end [2025-04-24 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:13:28] Production.INFO: ==28152== Releasing lock... [2025-04-24 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:13:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:14:06 [end_date_ymd] => 2025-04-24 17:14:06 [RateCDR] => 1 ) [2025-04-24 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:14:06' and `end` < '2025-04-24 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:14:20] Production.INFO: count ==5644 [2025-04-24 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:14:06 - End Time 2025-04-24 17:14:06 [2025-04-24 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981068', 'tblTempUsageDetail_20' ) start [2025-04-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981068', 'tblTempUsageDetail_20' ) end [2025-04-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981068', 'tblTempVendorCDR_20' ) start [2025-04-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981068', 'tblTempVendorCDR_20' ) end [2025-04-24 17:14:23] Production.INFO: ProcessCDR(1,14981068,1,1,2) [2025-04-24 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981068', 'tblTempUsageDetail_20' ) start [2025-04-24 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981068', 'tblTempUsageDetail_20' ) end [2025-04-24 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:14:26] Production.INFO: ==28238== Releasing lock... [2025-04-24 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:14:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-24 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:15:06 [end_date_ymd] => 2025-04-24 17:15:06 [RateCDR] => 1 ) [2025-04-24 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:15:06' and `end` < '2025-04-24 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:15:20] Production.INFO: count ==5733 [2025-04-24 17:15:23] Production.ERROR: pbx CDR StartTime 2025-04-24 14:15:06 - End Time 2025-04-24 17:15:06 [2025-04-24 17:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981073', 'tblTempUsageDetail_20' ) start [2025-04-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981073', 'tblTempUsageDetail_20' ) end [2025-04-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981073', 'tblTempVendorCDR_20' ) start [2025-04-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981073', 'tblTempVendorCDR_20' ) end [2025-04-24 17:15:23] Production.INFO: ProcessCDR(1,14981073,1,1,2) [2025-04-24 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981073', 'tblTempUsageDetail_20' ) start [2025-04-24 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981073', 'tblTempUsageDetail_20' ) end [2025-04-24 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:15:27] Production.INFO: ==28350== Releasing lock... [2025-04-24 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:15:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:16:05 [end_date_ymd] => 2025-04-24 17:16:05 [RateCDR] => 1 ) [2025-04-24 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:16:05' and `end` < '2025-04-24 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:16:19] Production.INFO: count ==5719 [2025-04-24 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:16:05 - End Time 2025-04-24 17:16:05 [2025-04-24 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981078', 'tblTempUsageDetail_20' ) start [2025-04-24 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981078', 'tblTempUsageDetail_20' ) end [2025-04-24 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981078', 'tblTempVendorCDR_20' ) start [2025-04-24 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981078', 'tblTempVendorCDR_20' ) end [2025-04-24 17:16:22] Production.INFO: ProcessCDR(1,14981078,1,1,2) [2025-04-24 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981078', 'tblTempUsageDetail_20' ) start [2025-04-24 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981078', 'tblTempUsageDetail_20' ) end [2025-04-24 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:16:27] Production.INFO: ==28421== Releasing lock... [2025-04-24 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:16:27] Production.INFO: 71 MB #Memory Used# [2025-04-24 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:17:05 [end_date_ymd] => 2025-04-24 17:17:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:17:05' and `end` < '2025-04-24 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-04-24 17:17:19] Production.INFO: count ==5788 [2025-04-24 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:17:05 - End Time 2025-04-24 17:17:05 [2025-04-24 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981083', 'tblTempUsageDetail_20' ) start [2025-04-24 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981083', 'tblTempUsageDetail_20' ) end [2025-04-24 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981083', 'tblTempVendorCDR_20' ) start [2025-04-24 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981083', 'tblTempVendorCDR_20' ) end [2025-04-24 17:17:21] Production.INFO: ProcessCDR(1,14981083,1,1,2) [2025-04-24 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981083', 'tblTempUsageDetail_20' ) start [2025-04-24 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981083', 'tblTempUsageDetail_20' ) end [2025-04-24 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:17:27] Production.INFO: ==28496== Releasing lock... [2025-04-24 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:17:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:18:05 [end_date_ymd] => 2025-04-24 17:18:05 [RateCDR] => 1 ) [2025-04-24 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:18:05' and `end` < '2025-04-24 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:18:19] Production.INFO: count ==5780 [2025-04-24 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:18:05 - End Time 2025-04-24 17:18:05 [2025-04-24 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981088', 'tblTempUsageDetail_20' ) start [2025-04-24 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981088', 'tblTempUsageDetail_20' ) end [2025-04-24 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981088', 'tblTempVendorCDR_20' ) start [2025-04-24 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981088', 'tblTempVendorCDR_20' ) end [2025-04-24 17:18:22] Production.INFO: ProcessCDR(1,14981088,1,1,2) [2025-04-24 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981088', 'tblTempUsageDetail_20' ) start [2025-04-24 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981088', 'tblTempUsageDetail_20' ) end [2025-04-24 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:18:27] Production.INFO: ==28581== Releasing lock... [2025-04-24 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:19:05 [end_date_ymd] => 2025-04-24 17:19:05 [RateCDR] => 1 ) [2025-04-24 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:19:05' and `end` < '2025-04-24 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:19:19] Production.INFO: count ==5769 [2025-04-24 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:19:05 - End Time 2025-04-24 17:19:05 [2025-04-24 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981093', 'tblTempUsageDetail_20' ) start [2025-04-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981093', 'tblTempUsageDetail_20' ) end [2025-04-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981093', 'tblTempVendorCDR_20' ) start [2025-04-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981093', 'tblTempVendorCDR_20' ) end [2025-04-24 17:19:22] Production.INFO: ProcessCDR(1,14981093,1,1,2) [2025-04-24 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981093', 'tblTempUsageDetail_20' ) start [2025-04-24 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981093', 'tblTempUsageDetail_20' ) end [2025-04-24 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:19:26] Production.INFO: ==28654== Releasing lock... [2025-04-24 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:19:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:20:06 [end_date_ymd] => 2025-04-24 17:20:06 [RateCDR] => 1 ) [2025-04-24 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:20:06' and `end` < '2025-04-24 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:20:20] Production.INFO: count ==5763 [2025-04-24 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:20:06 - End Time 2025-04-24 17:20:06 [2025-04-24 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981099', 'tblTempUsageDetail_20' ) start [2025-04-24 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981099', 'tblTempUsageDetail_20' ) end [2025-04-24 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981099', 'tblTempVendorCDR_20' ) start [2025-04-24 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981099', 'tblTempVendorCDR_20' ) end [2025-04-24 17:20:23] Production.INFO: ProcessCDR(1,14981099,1,1,2) [2025-04-24 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981099', 'tblTempUsageDetail_20' ) start [2025-04-24 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981099', 'tblTempUsageDetail_20' ) end [2025-04-24 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:20:28] Production.INFO: ==28730== Releasing lock... [2025-04-24 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:20:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:21:06 [end_date_ymd] => 2025-04-24 17:21:06 [RateCDR] => 1 ) [2025-04-24 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:21:06' and `end` < '2025-04-24 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:21:20] Production.INFO: count ==5806 [2025-04-24 17:21:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:21:06 - End Time 2025-04-24 17:21:06 [2025-04-24 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981104', 'tblTempUsageDetail_20' ) start [2025-04-24 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981104', 'tblTempUsageDetail_20' ) end [2025-04-24 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981104', 'tblTempVendorCDR_20' ) start [2025-04-24 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981104', 'tblTempVendorCDR_20' ) end [2025-04-24 17:21:23] Production.INFO: ProcessCDR(1,14981104,1,1,2) [2025-04-24 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981104', 'tblTempUsageDetail_20' ) start [2025-04-24 17:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981104', 'tblTempUsageDetail_20' ) end [2025-04-24 17:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:21:28] Production.INFO: ==28813== Releasing lock... [2025-04-24 17:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:21:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:22:05 [end_date_ymd] => 2025-04-24 17:22:05 [RateCDR] => 1 ) [2025-04-24 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:22:05' and `end` < '2025-04-24 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:22:19] Production.INFO: count ==5796 [2025-04-24 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:22:05 - End Time 2025-04-24 17:22:05 [2025-04-24 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981109', 'tblTempUsageDetail_20' ) start [2025-04-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981109', 'tblTempUsageDetail_20' ) end [2025-04-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981109', 'tblTempVendorCDR_20' ) start [2025-04-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981109', 'tblTempVendorCDR_20' ) end [2025-04-24 17:22:22] Production.INFO: ProcessCDR(1,14981109,1,1,2) [2025-04-24 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981109', 'tblTempUsageDetail_20' ) start [2025-04-24 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981109', 'tblTempUsageDetail_20' ) end [2025-04-24 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:22:26] Production.INFO: ==28897== Releasing lock... [2025-04-24 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:22:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:23:05 [end_date_ymd] => 2025-04-24 17:23:05 [RateCDR] => 1 ) [2025-04-24 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:23:05' and `end` < '2025-04-24 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:23:19] Production.INFO: count ==5799 [2025-04-24 17:23:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:23:05 - End Time 2025-04-24 17:23:05 [2025-04-24 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981114', 'tblTempUsageDetail_20' ) start [2025-04-24 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981114', 'tblTempUsageDetail_20' ) end [2025-04-24 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981114', 'tblTempVendorCDR_20' ) start [2025-04-24 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981114', 'tblTempVendorCDR_20' ) end [2025-04-24 17:23:22] Production.INFO: ProcessCDR(1,14981114,1,1,2) [2025-04-24 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981114', 'tblTempUsageDetail_20' ) start [2025-04-24 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981114', 'tblTempUsageDetail_20' ) end [2025-04-24 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:23:28] Production.INFO: ==28978== Releasing lock... [2025-04-24 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:23:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:24:05 [end_date_ymd] => 2025-04-24 17:24:05 [RateCDR] => 1 ) [2025-04-24 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:24:05' and `end` < '2025-04-24 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:24:19] Production.INFO: count ==5795 [2025-04-24 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:24:05 - End Time 2025-04-24 17:24:05 [2025-04-24 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981119', 'tblTempUsageDetail_20' ) start [2025-04-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981119', 'tblTempUsageDetail_20' ) end [2025-04-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981119', 'tblTempVendorCDR_20' ) start [2025-04-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981119', 'tblTempVendorCDR_20' ) end [2025-04-24 17:24:22] Production.INFO: ProcessCDR(1,14981119,1,1,2) [2025-04-24 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981119', 'tblTempUsageDetail_20' ) start [2025-04-24 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981119', 'tblTempUsageDetail_20' ) end [2025-04-24 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:24:27] Production.INFO: ==29051== Releasing lock... [2025-04-24 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:24:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:25:06 [end_date_ymd] => 2025-04-24 17:25:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:25:06' and `end` < '2025-04-24 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-04-24 17:25:19] Production.INFO: count ==5788 [2025-04-24 17:25:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:25:06 - End Time 2025-04-24 17:25:06 [2025-04-24 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981124', 'tblTempUsageDetail_20' ) start [2025-04-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981124', 'tblTempUsageDetail_20' ) end [2025-04-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981124', 'tblTempVendorCDR_20' ) start [2025-04-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981124', 'tblTempVendorCDR_20' ) end [2025-04-24 17:25:22] Production.INFO: ProcessCDR(1,14981124,1,1,2) [2025-04-24 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981124', 'tblTempUsageDetail_20' ) start [2025-04-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981124', 'tblTempUsageDetail_20' ) end [2025-04-24 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:25:27] Production.INFO: ==29129== Releasing lock... [2025-04-24 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:25:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:26:05 [end_date_ymd] => 2025-04-24 17:26:05 [RateCDR] => 1 ) [2025-04-24 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:26:05' and `end` < '2025-04-24 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:26:19] Production.INFO: count ==5786 [2025-04-24 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:26:05 - End Time 2025-04-24 17:26:05 [2025-04-24 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981129', 'tblTempUsageDetail_20' ) start [2025-04-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981129', 'tblTempUsageDetail_20' ) end [2025-04-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981129', 'tblTempVendorCDR_20' ) start [2025-04-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981129', 'tblTempVendorCDR_20' ) end [2025-04-24 17:26:22] Production.INFO: ProcessCDR(1,14981129,1,1,2) [2025-04-24 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981129', 'tblTempUsageDetail_20' ) start [2025-04-24 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981129', 'tblTempUsageDetail_20' ) end [2025-04-24 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:26:27] Production.INFO: ==29204== Releasing lock... [2025-04-24 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:26:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:27:05 [end_date_ymd] => 2025-04-24 17:27:05 [RateCDR] => 1 ) [2025-04-24 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:27:05' and `end` < '2025-04-24 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:27:19] Production.INFO: count ==5781 [2025-04-24 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:27:05 - End Time 2025-04-24 17:27:05 [2025-04-24 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981134', 'tblTempUsageDetail_20' ) start [2025-04-24 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981134', 'tblTempUsageDetail_20' ) end [2025-04-24 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981134', 'tblTempVendorCDR_20' ) start [2025-04-24 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981134', 'tblTempVendorCDR_20' ) end [2025-04-24 17:27:21] Production.INFO: ProcessCDR(1,14981134,1,1,2) [2025-04-24 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981134', 'tblTempUsageDetail_20' ) start [2025-04-24 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981134', 'tblTempUsageDetail_20' ) end [2025-04-24 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:27:26] Production.INFO: ==29276== Releasing lock... [2025-04-24 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:27:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-24 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:28:06 [end_date_ymd] => 2025-04-24 17:28:06 [RateCDR] => 1 ) [2025-04-24 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:28:06' and `end` < '2025-04-24 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:28:20] Production.INFO: count ==5764 [2025-04-24 17:28:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:28:06 - End Time 2025-04-24 17:28:06 [2025-04-24 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981139', 'tblTempUsageDetail_20' ) start [2025-04-24 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981139', 'tblTempUsageDetail_20' ) end [2025-04-24 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981139', 'tblTempVendorCDR_20' ) start [2025-04-24 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981139', 'tblTempVendorCDR_20' ) end [2025-04-24 17:28:23] Production.INFO: ProcessCDR(1,14981139,1,1,2) [2025-04-24 17:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981139', 'tblTempUsageDetail_20' ) start [2025-04-24 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981139', 'tblTempUsageDetail_20' ) end [2025-04-24 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:28:27] Production.INFO: ==29352== Releasing lock... [2025-04-24 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:28:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:29:05 [end_date_ymd] => 2025-04-24 17:29:05 [RateCDR] => 1 ) [2025-04-24 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:29:05' and `end` < '2025-04-24 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:29:19] Production.INFO: count ==5760 [2025-04-24 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:29:05 - End Time 2025-04-24 17:29:05 [2025-04-24 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981144', 'tblTempUsageDetail_20' ) start [2025-04-24 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981144', 'tblTempUsageDetail_20' ) end [2025-04-24 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981144', 'tblTempVendorCDR_20' ) start [2025-04-24 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981144', 'tblTempVendorCDR_20' ) end [2025-04-24 17:29:22] Production.INFO: ProcessCDR(1,14981144,1,1,2) [2025-04-24 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981144', 'tblTempUsageDetail_20' ) start [2025-04-24 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981144', 'tblTempUsageDetail_20' ) end [2025-04-24 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:29:26] Production.INFO: ==29423== Releasing lock... [2025-04-24 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:29:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:30:06 [end_date_ymd] => 2025-04-24 17:30:06 [RateCDR] => 1 ) [2025-04-24 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:30:06' and `end` < '2025-04-24 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:30:20] Production.INFO: count ==5750 [2025-04-24 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:30:06 - End Time 2025-04-24 17:30:06 [2025-04-24 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981149', 'tblTempUsageDetail_20' ) start [2025-04-24 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981149', 'tblTempUsageDetail_20' ) end [2025-04-24 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981149', 'tblTempVendorCDR_20' ) start [2025-04-24 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981149', 'tblTempVendorCDR_20' ) end [2025-04-24 17:30:23] Production.INFO: ProcessCDR(1,14981149,1,1,2) [2025-04-24 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981149', 'tblTempUsageDetail_20' ) start [2025-04-24 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981149', 'tblTempUsageDetail_20' ) end [2025-04-24 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:30:26] Production.INFO: ==29544== Releasing lock... [2025-04-24 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:30:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-24 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:31:05 [end_date_ymd] => 2025-04-24 17:31:05 [RateCDR] => 1 ) [2025-04-24 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:31:05' and `end` < '2025-04-24 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:31:19] Production.INFO: count ==5670 [2025-04-24 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:31:05 - End Time 2025-04-24 17:31:05 [2025-04-24 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981155', 'tblTempUsageDetail_20' ) start [2025-04-24 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981155', 'tblTempUsageDetail_20' ) end [2025-04-24 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981155', 'tblTempVendorCDR_20' ) start [2025-04-24 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981155', 'tblTempVendorCDR_20' ) end [2025-04-24 17:31:22] Production.INFO: ProcessCDR(1,14981155,1,1,2) [2025-04-24 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981155', 'tblTempUsageDetail_20' ) start [2025-04-24 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981155', 'tblTempUsageDetail_20' ) end [2025-04-24 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:31:25] Production.INFO: ==29619== Releasing lock... [2025-04-24 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:31:25] Production.INFO: 70.5 MB #Memory Used# [2025-04-24 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:32:06 [end_date_ymd] => 2025-04-24 17:32:06 [RateCDR] => 1 ) [2025-04-24 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:32:06' and `end` < '2025-04-24 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:32:19] Production.INFO: count ==5636 [2025-04-24 17:32:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:32:06 - End Time 2025-04-24 17:32:06 [2025-04-24 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981160', 'tblTempUsageDetail_20' ) start [2025-04-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981160', 'tblTempUsageDetail_20' ) end [2025-04-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981160', 'tblTempVendorCDR_20' ) start [2025-04-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981160', 'tblTempVendorCDR_20' ) end [2025-04-24 17:32:22] Production.INFO: ProcessCDR(1,14981160,1,1,2) [2025-04-24 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981160', 'tblTempUsageDetail_20' ) start [2025-04-24 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981160', 'tblTempUsageDetail_20' ) end [2025-04-24 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:32:27] Production.INFO: ==29692== Releasing lock... [2025-04-24 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:32:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:33:05 [end_date_ymd] => 2025-04-24 17:33:05 [RateCDR] => 1 ) [2025-04-24 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:33:05' and `end` < '2025-04-24 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:33:19] Production.INFO: count ==5624 [2025-04-24 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:33:05 - End Time 2025-04-24 17:33:05 [2025-04-24 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981165', 'tblTempUsageDetail_20' ) start [2025-04-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981165', 'tblTempUsageDetail_20' ) end [2025-04-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981165', 'tblTempVendorCDR_20' ) start [2025-04-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981165', 'tblTempVendorCDR_20' ) end [2025-04-24 17:33:22] Production.INFO: ProcessCDR(1,14981165,1,1,2) [2025-04-24 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981165', 'tblTempUsageDetail_20' ) start [2025-04-24 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981165', 'tblTempUsageDetail_20' ) end [2025-04-24 17:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:33:28] Production.INFO: ==29770== Releasing lock... [2025-04-24 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:33:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-24 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:34:05 [end_date_ymd] => 2025-04-24 17:34:05 [RateCDR] => 1 ) [2025-04-24 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:34:05' and `end` < '2025-04-24 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:34:19] Production.INFO: count ==5607 [2025-04-24 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:34:05 - End Time 2025-04-24 17:34:05 [2025-04-24 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981170', 'tblTempUsageDetail_20' ) start [2025-04-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981170', 'tblTempUsageDetail_20' ) end [2025-04-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981170', 'tblTempVendorCDR_20' ) start [2025-04-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981170', 'tblTempVendorCDR_20' ) end [2025-04-24 17:34:21] Production.INFO: ProcessCDR(1,14981170,1,1,2) [2025-04-24 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981170', 'tblTempUsageDetail_20' ) start [2025-04-24 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981170', 'tblTempUsageDetail_20' ) end [2025-04-24 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:34:26] Production.INFO: ==29841== Releasing lock... [2025-04-24 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:34:26] Production.INFO: 70 MB #Memory Used# [2025-04-24 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:35:05 [end_date_ymd] => 2025-04-24 17:35:05 [RateCDR] => 1 ) [2025-04-24 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:35:05' and `end` < '2025-04-24 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:35:18] Production.INFO: count ==5596 [2025-04-24 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:35:05 - End Time 2025-04-24 17:35:05 [2025-04-24 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981175', 'tblTempUsageDetail_20' ) start [2025-04-24 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981175', 'tblTempUsageDetail_20' ) end [2025-04-24 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981175', 'tblTempVendorCDR_20' ) start [2025-04-24 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981175', 'tblTempVendorCDR_20' ) end [2025-04-24 17:35:21] Production.INFO: ProcessCDR(1,14981175,1,1,2) [2025-04-24 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981175', 'tblTempUsageDetail_20' ) start [2025-04-24 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981175', 'tblTempUsageDetail_20' ) end [2025-04-24 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:35:25] Production.INFO: ==29919== Releasing lock... [2025-04-24 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:35:25] Production.INFO: 70 MB #Memory Used# [2025-04-24 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:36:05 [end_date_ymd] => 2025-04-24 17:36:05 [RateCDR] => 1 ) [2025-04-24 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:36:05' and `end` < '2025-04-24 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:36:19] Production.INFO: count ==5583 [2025-04-24 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:36:05 - End Time 2025-04-24 17:36:05 [2025-04-24 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981180', 'tblTempUsageDetail_20' ) start [2025-04-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981180', 'tblTempUsageDetail_20' ) end [2025-04-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981180', 'tblTempVendorCDR_20' ) start [2025-04-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981180', 'tblTempVendorCDR_20' ) end [2025-04-24 17:36:22] Production.INFO: ProcessCDR(1,14981180,1,1,2) [2025-04-24 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981180', 'tblTempUsageDetail_20' ) start [2025-04-24 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981180', 'tblTempUsageDetail_20' ) end [2025-04-24 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:36:25] Production.INFO: ==29992== Releasing lock... [2025-04-24 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:36:25] Production.INFO: 70 MB #Memory Used# [2025-04-24 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:37:04 [end_date_ymd] => 2025-04-24 17:37:04 [RateCDR] => 1 ) [2025-04-24 17:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:37:04' and `end` < '2025-04-24 17:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:37:18] Production.INFO: count ==5573 [2025-04-24 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:37:04 - End Time 2025-04-24 17:37:04 [2025-04-24 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981185', 'tblTempUsageDetail_20' ) start [2025-04-24 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981185', 'tblTempUsageDetail_20' ) end [2025-04-24 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981185', 'tblTempVendorCDR_20' ) start [2025-04-24 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981185', 'tblTempVendorCDR_20' ) end [2025-04-24 17:37:21] Production.INFO: ProcessCDR(1,14981185,1,1,2) [2025-04-24 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981185', 'tblTempUsageDetail_20' ) start [2025-04-24 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981185', 'tblTempUsageDetail_20' ) end [2025-04-24 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:37:24] Production.INFO: ==30067== Releasing lock... [2025-04-24 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:37:24] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:38:05 [end_date_ymd] => 2025-04-24 17:38:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:38:05' and `end` < '2025-04-24 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-04-24 17:38:18] Production.INFO: count ==5569 [2025-04-24 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:38:05 - End Time 2025-04-24 17:38:05 [2025-04-24 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981190', 'tblTempUsageDetail_20' ) start [2025-04-24 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981190', 'tblTempUsageDetail_20' ) end [2025-04-24 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981190', 'tblTempVendorCDR_20' ) start [2025-04-24 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981190', 'tblTempVendorCDR_20' ) end [2025-04-24 17:38:21] Production.INFO: ProcessCDR(1,14981190,1,1,2) [2025-04-24 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981190', 'tblTempUsageDetail_20' ) start [2025-04-24 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981190', 'tblTempUsageDetail_20' ) end [2025-04-24 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:38:26] Production.INFO: ==30140== Releasing lock... [2025-04-24 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:38:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:39:05 [end_date_ymd] => 2025-04-24 17:39:05 [RateCDR] => 1 ) [2025-04-24 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:39:05' and `end` < '2025-04-24 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:39:19] Production.INFO: count ==5566 [2025-04-24 17:39:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:39:05 - End Time 2025-04-24 17:39:05 [2025-04-24 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981195', 'tblTempUsageDetail_20' ) start [2025-04-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981195', 'tblTempUsageDetail_20' ) end [2025-04-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981195', 'tblTempVendorCDR_20' ) start [2025-04-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981195', 'tblTempVendorCDR_20' ) end [2025-04-24 17:39:22] Production.INFO: ProcessCDR(1,14981195,1,1,2) [2025-04-24 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981195', 'tblTempUsageDetail_20' ) start [2025-04-24 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981195', 'tblTempUsageDetail_20' ) end [2025-04-24 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:39:27] Production.INFO: ==30215== Releasing lock... [2025-04-24 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:39:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:40:06 [end_date_ymd] => 2025-04-24 17:40:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:40:06' and `end` < '2025-04-24 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-04-24 17:40:19] Production.INFO: count ==5559 [2025-04-24 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:40:06 - End Time 2025-04-24 17:40:06 [2025-04-24 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981201', 'tblTempUsageDetail_20' ) start [2025-04-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981201', 'tblTempUsageDetail_20' ) end [2025-04-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981201', 'tblTempVendorCDR_20' ) start [2025-04-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981201', 'tblTempVendorCDR_20' ) end [2025-04-24 17:40:22] Production.INFO: ProcessCDR(1,14981201,1,1,2) [2025-04-24 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981201', 'tblTempUsageDetail_20' ) start [2025-04-24 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981201', 'tblTempUsageDetail_20' ) end [2025-04-24 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:40:27] Production.INFO: ==30290== Releasing lock... [2025-04-24 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:40:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:41:05 [end_date_ymd] => 2025-04-24 17:41:05 [RateCDR] => 1 ) [2025-04-24 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:41:05' and `end` < '2025-04-24 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:41:19] Production.INFO: count ==5574 [2025-04-24 17:41:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:41:05 - End Time 2025-04-24 17:41:05 [2025-04-24 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981206', 'tblTempUsageDetail_20' ) start [2025-04-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981206', 'tblTempUsageDetail_20' ) end [2025-04-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981206', 'tblTempVendorCDR_20' ) start [2025-04-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981206', 'tblTempVendorCDR_20' ) end [2025-04-24 17:41:22] Production.INFO: ProcessCDR(1,14981206,1,1,2) [2025-04-24 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981206', 'tblTempUsageDetail_20' ) start [2025-04-24 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981206', 'tblTempUsageDetail_20' ) end [2025-04-24 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:41:26] Production.INFO: ==30362== Releasing lock... [2025-04-24 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:41:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:42:05 [end_date_ymd] => 2025-04-24 17:42:05 [RateCDR] => 1 ) [2025-04-24 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:42:05' and `end` < '2025-04-24 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:42:19] Production.INFO: count ==5556 [2025-04-24 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:42:05 - End Time 2025-04-24 17:42:05 [2025-04-24 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981211', 'tblTempUsageDetail_20' ) start [2025-04-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981211', 'tblTempUsageDetail_20' ) end [2025-04-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981211', 'tblTempVendorCDR_20' ) start [2025-04-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981211', 'tblTempVendorCDR_20' ) end [2025-04-24 17:42:22] Production.INFO: ProcessCDR(1,14981211,1,1,2) [2025-04-24 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981211', 'tblTempUsageDetail_20' ) start [2025-04-24 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981211', 'tblTempUsageDetail_20' ) end [2025-04-24 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:42:25] Production.INFO: ==30440== Releasing lock... [2025-04-24 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:42:25] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:43:06 [end_date_ymd] => 2025-04-24 17:43:06 [RateCDR] => 1 ) [2025-04-24 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:43:06' and `end` < '2025-04-24 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:43:20] Production.INFO: count ==5558 [2025-04-24 17:43:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:43:06 - End Time 2025-04-24 17:43:06 [2025-04-24 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981216', 'tblTempUsageDetail_20' ) start [2025-04-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981216', 'tblTempUsageDetail_20' ) end [2025-04-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981216', 'tblTempVendorCDR_20' ) start [2025-04-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981216', 'tblTempVendorCDR_20' ) end [2025-04-24 17:43:22] Production.INFO: ProcessCDR(1,14981216,1,1,2) [2025-04-24 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981216', 'tblTempUsageDetail_20' ) start [2025-04-24 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981216', 'tblTempUsageDetail_20' ) end [2025-04-24 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:43:27] Production.INFO: ==30513== Releasing lock... [2025-04-24 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:43:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:44:04 [end_date_ymd] => 2025-04-24 17:44:04 [RateCDR] => 1 ) [2025-04-24 17:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:44:04' and `end` < '2025-04-24 17:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:44:18] Production.INFO: count ==5561 [2025-04-24 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:44:04 - End Time 2025-04-24 17:44:04 [2025-04-24 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981221', 'tblTempUsageDetail_20' ) start [2025-04-24 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981221', 'tblTempUsageDetail_20' ) end [2025-04-24 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981221', 'tblTempVendorCDR_20' ) start [2025-04-24 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981221', 'tblTempVendorCDR_20' ) end [2025-04-24 17:44:21] Production.INFO: ProcessCDR(1,14981221,1,1,2) [2025-04-24 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981221', 'tblTempUsageDetail_20' ) start [2025-04-24 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981221', 'tblTempUsageDetail_20' ) end [2025-04-24 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:44:25] Production.INFO: ==30586== Releasing lock... [2025-04-24 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:44:25] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:45:05 [end_date_ymd] => 2025-04-24 17:45:05 [RateCDR] => 1 ) [2025-04-24 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:45:05' and `end` < '2025-04-24 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:45:19] Production.INFO: count ==5577 [2025-04-24 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:45:05 - End Time 2025-04-24 17:45:05 [2025-04-24 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981226', 'tblTempUsageDetail_20' ) start [2025-04-24 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981226', 'tblTempUsageDetail_20' ) end [2025-04-24 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981226', 'tblTempVendorCDR_20' ) start [2025-04-24 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981226', 'tblTempVendorCDR_20' ) end [2025-04-24 17:45:21] Production.INFO: ProcessCDR(1,14981226,1,1,2) [2025-04-24 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981226', 'tblTempUsageDetail_20' ) start [2025-04-24 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981226', 'tblTempUsageDetail_20' ) end [2025-04-24 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:45:27] Production.INFO: ==30699== Releasing lock... [2025-04-24 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:45:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:46:05 [end_date_ymd] => 2025-04-24 17:46:05 [RateCDR] => 1 ) [2025-04-24 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:46:05' and `end` < '2025-04-24 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:46:19] Production.INFO: count ==5571 [2025-04-24 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:46:05 - End Time 2025-04-24 17:46:05 [2025-04-24 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981231', 'tblTempUsageDetail_20' ) start [2025-04-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981231', 'tblTempUsageDetail_20' ) end [2025-04-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981231', 'tblTempVendorCDR_20' ) start [2025-04-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981231', 'tblTempVendorCDR_20' ) end [2025-04-24 17:46:22] Production.INFO: ProcessCDR(1,14981231,1,1,2) [2025-04-24 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981231', 'tblTempUsageDetail_20' ) start [2025-04-24 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981231', 'tblTempUsageDetail_20' ) end [2025-04-24 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:46:25] Production.INFO: ==30778== Releasing lock... [2025-04-24 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:46:25] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:47:06 [end_date_ymd] => 2025-04-24 17:47:06 [RateCDR] => 1 ) [2025-04-24 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:47:06' and `end` < '2025-04-24 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:47:19] Production.INFO: count ==5568 [2025-04-24 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:47:06 - End Time 2025-04-24 17:47:06 [2025-04-24 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981236', 'tblTempUsageDetail_20' ) start [2025-04-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981236', 'tblTempUsageDetail_20' ) end [2025-04-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981236', 'tblTempVendorCDR_20' ) start [2025-04-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981236', 'tblTempVendorCDR_20' ) end [2025-04-24 17:47:22] Production.INFO: ProcessCDR(1,14981236,1,1,2) [2025-04-24 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981236', 'tblTempUsageDetail_20' ) start [2025-04-24 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981236', 'tblTempUsageDetail_20' ) end [2025-04-24 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:47:27] Production.INFO: ==30850== Releasing lock... [2025-04-24 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:47:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:48:05 [end_date_ymd] => 2025-04-24 17:48:05 [RateCDR] => 1 ) [2025-04-24 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:48:05' and `end` < '2025-04-24 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:48:18] Production.INFO: count ==5559 [2025-04-24 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:48:05 - End Time 2025-04-24 17:48:05 [2025-04-24 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981241', 'tblTempUsageDetail_20' ) start [2025-04-24 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981241', 'tblTempUsageDetail_20' ) end [2025-04-24 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981241', 'tblTempVendorCDR_20' ) start [2025-04-24 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981241', 'tblTempVendorCDR_20' ) end [2025-04-24 17:48:21] Production.INFO: ProcessCDR(1,14981241,1,1,2) [2025-04-24 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981241', 'tblTempUsageDetail_20' ) start [2025-04-24 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981241', 'tblTempUsageDetail_20' ) end [2025-04-24 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:48:24] Production.INFO: ==30930== Releasing lock... [2025-04-24 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:48:24] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:49:05 [end_date_ymd] => 2025-04-24 17:49:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:49:05' and `end` < '2025-04-24 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-04-24 17:49:18] Production.INFO: count ==5532 [2025-04-24 17:49:20] Production.ERROR: pbx CDR StartTime 2025-04-24 14:49:05 - End Time 2025-04-24 17:49:05 [2025-04-24 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981246', 'tblTempUsageDetail_20' ) start [2025-04-24 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981246', 'tblTempUsageDetail_20' ) end [2025-04-24 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981246', 'tblTempVendorCDR_20' ) start [2025-04-24 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981246', 'tblTempVendorCDR_20' ) end [2025-04-24 17:49:21] Production.INFO: ProcessCDR(1,14981246,1,1,2) [2025-04-24 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981246', 'tblTempUsageDetail_20' ) start [2025-04-24 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981246', 'tblTempUsageDetail_20' ) end [2025-04-24 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:49:24] Production.INFO: ==31004== Releasing lock... [2025-04-24 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:49:24] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:50:06 [end_date_ymd] => 2025-04-24 17:50:06 [RateCDR] => 1 ) [2025-04-24 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:50:06' and `end` < '2025-04-24 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:50:20] Production.INFO: count ==5542 [2025-04-24 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:50:06 - End Time 2025-04-24 17:50:06 [2025-04-24 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981252', 'tblTempUsageDetail_20' ) start [2025-04-24 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981252', 'tblTempUsageDetail_20' ) end [2025-04-24 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981252', 'tblTempVendorCDR_20' ) start [2025-04-24 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981252', 'tblTempVendorCDR_20' ) end [2025-04-24 17:50:23] Production.INFO: ProcessCDR(1,14981252,1,1,2) [2025-04-24 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981252', 'tblTempUsageDetail_20' ) start [2025-04-24 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981252', 'tblTempUsageDetail_20' ) end [2025-04-24 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:50:28] Production.INFO: ==31079== Releasing lock... [2025-04-24 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:51:05 [end_date_ymd] => 2025-04-24 17:51:05 [RateCDR] => 1 ) [2025-04-24 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:51:05' and `end` < '2025-04-24 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:51:19] Production.INFO: count ==5542 [2025-04-24 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:51:05 - End Time 2025-04-24 17:51:05 [2025-04-24 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981257', 'tblTempUsageDetail_20' ) start [2025-04-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981257', 'tblTempUsageDetail_20' ) end [2025-04-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981257', 'tblTempVendorCDR_20' ) start [2025-04-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981257', 'tblTempVendorCDR_20' ) end [2025-04-24 17:51:22] Production.INFO: ProcessCDR(1,14981257,1,1,2) [2025-04-24 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981257', 'tblTempUsageDetail_20' ) start [2025-04-24 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981257', 'tblTempUsageDetail_20' ) end [2025-04-24 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:51:25] Production.INFO: ==31150== Releasing lock... [2025-04-24 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:51:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:52:05 [end_date_ymd] => 2025-04-24 17:52:05 [RateCDR] => 1 ) [2025-04-24 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:52:05' and `end` < '2025-04-24 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:52:18] Production.INFO: count ==5545 [2025-04-24 17:52:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:52:05 - End Time 2025-04-24 17:52:05 [2025-04-24 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981262', 'tblTempUsageDetail_20' ) start [2025-04-24 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981262', 'tblTempUsageDetail_20' ) end [2025-04-24 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981262', 'tblTempVendorCDR_20' ) start [2025-04-24 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981262', 'tblTempVendorCDR_20' ) end [2025-04-24 17:52:21] Production.INFO: ProcessCDR(1,14981262,1,1,2) [2025-04-24 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981262', 'tblTempUsageDetail_20' ) start [2025-04-24 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981262', 'tblTempUsageDetail_20' ) end [2025-04-24 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:52:26] Production.INFO: ==31228== Releasing lock... [2025-04-24 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:52:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:53:05 [end_date_ymd] => 2025-04-24 17:53:05 [RateCDR] => 1 ) [2025-04-24 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:53:05' and `end` < '2025-04-24 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:53:19] Production.INFO: count ==5548 [2025-04-24 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:53:05 - End Time 2025-04-24 17:53:05 [2025-04-24 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981267', 'tblTempUsageDetail_20' ) start [2025-04-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981267', 'tblTempUsageDetail_20' ) end [2025-04-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981267', 'tblTempVendorCDR_20' ) start [2025-04-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981267', 'tblTempVendorCDR_20' ) end [2025-04-24 17:53:21] Production.INFO: ProcessCDR(1,14981267,1,1,2) [2025-04-24 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981267', 'tblTempUsageDetail_20' ) start [2025-04-24 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981267', 'tblTempUsageDetail_20' ) end [2025-04-24 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:53:25] Production.INFO: ==31300== Releasing lock... [2025-04-24 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:53:25] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:54:06 [end_date_ymd] => 2025-04-24 17:54:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:54:06' and `end` < '2025-04-24 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-04-24 17:54:19] Production.INFO: count ==5518 [2025-04-24 17:54:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:54:06 - End Time 2025-04-24 17:54:06 [2025-04-24 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981272', 'tblTempUsageDetail_20' ) start [2025-04-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981272', 'tblTempUsageDetail_20' ) end [2025-04-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981272', 'tblTempVendorCDR_20' ) start [2025-04-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981272', 'tblTempVendorCDR_20' ) end [2025-04-24 17:54:22] Production.INFO: ProcessCDR(1,14981272,1,1,2) [2025-04-24 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981272', 'tblTempUsageDetail_20' ) start [2025-04-24 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981272', 'tblTempUsageDetail_20' ) end [2025-04-24 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:54:27] Production.INFO: ==31374== Releasing lock... [2025-04-24 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:54:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:55:05 [end_date_ymd] => 2025-04-24 17:55:05 [RateCDR] => 1 ) [2025-04-24 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:55:05' and `end` < '2025-04-24 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:55:19] Production.INFO: count ==5517 [2025-04-24 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:55:05 - End Time 2025-04-24 17:55:05 [2025-04-24 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981277', 'tblTempUsageDetail_20' ) start [2025-04-24 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981277', 'tblTempUsageDetail_20' ) end [2025-04-24 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981277', 'tblTempVendorCDR_20' ) start [2025-04-24 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981277', 'tblTempVendorCDR_20' ) end [2025-04-24 17:55:21] Production.INFO: ProcessCDR(1,14981277,1,1,2) [2025-04-24 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981277', 'tblTempUsageDetail_20' ) start [2025-04-24 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981277', 'tblTempUsageDetail_20' ) end [2025-04-24 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:55:26] Production.INFO: ==31447== Releasing lock... [2025-04-24 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:55:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:56:06 [end_date_ymd] => 2025-04-24 17:56:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:56:06' and `end` < '2025-04-24 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-04-24 17:56:19] Production.INFO: count ==5555 [2025-04-24 17:56:22] Production.ERROR: pbx CDR StartTime 2025-04-24 14:56:06 - End Time 2025-04-24 17:56:06 [2025-04-24 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981282', 'tblTempUsageDetail_20' ) start [2025-04-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981282', 'tblTempUsageDetail_20' ) end [2025-04-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981282', 'tblTempVendorCDR_20' ) start [2025-04-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981282', 'tblTempVendorCDR_20' ) end [2025-04-24 17:56:22] Production.INFO: ProcessCDR(1,14981282,1,1,2) [2025-04-24 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981282', 'tblTempUsageDetail_20' ) start [2025-04-24 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981282', 'tblTempUsageDetail_20' ) end [2025-04-24 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:56:27] Production.INFO: ==31517== Releasing lock... [2025-04-24 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:56:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:57:05 [end_date_ymd] => 2025-04-24 17:57:05 [RateCDR] => 1 ) [2025-04-24 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:57:05' and `end` < '2025-04-24 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:57:18] Production.INFO: count ==5532 [2025-04-24 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-24 14:57:05 - End Time 2025-04-24 17:57:05 [2025-04-24 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981287', 'tblTempUsageDetail_20' ) start [2025-04-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981287', 'tblTempUsageDetail_20' ) end [2025-04-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981287', 'tblTempVendorCDR_20' ) start [2025-04-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981287', 'tblTempVendorCDR_20' ) end [2025-04-24 17:57:21] Production.INFO: ProcessCDR(1,14981287,1,1,2) [2025-04-24 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981287', 'tblTempUsageDetail_20' ) start [2025-04-24 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981287', 'tblTempUsageDetail_20' ) end [2025-04-24 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:57:24] Production.INFO: ==31590== Releasing lock... [2025-04-24 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:57:24] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:58:05 [end_date_ymd] => 2025-04-24 17:58:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 14:58:05' and `end` < '2025-04-24 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-04-24 17:58:19] Production.INFO: count ==5543 [2025-04-24 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-24 14:58:05 - End Time 2025-04-24 17:58:05 [2025-04-24 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981292', 'tblTempUsageDetail_20' ) start [2025-04-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981292', 'tblTempUsageDetail_20' ) end [2025-04-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981292', 'tblTempVendorCDR_20' ) start [2025-04-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981292', 'tblTempVendorCDR_20' ) end [2025-04-24 17:58:21] Production.INFO: ProcessCDR(1,14981292,1,1,2) [2025-04-24 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981292', 'tblTempUsageDetail_20' ) start [2025-04-24 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981292', 'tblTempUsageDetail_20' ) end [2025-04-24 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:58:27] Production.INFO: ==31664== Releasing lock... [2025-04-24 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 14:59:05 [end_date_ymd] => 2025-04-24 17:59:05 [RateCDR] => 1 ) [2025-04-24 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 14:59:05' and `end` < '2025-04-24 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 17:59:18] Production.INFO: count ==5541 [2025-04-24 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-24 14:59:05 - End Time 2025-04-24 17:59:05 [2025-04-24 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981297', 'tblTempUsageDetail_20' ) start [2025-04-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981297', 'tblTempUsageDetail_20' ) end [2025-04-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981297', 'tblTempVendorCDR_20' ) start [2025-04-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981297', 'tblTempVendorCDR_20' ) end [2025-04-24 17:59:21] Production.INFO: ProcessCDR(1,14981297,1,1,2) [2025-04-24 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981297', 'tblTempUsageDetail_20' ) start [2025-04-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981297', 'tblTempUsageDetail_20' ) end [2025-04-24 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 17:59:26] Production.INFO: ==31740== Releasing lock... [2025-04-24 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 17:59:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:00:06 [end_date_ymd] => 2025-04-24 18:00:06 [RateCDR] => 1 ) [2025-04-24 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:00:06' and `end` < '2025-04-24 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:00:20] Production.INFO: count ==5531 [2025-04-24 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-24 15:00:06 - End Time 2025-04-24 18:00:06 [2025-04-24 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981303', 'tblTempUsageDetail_20' ) start [2025-04-24 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981303', 'tblTempUsageDetail_20' ) end [2025-04-24 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981303', 'tblTempVendorCDR_20' ) start [2025-04-24 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981303', 'tblTempVendorCDR_20' ) end [2025-04-24 18:00:23] Production.INFO: ProcessCDR(1,14981303,1,1,2) [2025-04-24 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981303', 'tblTempUsageDetail_20' ) start [2025-04-24 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981303', 'tblTempUsageDetail_20' ) end [2025-04-24 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:00:27] Production.INFO: ==31813== Releasing lock... [2025-04-24 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:00:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:01:05 [end_date_ymd] => 2025-04-24 18:01:05 [RateCDR] => 1 ) [2025-04-24 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:01:05' and `end` < '2025-04-24 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:01:19] Production.INFO: count ==5555 [2025-04-24 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:01:05 - End Time 2025-04-24 18:01:05 [2025-04-24 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981308', 'tblTempUsageDetail_20' ) start [2025-04-24 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981308', 'tblTempUsageDetail_20' ) end [2025-04-24 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981308', 'tblTempVendorCDR_20' ) start [2025-04-24 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981308', 'tblTempVendorCDR_20' ) end [2025-04-24 18:01:22] Production.INFO: ProcessCDR(1,14981308,1,1,2) [2025-04-24 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981308', 'tblTempUsageDetail_20' ) start [2025-04-24 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981308', 'tblTempUsageDetail_20' ) end [2025-04-24 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:01:27] Production.INFO: ==31940== Releasing lock... [2025-04-24 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:01:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:02:05 [end_date_ymd] => 2025-04-24 18:02:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:02:05' and `end` < '2025-04-24 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-04-24 18:02:18] Production.INFO: count ==5546 [2025-04-24 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:02:05 - End Time 2025-04-24 18:02:05 [2025-04-24 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981313', 'tblTempUsageDetail_20' ) start [2025-04-24 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981313', 'tblTempUsageDetail_20' ) end [2025-04-24 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981313', 'tblTempVendorCDR_20' ) start [2025-04-24 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981313', 'tblTempVendorCDR_20' ) end [2025-04-24 18:02:21] Production.INFO: ProcessCDR(1,14981313,1,1,2) [2025-04-24 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981313', 'tblTempUsageDetail_20' ) start [2025-04-24 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981313', 'tblTempUsageDetail_20' ) end [2025-04-24 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:02:26] Production.INFO: ==32017== Releasing lock... [2025-04-24 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:02:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:03:05 [end_date_ymd] => 2025-04-24 18:03:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:03:05' and `end` < '2025-04-24 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-04-24 18:03:19] Production.INFO: count ==5541 [2025-04-24 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:03:05 - End Time 2025-04-24 18:03:05 [2025-04-24 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981318', 'tblTempUsageDetail_20' ) start [2025-04-24 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981318', 'tblTempUsageDetail_20' ) end [2025-04-24 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981318', 'tblTempVendorCDR_20' ) start [2025-04-24 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981318', 'tblTempVendorCDR_20' ) end [2025-04-24 18:03:21] Production.INFO: ProcessCDR(1,14981318,1,1,2) [2025-04-24 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981318', 'tblTempUsageDetail_20' ) start [2025-04-24 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981318', 'tblTempUsageDetail_20' ) end [2025-04-24 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:03:25] Production.INFO: ==32091== Releasing lock... [2025-04-24 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:03:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:04:05 [end_date_ymd] => 2025-04-24 18:04:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:04:05' and `end` < '2025-04-24 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:04:19] Production.INFO: count ==5551 [2025-04-24 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:04:05 - End Time 2025-04-24 18:04:05 [2025-04-24 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981323', 'tblTempUsageDetail_20' ) start [2025-04-24 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981323', 'tblTempUsageDetail_20' ) end [2025-04-24 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981323', 'tblTempVendorCDR_20' ) start [2025-04-24 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981323', 'tblTempVendorCDR_20' ) end [2025-04-24 18:04:21] Production.INFO: ProcessCDR(1,14981323,1,1,2) [2025-04-24 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981323', 'tblTempUsageDetail_20' ) start [2025-04-24 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981323', 'tblTempUsageDetail_20' ) end [2025-04-24 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:04:25] Production.INFO: ==32164== Releasing lock... [2025-04-24 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:04:25] Production.INFO: 69.75 MB #Memory Used# [2025-04-24 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:05:06 [end_date_ymd] => 2025-04-24 18:05:06 [RateCDR] => 1 ) [2025-04-24 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:05:06' and `end` < '2025-04-24 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:05:19] Production.INFO: count ==5544 [2025-04-24 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:05:06 - End Time 2025-04-24 18:05:06 [2025-04-24 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981328', 'tblTempUsageDetail_20' ) start [2025-04-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981328', 'tblTempUsageDetail_20' ) end [2025-04-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981328', 'tblTempVendorCDR_20' ) start [2025-04-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981328', 'tblTempVendorCDR_20' ) end [2025-04-24 18:05:22] Production.INFO: ProcessCDR(1,14981328,1,1,2) [2025-04-24 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981328', 'tblTempUsageDetail_20' ) start [2025-04-24 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981328', 'tblTempUsageDetail_20' ) end [2025-04-24 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:05:25] Production.INFO: ==32239== Releasing lock... [2025-04-24 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:05:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:06:05 [end_date_ymd] => 2025-04-24 18:06:05 [RateCDR] => 1 ) [2025-04-24 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:06:05' and `end` < '2025-04-24 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:06:19] Production.INFO: count ==5534 [2025-04-24 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:06:05 - End Time 2025-04-24 18:06:05 [2025-04-24 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981333', 'tblTempUsageDetail_20' ) start [2025-04-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981333', 'tblTempUsageDetail_20' ) end [2025-04-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981333', 'tblTempVendorCDR_20' ) start [2025-04-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981333', 'tblTempVendorCDR_20' ) end [2025-04-24 18:06:21] Production.INFO: ProcessCDR(1,14981333,1,1,2) [2025-04-24 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981333', 'tblTempUsageDetail_20' ) start [2025-04-24 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981333', 'tblTempUsageDetail_20' ) end [2025-04-24 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:06:26] Production.INFO: ==32309== Releasing lock... [2025-04-24 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:06:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:07:05 [end_date_ymd] => 2025-04-24 18:07:05 [RateCDR] => 1 ) [2025-04-24 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:07:05' and `end` < '2025-04-24 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:07:19] Production.INFO: count ==5516 [2025-04-24 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:07:05 - End Time 2025-04-24 18:07:05 [2025-04-24 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981338', 'tblTempUsageDetail_20' ) start [2025-04-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981338', 'tblTempUsageDetail_20' ) end [2025-04-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981338', 'tblTempVendorCDR_20' ) start [2025-04-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981338', 'tblTempVendorCDR_20' ) end [2025-04-24 18:07:22] Production.INFO: ProcessCDR(1,14981338,1,1,2) [2025-04-24 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981338', 'tblTempUsageDetail_20' ) start [2025-04-24 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981338', 'tblTempUsageDetail_20' ) end [2025-04-24 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:07:27] Production.INFO: ==32384== Releasing lock... [2025-04-24 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:07:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-24 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:08:05 [end_date_ymd] => 2025-04-24 18:08:05 [RateCDR] => 1 ) [2025-04-24 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:08:05' and `end` < '2025-04-24 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:08:18] Production.INFO: count ==5509 [2025-04-24 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:08:05 - End Time 2025-04-24 18:08:05 [2025-04-24 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981343', 'tblTempUsageDetail_20' ) start [2025-04-24 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981343', 'tblTempUsageDetail_20' ) end [2025-04-24 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981343', 'tblTempVendorCDR_20' ) start [2025-04-24 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981343', 'tblTempVendorCDR_20' ) end [2025-04-24 18:08:21] Production.INFO: ProcessCDR(1,14981343,1,1,2) [2025-04-24 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981343', 'tblTempUsageDetail_20' ) start [2025-04-24 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981343', 'tblTempUsageDetail_20' ) end [2025-04-24 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:08:25] Production.INFO: ==32455== Releasing lock... [2025-04-24 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:08:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:09:06 [end_date_ymd] => 2025-04-24 18:09:06 [RateCDR] => 1 ) [2025-04-24 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:09:06' and `end` < '2025-04-24 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:09:19] Production.INFO: count ==5509 [2025-04-24 18:09:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:09:06 - End Time 2025-04-24 18:09:06 [2025-04-24 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981348', 'tblTempUsageDetail_20' ) start [2025-04-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981348', 'tblTempUsageDetail_20' ) end [2025-04-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981348', 'tblTempVendorCDR_20' ) start [2025-04-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981348', 'tblTempVendorCDR_20' ) end [2025-04-24 18:09:22] Production.INFO: ProcessCDR(1,14981348,1,1,2) [2025-04-24 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981348', 'tblTempUsageDetail_20' ) start [2025-04-24 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981348', 'tblTempUsageDetail_20' ) end [2025-04-24 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:09:25] Production.INFO: ==32528== Releasing lock... [2025-04-24 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:09:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:10:05 [end_date_ymd] => 2025-04-24 18:10:05 [RateCDR] => 1 ) [2025-04-24 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:10:05' and `end` < '2025-04-24 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:10:19] Production.INFO: count ==5484 [2025-04-24 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:10:05 - End Time 2025-04-24 18:10:05 [2025-04-24 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981353', 'tblTempUsageDetail_20' ) start [2025-04-24 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981353', 'tblTempUsageDetail_20' ) end [2025-04-24 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981353', 'tblTempVendorCDR_20' ) start [2025-04-24 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981353', 'tblTempVendorCDR_20' ) end [2025-04-24 18:10:21] Production.INFO: ProcessCDR(1,14981353,1,1,2) [2025-04-24 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981353', 'tblTempUsageDetail_20' ) start [2025-04-24 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981353', 'tblTempUsageDetail_20' ) end [2025-04-24 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:10:26] Production.INFO: ==32613== Releasing lock... [2025-04-24 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:10:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-24 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:11:05 [end_date_ymd] => 2025-04-24 18:11:05 [RateCDR] => 1 ) [2025-04-24 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:11:05' and `end` < '2025-04-24 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:11:19] Production.INFO: count ==5442 [2025-04-24 18:11:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:11:05 - End Time 2025-04-24 18:11:05 [2025-04-24 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981359', 'tblTempUsageDetail_20' ) start [2025-04-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981359', 'tblTempUsageDetail_20' ) end [2025-04-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981359', 'tblTempVendorCDR_20' ) start [2025-04-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981359', 'tblTempVendorCDR_20' ) end [2025-04-24 18:11:21] Production.INFO: ProcessCDR(1,14981359,1,1,2) [2025-04-24 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981359', 'tblTempUsageDetail_20' ) start [2025-04-24 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981359', 'tblTempUsageDetail_20' ) end [2025-04-24 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:11:27] Production.INFO: ==32692== Releasing lock... [2025-04-24 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:11:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:12:04 [end_date_ymd] => 2025-04-24 18:12:04 [RateCDR] => 1 ) [2025-04-24 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:12:04' and `end` < '2025-04-24 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:12:18] Production.INFO: count ==5422 [2025-04-24 18:12:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:12:04 - End Time 2025-04-24 18:12:04 [2025-04-24 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981364', 'tblTempUsageDetail_20' ) start [2025-04-24 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981364', 'tblTempUsageDetail_20' ) end [2025-04-24 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981364', 'tblTempVendorCDR_20' ) start [2025-04-24 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981364', 'tblTempVendorCDR_20' ) end [2025-04-24 18:12:20] Production.INFO: ProcessCDR(1,14981364,1,1,2) [2025-04-24 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981364', 'tblTempUsageDetail_20' ) start [2025-04-24 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981364', 'tblTempUsageDetail_20' ) end [2025-04-24 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:12:26] Production.INFO: ==32766== Releasing lock... [2025-04-24 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:12:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-24 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:13:05 [end_date_ymd] => 2025-04-24 18:13:05 [RateCDR] => 1 ) [2025-04-24 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:13:05' and `end` < '2025-04-24 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:13:19] Production.INFO: count ==5397 [2025-04-24 18:13:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:13:05 - End Time 2025-04-24 18:13:05 [2025-04-24 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981369', 'tblTempUsageDetail_20' ) start [2025-04-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981369', 'tblTempUsageDetail_20' ) end [2025-04-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981369', 'tblTempVendorCDR_20' ) start [2025-04-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981369', 'tblTempVendorCDR_20' ) end [2025-04-24 18:13:21] Production.INFO: ProcessCDR(1,14981369,1,1,2) [2025-04-24 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981369', 'tblTempUsageDetail_20' ) start [2025-04-24 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981369', 'tblTempUsageDetail_20' ) end [2025-04-24 18:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:13:27] Production.INFO: ==389== Releasing lock... [2025-04-24 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:13:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:14:05 [end_date_ymd] => 2025-04-24 18:14:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:14:05' and `end` < '2025-04-24 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-04-24 18:14:19] Production.INFO: count ==5382 [2025-04-24 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:14:05 - End Time 2025-04-24 18:14:05 [2025-04-24 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981374', 'tblTempUsageDetail_20' ) start [2025-04-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981374', 'tblTempUsageDetail_20' ) end [2025-04-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981374', 'tblTempVendorCDR_20' ) start [2025-04-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981374', 'tblTempVendorCDR_20' ) end [2025-04-24 18:14:21] Production.INFO: ProcessCDR(1,14981374,1,1,2) [2025-04-24 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981374', 'tblTempUsageDetail_20' ) start [2025-04-24 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981374', 'tblTempUsageDetail_20' ) end [2025-04-24 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:14:26] Production.INFO: ==463== Releasing lock... [2025-04-24 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:14:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-24 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:15:05 [end_date_ymd] => 2025-04-24 18:15:05 [RateCDR] => 1 ) [2025-04-24 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:15:05' and `end` < '2025-04-24 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:15:18] Production.INFO: count ==5371 [2025-04-24 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:15:05 - End Time 2025-04-24 18:15:05 [2025-04-24 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981379', 'tblTempUsageDetail_20' ) start [2025-04-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981379', 'tblTempUsageDetail_20' ) end [2025-04-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981379', 'tblTempVendorCDR_20' ) start [2025-04-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981379', 'tblTempVendorCDR_20' ) end [2025-04-24 18:15:21] Production.INFO: ProcessCDR(1,14981379,1,1,2) [2025-04-24 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981379', 'tblTempUsageDetail_20' ) start [2025-04-24 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981379', 'tblTempUsageDetail_20' ) end [2025-04-24 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:15:26] Production.INFO: ==538== Releasing lock... [2025-04-24 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:15:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-24 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:16:05 [end_date_ymd] => 2025-04-24 18:16:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:16:05' and `end` < '2025-04-24 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-04-24 18:16:19] Production.INFO: count ==5354 [2025-04-24 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:16:05 - End Time 2025-04-24 18:16:05 [2025-04-24 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981384', 'tblTempUsageDetail_20' ) start [2025-04-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981384', 'tblTempUsageDetail_20' ) end [2025-04-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981384', 'tblTempVendorCDR_20' ) start [2025-04-24 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981384', 'tblTempVendorCDR_20' ) end [2025-04-24 18:16:22] Production.INFO: ProcessCDR(1,14981384,1,1,2) [2025-04-24 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981384', 'tblTempUsageDetail_20' ) start [2025-04-24 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981384', 'tblTempUsageDetail_20' ) end [2025-04-24 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:16:27] Production.INFO: ==676== Releasing lock... [2025-04-24 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:16:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-24 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:17:05 [end_date_ymd] => 2025-04-24 18:17:05 [RateCDR] => 1 ) [2025-04-24 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:17:05' and `end` < '2025-04-24 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:17:18] Production.INFO: count ==5355 [2025-04-24 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:17:05 - End Time 2025-04-24 18:17:05 [2025-04-24 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981389', 'tblTempUsageDetail_20' ) start [2025-04-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981389', 'tblTempUsageDetail_20' ) end [2025-04-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981389', 'tblTempVendorCDR_20' ) start [2025-04-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981389', 'tblTempVendorCDR_20' ) end [2025-04-24 18:17:21] Production.INFO: ProcessCDR(1,14981389,1,1,2) [2025-04-24 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981389', 'tblTempUsageDetail_20' ) start [2025-04-24 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981389', 'tblTempUsageDetail_20' ) end [2025-04-24 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:17:24] Production.INFO: ==766== Releasing lock... [2025-04-24 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:17:24] Production.INFO: 68.25 MB #Memory Used# [2025-04-24 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:18:05 [end_date_ymd] => 2025-04-24 18:18:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:18:05' and `end` < '2025-04-24 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-04-24 18:18:19] Production.INFO: count ==5347 [2025-04-24 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:18:05 - End Time 2025-04-24 18:18:05 [2025-04-24 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981394', 'tblTempUsageDetail_20' ) start [2025-04-24 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981394', 'tblTempUsageDetail_20' ) end [2025-04-24 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981394', 'tblTempVendorCDR_20' ) start [2025-04-24 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981394', 'tblTempVendorCDR_20' ) end [2025-04-24 18:18:21] Production.INFO: ProcessCDR(1,14981394,1,1,2) [2025-04-24 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981394', 'tblTempUsageDetail_20' ) start [2025-04-24 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981394', 'tblTempUsageDetail_20' ) end [2025-04-24 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:18:27] Production.INFO: ==840== Releasing lock... [2025-04-24 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:18:27] Production.INFO: 68 MB #Memory Used# [2025-04-24 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:19:05 [end_date_ymd] => 2025-04-24 18:19:05 [RateCDR] => 1 ) [2025-04-24 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:19:05' and `end` < '2025-04-24 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:19:18] Production.INFO: count ==5330 [2025-04-24 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:19:05 - End Time 2025-04-24 18:19:05 [2025-04-24 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981399', 'tblTempUsageDetail_20' ) start [2025-04-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981399', 'tblTempUsageDetail_20' ) end [2025-04-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981399', 'tblTempVendorCDR_20' ) start [2025-04-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981399', 'tblTempVendorCDR_20' ) end [2025-04-24 18:19:21] Production.INFO: ProcessCDR(1,14981399,1,1,2) [2025-04-24 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981399', 'tblTempUsageDetail_20' ) start [2025-04-24 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981399', 'tblTempUsageDetail_20' ) end [2025-04-24 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:19:26] Production.INFO: ==911== Releasing lock... [2025-04-24 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:19:26] Production.INFO: 68 MB #Memory Used# [2025-04-24 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:20:07 [end_date_ymd] => 2025-04-24 18:20:07 [RateCDR] => 1 ) [2025-04-24 18:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:20:07' and `end` < '2025-04-24 18:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:20:20] Production.INFO: count ==5315 [2025-04-24 18:20:22] Production.ERROR: pbx CDR StartTime 2025-04-24 15:20:07 - End Time 2025-04-24 18:20:07 [2025-04-24 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981405', 'tblTempUsageDetail_20' ) start [2025-04-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981405', 'tblTempUsageDetail_20' ) end [2025-04-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981405', 'tblTempVendorCDR_20' ) start [2025-04-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981405', 'tblTempVendorCDR_20' ) end [2025-04-24 18:20:23] Production.INFO: ProcessCDR(1,14981405,1,1,2) [2025-04-24 18:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981405', 'tblTempUsageDetail_20' ) start [2025-04-24 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981405', 'tblTempUsageDetail_20' ) end [2025-04-24 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:20:28] Production.INFO: ==988== Releasing lock... [2025-04-24 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:20:28] Production.INFO: 68 MB #Memory Used# [2025-04-24 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:21:05 [end_date_ymd] => 2025-04-24 18:21:05 [RateCDR] => 1 ) [2025-04-24 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:21:05' and `end` < '2025-04-24 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:21:19] Production.INFO: count ==5306 [2025-04-24 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:21:05 - End Time 2025-04-24 18:21:05 [2025-04-24 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981410', 'tblTempUsageDetail_20' ) start [2025-04-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981410', 'tblTempUsageDetail_20' ) end [2025-04-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981410', 'tblTempVendorCDR_20' ) start [2025-04-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981410', 'tblTempVendorCDR_20' ) end [2025-04-24 18:21:21] Production.INFO: ProcessCDR(1,14981410,1,1,2) [2025-04-24 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981410', 'tblTempUsageDetail_20' ) start [2025-04-24 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981410', 'tblTempUsageDetail_20' ) end [2025-04-24 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:21:26] Production.INFO: ==1067== Releasing lock... [2025-04-24 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:21:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:22:05 [end_date_ymd] => 2025-04-24 18:22:05 [RateCDR] => 1 ) [2025-04-24 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:22:05' and `end` < '2025-04-24 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:22:19] Production.INFO: count ==5305 [2025-04-24 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:22:05 - End Time 2025-04-24 18:22:05 [2025-04-24 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981415', 'tblTempUsageDetail_20' ) start [2025-04-24 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981415', 'tblTempUsageDetail_20' ) end [2025-04-24 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981415', 'tblTempVendorCDR_20' ) start [2025-04-24 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981415', 'tblTempVendorCDR_20' ) end [2025-04-24 18:22:22] Production.INFO: ProcessCDR(1,14981415,1,1,2) [2025-04-24 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981415', 'tblTempUsageDetail_20' ) start [2025-04-24 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981415', 'tblTempUsageDetail_20' ) end [2025-04-24 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:22:27] Production.INFO: ==1145== Releasing lock... [2025-04-24 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:22:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:23:04 [end_date_ymd] => 2025-04-24 18:23:04 [RateCDR] => 1 ) [2025-04-24 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:23:04' and `end` < '2025-04-24 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:23:18] Production.INFO: count ==5286 [2025-04-24 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:23:04 - End Time 2025-04-24 18:23:04 [2025-04-24 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981420', 'tblTempUsageDetail_20' ) start [2025-04-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981420', 'tblTempUsageDetail_20' ) end [2025-04-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981420', 'tblTempVendorCDR_20' ) start [2025-04-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981420', 'tblTempVendorCDR_20' ) end [2025-04-24 18:23:21] Production.INFO: ProcessCDR(1,14981420,1,1,2) [2025-04-24 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981420', 'tblTempUsageDetail_20' ) start [2025-04-24 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981420', 'tblTempUsageDetail_20' ) end [2025-04-24 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:23:25] Production.INFO: ==1221== Releasing lock... [2025-04-24 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:23:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:24:05 [end_date_ymd] => 2025-04-24 18:24:05 [RateCDR] => 1 ) [2025-04-24 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:24:05' and `end` < '2025-04-24 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:24:19] Production.INFO: count ==5300 [2025-04-24 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:24:05 - End Time 2025-04-24 18:24:05 [2025-04-24 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981425', 'tblTempUsageDetail_20' ) start [2025-04-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981425', 'tblTempUsageDetail_20' ) end [2025-04-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981425', 'tblTempVendorCDR_20' ) start [2025-04-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981425', 'tblTempVendorCDR_20' ) end [2025-04-24 18:24:21] Production.INFO: ProcessCDR(1,14981425,1,1,2) [2025-04-24 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981425', 'tblTempUsageDetail_20' ) start [2025-04-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981425', 'tblTempUsageDetail_20' ) end [2025-04-24 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:24:26] Production.INFO: ==1308== Releasing lock... [2025-04-24 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:24:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:25:05 [end_date_ymd] => 2025-04-24 18:25:05 [RateCDR] => 1 ) [2025-04-24 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:25:05' and `end` < '2025-04-24 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:25:18] Production.INFO: count ==5291 [2025-04-24 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:25:05 - End Time 2025-04-24 18:25:05 [2025-04-24 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981430', 'tblTempUsageDetail_20' ) start [2025-04-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981430', 'tblTempUsageDetail_20' ) end [2025-04-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981430', 'tblTempVendorCDR_20' ) start [2025-04-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981430', 'tblTempVendorCDR_20' ) end [2025-04-24 18:25:21] Production.INFO: ProcessCDR(1,14981430,1,1,2) [2025-04-24 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981430', 'tblTempUsageDetail_20' ) start [2025-04-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981430', 'tblTempUsageDetail_20' ) end [2025-04-24 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:25:26] Production.INFO: ==1379== Releasing lock... [2025-04-24 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:25:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-24 18:26:23] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:26:23 [end_date_ymd] => 2025-04-24 18:26:23 [RateCDR] => 1 ) [2025-04-24 18:26:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:26:23' and `end` < '2025-04-24 18:26:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:26:37] Production.INFO: count ==5270 [2025-04-24 18:27:48] Production.ERROR: pbx CDR StartTime 2025-04-24 15:26:23 - End Time 2025-04-24 18:26:23 [2025-04-24 18:27:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:27:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981435', 'tblTempUsageDetail_20' ) start [2025-04-24 18:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981435', 'tblTempUsageDetail_20' ) end [2025-04-24 18:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981435', 'tblTempVendorCDR_20' ) start [2025-04-24 18:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981435', 'tblTempVendorCDR_20' ) end [2025-04-24 18:27:54] Production.INFO: ProcessCDR(1,14981435,1,1,2) [2025-04-24 18:27:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:28:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:28:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981435', 'tblTempUsageDetail_20' ) start [2025-04-24 18:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981435', 'tblTempUsageDetail_20' ) end [2025-04-24 18:28:42] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:28:42] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:28:43] Production.INFO: ==1455== Releasing lock... [2025-04-24 18:28:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:28:43] Production.INFO: 67.5 MB #Memory Used# [2025-04-24 18:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:29:23 [end_date_ymd] => 2025-04-24 18:29:23 [RateCDR] => 1 ) [2025-04-24 18:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:29:23' and `end` < '2025-04-24 18:29:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:29:36] Production.INFO: count ==5248 [2025-04-24 18:30:23] Production.ERROR: pbx CDR StartTime 2025-04-24 15:29:23 - End Time 2025-04-24 18:29:23 [2025-04-24 18:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981446', 'tblTempUsageDetail_20' ) start [2025-04-24 18:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981446', 'tblTempUsageDetail_20' ) end [2025-04-24 18:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981446', 'tblTempVendorCDR_20' ) start [2025-04-24 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981446', 'tblTempVendorCDR_20' ) end [2025-04-24 18:30:29] Production.INFO: ProcessCDR(1,14981446,1,1,2) [2025-04-24 18:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:30:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:30:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981446', 'tblTempUsageDetail_20' ) start [2025-04-24 18:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981446', 'tblTempUsageDetail_20' ) end [2025-04-24 18:31:39] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:31:40] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:31:44] Production.INFO: ==1694== Releasing lock... [2025-04-24 18:31:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:31:44] Production.INFO: 67.25 MB #Memory Used# [2025-04-24 18:32:27] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:32:27 [end_date_ymd] => 2025-04-24 18:32:27 [RateCDR] => 1 ) [2025-04-24 18:32:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:32:27' and `end` < '2025-04-24 18:32:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:32:41] Production.INFO: count ==5176 [2025-04-24 18:33:37] Production.ERROR: pbx CDR StartTime 2025-04-24 15:32:27 - End Time 2025-04-24 18:32:27 [2025-04-24 18:33:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981458', 'tblTempUsageDetail_20' ) start [2025-04-24 18:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981458', 'tblTempUsageDetail_20' ) end [2025-04-24 18:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981458', 'tblTempVendorCDR_20' ) start [2025-04-24 18:33:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981458', 'tblTempVendorCDR_20' ) end [2025-04-24 18:33:44] Production.INFO: ProcessCDR(1,14981458,1,1,2) [2025-04-24 18:33:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:33:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:33:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981458', 'tblTempUsageDetail_20' ) start [2025-04-24 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981458', 'tblTempUsageDetail_20' ) end [2025-04-24 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:34:21] Production.INFO: ==1941== Releasing lock... [2025-04-24 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:34:21] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:35:06 [end_date_ymd] => 2025-04-24 18:35:06 [RateCDR] => 1 ) [2025-04-24 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:35:06' and `end` < '2025-04-24 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:35:19] Production.INFO: count ==5184 [2025-04-24 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:35:06 - End Time 2025-04-24 18:35:06 [2025-04-24 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981470', 'tblTempUsageDetail_20' ) start [2025-04-24 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981470', 'tblTempUsageDetail_20' ) end [2025-04-24 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981470', 'tblTempVendorCDR_20' ) start [2025-04-24 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981470', 'tblTempVendorCDR_20' ) end [2025-04-24 18:35:21] Production.INFO: ProcessCDR(1,14981470,1,1,2) [2025-04-24 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981470', 'tblTempUsageDetail_20' ) start [2025-04-24 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981470', 'tblTempUsageDetail_20' ) end [2025-04-24 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:35:25] Production.INFO: ==2157== Releasing lock... [2025-04-24 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:35:25] Production.INFO: 67 MB #Memory Used# [2025-04-24 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:36:05 [end_date_ymd] => 2025-04-24 18:36:05 [RateCDR] => 1 ) [2025-04-24 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:36:05' and `end` < '2025-04-24 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:36:19] Production.INFO: count ==5168 [2025-04-24 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:36:05 - End Time 2025-04-24 18:36:05 [2025-04-24 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981475', 'tblTempUsageDetail_20' ) start [2025-04-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981475', 'tblTempUsageDetail_20' ) end [2025-04-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981475', 'tblTempVendorCDR_20' ) start [2025-04-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981475', 'tblTempVendorCDR_20' ) end [2025-04-24 18:36:21] Production.INFO: ProcessCDR(1,14981475,1,1,2) [2025-04-24 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981475', 'tblTempUsageDetail_20' ) start [2025-04-24 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981475', 'tblTempUsageDetail_20' ) end [2025-04-24 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:36:24] Production.INFO: ==2229== Releasing lock... [2025-04-24 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:36:24] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:37:05 [end_date_ymd] => 2025-04-24 18:37:05 [RateCDR] => 1 ) [2025-04-24 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:37:05' and `end` < '2025-04-24 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:37:19] Production.INFO: count ==5157 [2025-04-24 18:37:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:37:05 - End Time 2025-04-24 18:37:05 [2025-04-24 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981480', 'tblTempUsageDetail_20' ) start [2025-04-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981480', 'tblTempUsageDetail_20' ) end [2025-04-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981480', 'tblTempVendorCDR_20' ) start [2025-04-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981480', 'tblTempVendorCDR_20' ) end [2025-04-24 18:37:21] Production.INFO: ProcessCDR(1,14981480,1,1,2) [2025-04-24 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981480', 'tblTempUsageDetail_20' ) start [2025-04-24 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981480', 'tblTempUsageDetail_20' ) end [2025-04-24 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:37:25] Production.INFO: ==2303== Releasing lock... [2025-04-24 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:37:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:38:05 [end_date_ymd] => 2025-04-24 18:38:05 [RateCDR] => 1 ) [2025-04-24 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:38:05' and `end` < '2025-04-24 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:38:18] Production.INFO: count ==5150 [2025-04-24 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:38:05 - End Time 2025-04-24 18:38:05 [2025-04-24 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981485', 'tblTempUsageDetail_20' ) start [2025-04-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981485', 'tblTempUsageDetail_20' ) end [2025-04-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981485', 'tblTempVendorCDR_20' ) start [2025-04-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981485', 'tblTempVendorCDR_20' ) end [2025-04-24 18:38:21] Production.INFO: ProcessCDR(1,14981485,1,1,2) [2025-04-24 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981485', 'tblTempUsageDetail_20' ) start [2025-04-24 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981485', 'tblTempUsageDetail_20' ) end [2025-04-24 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:38:24] Production.INFO: ==2374== Releasing lock... [2025-04-24 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:38:24] Production.INFO: 66.75 MB #Memory Used# [2025-04-24 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:39:05 [end_date_ymd] => 2025-04-24 18:39:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:39:05' and `end` < '2025-04-24 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:39:18] Production.INFO: count ==5144 [2025-04-24 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:39:05 - End Time 2025-04-24 18:39:05 [2025-04-24 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981490', 'tblTempUsageDetail_20' ) start [2025-04-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981490', 'tblTempUsageDetail_20' ) end [2025-04-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981490', 'tblTempVendorCDR_20' ) start [2025-04-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981490', 'tblTempVendorCDR_20' ) end [2025-04-24 18:39:21] Production.INFO: ProcessCDR(1,14981490,1,1,2) [2025-04-24 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981490', 'tblTempUsageDetail_20' ) start [2025-04-24 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981490', 'tblTempUsageDetail_20' ) end [2025-04-24 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:39:25] Production.INFO: ==2448== Releasing lock... [2025-04-24 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-04-24 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:40:06 [end_date_ymd] => 2025-04-24 18:40:06 [RateCDR] => 1 ) [2025-04-24 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:40:06' and `end` < '2025-04-24 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:40:19] Production.INFO: count ==5130 [2025-04-24 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:40:06 - End Time 2025-04-24 18:40:06 [2025-04-24 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981495', 'tblTempUsageDetail_20' ) start [2025-04-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981495', 'tblTempUsageDetail_20' ) end [2025-04-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981495', 'tblTempVendorCDR_20' ) start [2025-04-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981495', 'tblTempVendorCDR_20' ) end [2025-04-24 18:40:21] Production.INFO: ProcessCDR(1,14981495,1,1,2) [2025-04-24 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981495', 'tblTempUsageDetail_20' ) start [2025-04-24 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981495', 'tblTempUsageDetail_20' ) end [2025-04-24 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:40:25] Production.INFO: ==2520== Releasing lock... [2025-04-24 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:40:25] Production.INFO: 66.5 MB #Memory Used# [2025-04-24 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:41:05 [end_date_ymd] => 2025-04-24 18:41:05 [RateCDR] => 1 ) [2025-04-24 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:41:05' and `end` < '2025-04-24 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:41:19] Production.INFO: count ==5084 [2025-04-24 18:41:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:41:05 - End Time 2025-04-24 18:41:05 [2025-04-24 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981501', 'tblTempUsageDetail_20' ) start [2025-04-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981501', 'tblTempUsageDetail_20' ) end [2025-04-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981501', 'tblTempVendorCDR_20' ) start [2025-04-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981501', 'tblTempVendorCDR_20' ) end [2025-04-24 18:41:21] Production.INFO: ProcessCDR(1,14981501,1,1,2) [2025-04-24 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981501', 'tblTempUsageDetail_20' ) start [2025-04-24 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981501', 'tblTempUsageDetail_20' ) end [2025-04-24 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:41:25] Production.INFO: ==2596== Releasing lock... [2025-04-24 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:41:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-24 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:42:05 [end_date_ymd] => 2025-04-24 18:42:05 [RateCDR] => 1 ) [2025-04-24 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:42:05' and `end` < '2025-04-24 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:42:19] Production.INFO: count ==5067 [2025-04-24 18:42:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:42:05 - End Time 2025-04-24 18:42:05 [2025-04-24 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981506', 'tblTempUsageDetail_20' ) start [2025-04-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981506', 'tblTempUsageDetail_20' ) end [2025-04-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981506', 'tblTempVendorCDR_20' ) start [2025-04-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981506', 'tblTempVendorCDR_20' ) end [2025-04-24 18:42:21] Production.INFO: ProcessCDR(1,14981506,1,1,2) [2025-04-24 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981506', 'tblTempUsageDetail_20' ) start [2025-04-24 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981506', 'tblTempUsageDetail_20' ) end [2025-04-24 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:42:26] Production.INFO: ==2670== Releasing lock... [2025-04-24 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:42:26] Production.INFO: 66 MB #Memory Used# [2025-04-24 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:43:05 [end_date_ymd] => 2025-04-24 18:43:05 [RateCDR] => 1 ) [2025-04-24 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:43:05' and `end` < '2025-04-24 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:43:19] Production.INFO: count ==5055 [2025-04-24 18:43:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:43:05 - End Time 2025-04-24 18:43:05 [2025-04-24 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981511', 'tblTempUsageDetail_20' ) start [2025-04-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981511', 'tblTempUsageDetail_20' ) end [2025-04-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981511', 'tblTempVendorCDR_20' ) start [2025-04-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981511', 'tblTempVendorCDR_20' ) end [2025-04-24 18:43:21] Production.INFO: ProcessCDR(1,14981511,1,1,2) [2025-04-24 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981511', 'tblTempUsageDetail_20' ) start [2025-04-24 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981511', 'tblTempUsageDetail_20' ) end [2025-04-24 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:43:25] Production.INFO: ==2750== Releasing lock... [2025-04-24 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:43:25] Production.INFO: 66 MB #Memory Used# [2025-04-24 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:44:06 [end_date_ymd] => 2025-04-24 18:44:06 [RateCDR] => 1 ) [2025-04-24 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:44:06' and `end` < '2025-04-24 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:44:19] Production.INFO: count ==5036 [2025-04-24 18:44:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:44:06 - End Time 2025-04-24 18:44:06 [2025-04-24 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981516', 'tblTempUsageDetail_20' ) start [2025-04-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981516', 'tblTempUsageDetail_20' ) end [2025-04-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981516', 'tblTempVendorCDR_20' ) start [2025-04-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981516', 'tblTempVendorCDR_20' ) end [2025-04-24 18:44:21] Production.INFO: ProcessCDR(1,14981516,1,1,2) [2025-04-24 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981516', 'tblTempUsageDetail_20' ) start [2025-04-24 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981516', 'tblTempUsageDetail_20' ) end [2025-04-24 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:44:26] Production.INFO: ==2821== Releasing lock... [2025-04-24 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-24 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:45:05 [end_date_ymd] => 2025-04-24 18:45:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 15:45:05' and `end` < '2025-04-24 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-04-24 18:45:18] Production.INFO: count ==5024 [2025-04-24 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:45:05 - End Time 2025-04-24 18:45:05 [2025-04-24 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981521', 'tblTempUsageDetail_20' ) start [2025-04-24 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981521', 'tblTempUsageDetail_20' ) end [2025-04-24 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981521', 'tblTempVendorCDR_20' ) start [2025-04-24 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981521', 'tblTempVendorCDR_20' ) end [2025-04-24 18:45:20] Production.INFO: ProcessCDR(1,14981521,1,1,2) [2025-04-24 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981521', 'tblTempUsageDetail_20' ) start [2025-04-24 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981521', 'tblTempUsageDetail_20' ) end [2025-04-24 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:45:25] Production.INFO: ==2895== Releasing lock... [2025-04-24 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:45:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-24 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:46:05 [end_date_ymd] => 2025-04-24 18:46:05 [RateCDR] => 1 ) [2025-04-24 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:46:05' and `end` < '2025-04-24 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:46:19] Production.INFO: count ==4995 [2025-04-24 18:46:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:46:05 - End Time 2025-04-24 18:46:05 [2025-04-24 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981526', 'tblTempUsageDetail_20' ) start [2025-04-24 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981526', 'tblTempUsageDetail_20' ) end [2025-04-24 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981526', 'tblTempVendorCDR_20' ) start [2025-04-24 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981526', 'tblTempVendorCDR_20' ) end [2025-04-24 18:46:22] Production.INFO: ProcessCDR(1,14981526,1,1,2) [2025-04-24 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981526', 'tblTempUsageDetail_20' ) start [2025-04-24 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981526', 'tblTempUsageDetail_20' ) end [2025-04-24 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:46:27] Production.INFO: ==2965== Releasing lock... [2025-04-24 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:46:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-24 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:47:05 [end_date_ymd] => 2025-04-24 18:47:05 [RateCDR] => 1 ) [2025-04-24 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:47:05' and `end` < '2025-04-24 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:47:18] Production.INFO: count ==4968 [2025-04-24 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:47:05 - End Time 2025-04-24 18:47:05 [2025-04-24 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981531', 'tblTempUsageDetail_20' ) start [2025-04-24 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981531', 'tblTempUsageDetail_20' ) end [2025-04-24 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981531', 'tblTempVendorCDR_20' ) start [2025-04-24 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981531', 'tblTempVendorCDR_20' ) end [2025-04-24 18:47:20] Production.INFO: ProcessCDR(1,14981531,1,1,2) [2025-04-24 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981531', 'tblTempUsageDetail_20' ) start [2025-04-24 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981531', 'tblTempUsageDetail_20' ) end [2025-04-24 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:47:26] Production.INFO: ==3080== Releasing lock... [2025-04-24 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:47:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-24 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:48:05 [end_date_ymd] => 2025-04-24 18:48:05 [RateCDR] => 1 ) [2025-04-24 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:48:05' and `end` < '2025-04-24 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:48:18] Production.INFO: count ==4954 [2025-04-24 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:48:05 - End Time 2025-04-24 18:48:05 [2025-04-24 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981536', 'tblTempUsageDetail_20' ) start [2025-04-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981536', 'tblTempUsageDetail_20' ) end [2025-04-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981536', 'tblTempVendorCDR_20' ) start [2025-04-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981536', 'tblTempVendorCDR_20' ) end [2025-04-24 18:48:21] Production.INFO: ProcessCDR(1,14981536,1,1,2) [2025-04-24 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981536', 'tblTempUsageDetail_20' ) start [2025-04-24 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981536', 'tblTempUsageDetail_20' ) end [2025-04-24 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:48:26] Production.INFO: ==3158== Releasing lock... [2025-04-24 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:48:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-24 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:49:05 [end_date_ymd] => 2025-04-24 18:49:05 [RateCDR] => 1 ) [2025-04-24 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:49:05' and `end` < '2025-04-24 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:49:18] Production.INFO: count ==4935 [2025-04-24 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:49:05 - End Time 2025-04-24 18:49:05 [2025-04-24 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981541', 'tblTempUsageDetail_20' ) start [2025-04-24 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981541', 'tblTempUsageDetail_20' ) end [2025-04-24 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981541', 'tblTempVendorCDR_20' ) start [2025-04-24 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981541', 'tblTempVendorCDR_20' ) end [2025-04-24 18:49:21] Production.INFO: ProcessCDR(1,14981541,1,1,2) [2025-04-24 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981541', 'tblTempUsageDetail_20' ) start [2025-04-24 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981541', 'tblTempUsageDetail_20' ) end [2025-04-24 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:49:26] Production.INFO: ==3233== Releasing lock... [2025-04-24 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:49:26] Production.INFO: 65 MB #Memory Used# [2025-04-24 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:50:06 [end_date_ymd] => 2025-04-24 18:50:06 [RateCDR] => 1 ) [2025-04-24 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:50:06' and `end` < '2025-04-24 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:50:19] Production.INFO: count ==4891 [2025-04-24 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:50:06 - End Time 2025-04-24 18:50:06 [2025-04-24 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981546', 'tblTempUsageDetail_20' ) start [2025-04-24 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981546', 'tblTempUsageDetail_20' ) end [2025-04-24 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981546', 'tblTempVendorCDR_20' ) start [2025-04-24 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981546', 'tblTempVendorCDR_20' ) end [2025-04-24 18:50:22] Production.INFO: ProcessCDR(1,14981546,1,1,2) [2025-04-24 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981546', 'tblTempUsageDetail_20' ) start [2025-04-24 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981546', 'tblTempUsageDetail_20' ) end [2025-04-24 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:50:25] Production.INFO: ==3307== Releasing lock... [2025-04-24 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:50:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-24 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:51:05 [end_date_ymd] => 2025-04-24 18:51:05 [RateCDR] => 1 ) [2025-04-24 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:51:05' and `end` < '2025-04-24 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:51:18] Production.INFO: count ==4795 [2025-04-24 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:51:05 - End Time 2025-04-24 18:51:05 [2025-04-24 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981552', 'tblTempUsageDetail_20' ) start [2025-04-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981552', 'tblTempUsageDetail_20' ) end [2025-04-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981552', 'tblTempVendorCDR_20' ) start [2025-04-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981552', 'tblTempVendorCDR_20' ) end [2025-04-24 18:51:20] Production.INFO: ProcessCDR(1,14981552,1,1,2) [2025-04-24 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981552', 'tblTempUsageDetail_20' ) start [2025-04-24 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981552', 'tblTempUsageDetail_20' ) end [2025-04-24 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:51:26] Production.INFO: ==3409== Releasing lock... [2025-04-24 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:51:26] Production.INFO: 64 MB #Memory Used# [2025-04-24 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:52:05 [end_date_ymd] => 2025-04-24 18:52:05 [RateCDR] => 1 ) [2025-04-24 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:52:05' and `end` < '2025-04-24 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:52:18] Production.INFO: count ==4745 [2025-04-24 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:52:05 - End Time 2025-04-24 18:52:05 [2025-04-24 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981557', 'tblTempUsageDetail_20' ) start [2025-04-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981557', 'tblTempUsageDetail_20' ) end [2025-04-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981557', 'tblTempVendorCDR_20' ) start [2025-04-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981557', 'tblTempVendorCDR_20' ) end [2025-04-24 18:52:20] Production.INFO: ProcessCDR(1,14981557,1,1,2) [2025-04-24 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981557', 'tblTempUsageDetail_20' ) start [2025-04-24 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981557', 'tblTempUsageDetail_20' ) end [2025-04-24 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:52:25] Production.INFO: ==3487== Releasing lock... [2025-04-24 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:52:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-24 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:53:05 [end_date_ymd] => 2025-04-24 18:53:05 [RateCDR] => 1 ) [2025-04-24 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:53:05' and `end` < '2025-04-24 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:53:18] Production.INFO: count ==4719 [2025-04-24 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:53:05 - End Time 2025-04-24 18:53:05 [2025-04-24 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981562', 'tblTempUsageDetail_20' ) start [2025-04-24 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981562', 'tblTempUsageDetail_20' ) end [2025-04-24 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981562', 'tblTempVendorCDR_20' ) start [2025-04-24 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981562', 'tblTempVendorCDR_20' ) end [2025-04-24 18:53:20] Production.INFO: ProcessCDR(1,14981562,1,1,2) [2025-04-24 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981562', 'tblTempUsageDetail_20' ) start [2025-04-24 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981562', 'tblTempUsageDetail_20' ) end [2025-04-24 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:53:25] Production.INFO: ==3561== Releasing lock... [2025-04-24 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:53:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-24 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:54:04 [end_date_ymd] => 2025-04-24 18:54:04 [RateCDR] => 1 ) [2025-04-24 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:54:04' and `end` < '2025-04-24 18:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:54:18] Production.INFO: count ==4698 [2025-04-24 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:54:04 - End Time 2025-04-24 18:54:04 [2025-04-24 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981567', 'tblTempUsageDetail_20' ) start [2025-04-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981567', 'tblTempUsageDetail_20' ) end [2025-04-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981567', 'tblTempVendorCDR_20' ) start [2025-04-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981567', 'tblTempVendorCDR_20' ) end [2025-04-24 18:54:20] Production.INFO: ProcessCDR(1,14981567,1,1,2) [2025-04-24 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981567', 'tblTempUsageDetail_20' ) start [2025-04-24 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981567', 'tblTempUsageDetail_20' ) end [2025-04-24 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:54:25] Production.INFO: ==3634== Releasing lock... [2025-04-24 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:54:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-24 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:55:06 [end_date_ymd] => 2025-04-24 18:55:06 [RateCDR] => 1 ) [2025-04-24 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:55:06' and `end` < '2025-04-24 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:55:19] Production.INFO: count ==4672 [2025-04-24 18:55:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:55:06 - End Time 2025-04-24 18:55:06 [2025-04-24 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981572', 'tblTempUsageDetail_20' ) start [2025-04-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981572', 'tblTempUsageDetail_20' ) end [2025-04-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981572', 'tblTempVendorCDR_20' ) start [2025-04-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981572', 'tblTempVendorCDR_20' ) end [2025-04-24 18:55:21] Production.INFO: ProcessCDR(1,14981572,1,1,2) [2025-04-24 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981572', 'tblTempUsageDetail_20' ) start [2025-04-24 18:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981572', 'tblTempUsageDetail_20' ) end [2025-04-24 18:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:55:27] Production.INFO: ==3708== Releasing lock... [2025-04-24 18:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:55:27] Production.INFO: 63 MB #Memory Used# [2025-04-24 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:56:05 [end_date_ymd] => 2025-04-24 18:56:05 [RateCDR] => 1 ) [2025-04-24 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:56:05' and `end` < '2025-04-24 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:56:19] Production.INFO: count ==4641 [2025-04-24 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:56:05 - End Time 2025-04-24 18:56:05 [2025-04-24 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981577', 'tblTempUsageDetail_20' ) start [2025-04-24 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981577', 'tblTempUsageDetail_20' ) end [2025-04-24 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981577', 'tblTempVendorCDR_20' ) start [2025-04-24 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981577', 'tblTempVendorCDR_20' ) end [2025-04-24 18:56:21] Production.INFO: ProcessCDR(1,14981577,1,1,2) [2025-04-24 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981577', 'tblTempUsageDetail_20' ) start [2025-04-24 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981577', 'tblTempUsageDetail_20' ) end [2025-04-24 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:56:26] Production.INFO: ==3777== Releasing lock... [2025-04-24 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-24 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:57:06 [end_date_ymd] => 2025-04-24 18:57:06 [RateCDR] => 1 ) [2025-04-24 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:57:06' and `end` < '2025-04-24 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:57:19] Production.INFO: count ==4628 [2025-04-24 18:57:21] Production.ERROR: pbx CDR StartTime 2025-04-24 15:57:06 - End Time 2025-04-24 18:57:06 [2025-04-24 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981582', 'tblTempUsageDetail_20' ) start [2025-04-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981582', 'tblTempUsageDetail_20' ) end [2025-04-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981582', 'tblTempVendorCDR_20' ) start [2025-04-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981582', 'tblTempVendorCDR_20' ) end [2025-04-24 18:57:21] Production.INFO: ProcessCDR(1,14981582,1,1,2) [2025-04-24 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981582', 'tblTempUsageDetail_20' ) start [2025-04-24 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981582', 'tblTempUsageDetail_20' ) end [2025-04-24 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:57:26] Production.INFO: ==3858== Releasing lock... [2025-04-24 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:57:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-24 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:58:05 [end_date_ymd] => 2025-04-24 18:58:05 [RateCDR] => 1 ) [2025-04-24 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:58:05' and `end` < '2025-04-24 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:58:18] Production.INFO: count ==4618 [2025-04-24 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:58:05 - End Time 2025-04-24 18:58:05 [2025-04-24 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981587', 'tblTempUsageDetail_20' ) start [2025-04-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981587', 'tblTempUsageDetail_20' ) end [2025-04-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981587', 'tblTempVendorCDR_20' ) start [2025-04-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981587', 'tblTempVendorCDR_20' ) end [2025-04-24 18:58:20] Production.INFO: ProcessCDR(1,14981587,1,1,2) [2025-04-24 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981587', 'tblTempUsageDetail_20' ) start [2025-04-24 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981587', 'tblTempUsageDetail_20' ) end [2025-04-24 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:58:25] Production.INFO: ==3938== Releasing lock... [2025-04-24 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:58:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-24 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 15:59:05 [end_date_ymd] => 2025-04-24 18:59:05 [RateCDR] => 1 ) [2025-04-24 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 15:59:05' and `end` < '2025-04-24 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 18:59:19] Production.INFO: count ==4606 [2025-04-24 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-24 15:59:05 - End Time 2025-04-24 18:59:05 [2025-04-24 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981592', 'tblTempUsageDetail_20' ) start [2025-04-24 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981592', 'tblTempUsageDetail_20' ) end [2025-04-24 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981592', 'tblTempVendorCDR_20' ) start [2025-04-24 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981592', 'tblTempVendorCDR_20' ) end [2025-04-24 18:59:21] Production.INFO: ProcessCDR(1,14981592,1,1,2) [2025-04-24 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981592', 'tblTempUsageDetail_20' ) start [2025-04-24 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981592', 'tblTempUsageDetail_20' ) end [2025-04-24 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 18:59:26] Production.INFO: ==4013== Releasing lock... [2025-04-24 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 18:59:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-24 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:00:05 [end_date_ymd] => 2025-04-24 19:00:05 [RateCDR] => 1 ) [2025-04-24 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:00:05' and `end` < '2025-04-24 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:00:18] Production.INFO: count ==4571 [2025-04-24 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:00:05 - End Time 2025-04-24 19:00:05 [2025-04-24 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981597', 'tblTempUsageDetail_20' ) start [2025-04-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981597', 'tblTempUsageDetail_20' ) end [2025-04-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981597', 'tblTempVendorCDR_20' ) start [2025-04-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981597', 'tblTempVendorCDR_20' ) end [2025-04-24 19:00:20] Production.INFO: ProcessCDR(1,14981597,1,1,2) [2025-04-24 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981597', 'tblTempUsageDetail_20' ) start [2025-04-24 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981597', 'tblTempUsageDetail_20' ) end [2025-04-24 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:00:25] Production.INFO: ==4088== Releasing lock... [2025-04-24 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:00:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-24 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:01:05 [end_date_ymd] => 2025-04-24 19:01:05 [RateCDR] => 1 ) [2025-04-24 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:01:05' and `end` < '2025-04-24 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:01:18] Production.INFO: count ==4496 [2025-04-24 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:01:05 - End Time 2025-04-24 19:01:05 [2025-04-24 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981603', 'tblTempUsageDetail_20' ) start [2025-04-24 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981603', 'tblTempUsageDetail_20' ) end [2025-04-24 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981603', 'tblTempVendorCDR_20' ) start [2025-04-24 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981603', 'tblTempVendorCDR_20' ) end [2025-04-24 19:01:20] Production.INFO: ProcessCDR(1,14981603,1,1,2) [2025-04-24 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981603', 'tblTempUsageDetail_20' ) start [2025-04-24 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981603', 'tblTempUsageDetail_20' ) end [2025-04-24 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:01:25] Production.INFO: ==4175== Releasing lock... [2025-04-24 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:01:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-24 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:02:05 [end_date_ymd] => 2025-04-24 19:02:05 [RateCDR] => 1 ) [2025-04-24 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:02:05' and `end` < '2025-04-24 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:02:19] Production.INFO: count ==4475 [2025-04-24 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:02:05 - End Time 2025-04-24 19:02:05 [2025-04-24 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981608', 'tblTempUsageDetail_20' ) start [2025-04-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981608', 'tblTempUsageDetail_20' ) end [2025-04-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981608', 'tblTempVendorCDR_20' ) start [2025-04-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981608', 'tblTempVendorCDR_20' ) end [2025-04-24 19:02:21] Production.INFO: ProcessCDR(1,14981608,1,1,2) [2025-04-24 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981608', 'tblTempUsageDetail_20' ) start [2025-04-24 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981608', 'tblTempUsageDetail_20' ) end [2025-04-24 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:02:26] Production.INFO: ==4328== Releasing lock... [2025-04-24 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:02:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-24 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:03:05 [end_date_ymd] => 2025-04-24 19:03:05 [RateCDR] => 1 ) [2025-04-24 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:03:05' and `end` < '2025-04-24 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:03:18] Production.INFO: count ==4468 [2025-04-24 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:03:05 - End Time 2025-04-24 19:03:05 [2025-04-24 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981613', 'tblTempUsageDetail_20' ) start [2025-04-24 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981613', 'tblTempUsageDetail_20' ) end [2025-04-24 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981613', 'tblTempVendorCDR_20' ) start [2025-04-24 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981613', 'tblTempVendorCDR_20' ) end [2025-04-24 19:03:20] Production.INFO: ProcessCDR(1,14981613,1,1,2) [2025-04-24 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981613', 'tblTempUsageDetail_20' ) start [2025-04-24 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981613', 'tblTempUsageDetail_20' ) end [2025-04-24 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:03:24] Production.INFO: ==4436== Releasing lock... [2025-04-24 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:03:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-24 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:04:05 [end_date_ymd] => 2025-04-24 19:04:05 [RateCDR] => 1 ) [2025-04-24 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:04:05' and `end` < '2025-04-24 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:04:18] Production.INFO: count ==4454 [2025-04-24 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:04:05 - End Time 2025-04-24 19:04:05 [2025-04-24 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981618', 'tblTempUsageDetail_20' ) start [2025-04-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981618', 'tblTempUsageDetail_20' ) end [2025-04-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981618', 'tblTempVendorCDR_20' ) start [2025-04-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981618', 'tblTempVendorCDR_20' ) end [2025-04-24 19:04:20] Production.INFO: ProcessCDR(1,14981618,1,1,2) [2025-04-24 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981618', 'tblTempUsageDetail_20' ) start [2025-04-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981618', 'tblTempUsageDetail_20' ) end [2025-04-24 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:04:25] Production.INFO: ==4512== Releasing lock... [2025-04-24 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:04:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-24 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:05:05 [end_date_ymd] => 2025-04-24 19:05:05 [RateCDR] => 1 ) [2025-04-24 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:05:05' and `end` < '2025-04-24 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:05:19] Production.INFO: count ==4448 [2025-04-24 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:05:05 - End Time 2025-04-24 19:05:05 [2025-04-24 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981623', 'tblTempUsageDetail_20' ) start [2025-04-24 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981623', 'tblTempUsageDetail_20' ) end [2025-04-24 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981623', 'tblTempVendorCDR_20' ) start [2025-04-24 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981623', 'tblTempVendorCDR_20' ) end [2025-04-24 19:05:21] Production.INFO: ProcessCDR(1,14981623,1,1,2) [2025-04-24 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981623', 'tblTempUsageDetail_20' ) start [2025-04-24 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981623', 'tblTempUsageDetail_20' ) end [2025-04-24 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:05:24] Production.INFO: ==4675== Releasing lock... [2025-04-24 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:05:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-24 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:06:05 [end_date_ymd] => 2025-04-24 19:06:05 [RateCDR] => 1 ) [2025-04-24 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:06:05' and `end` < '2025-04-24 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:06:19] Production.INFO: count ==4433 [2025-04-24 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:06:05 - End Time 2025-04-24 19:06:05 [2025-04-24 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981628', 'tblTempUsageDetail_20' ) start [2025-04-24 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981628', 'tblTempUsageDetail_20' ) end [2025-04-24 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981628', 'tblTempVendorCDR_20' ) start [2025-04-24 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981628', 'tblTempVendorCDR_20' ) end [2025-04-24 19:06:21] Production.INFO: ProcessCDR(1,14981628,1,1,2) [2025-04-24 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981628', 'tblTempUsageDetail_20' ) start [2025-04-24 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981628', 'tblTempUsageDetail_20' ) end [2025-04-24 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:06:24] Production.INFO: ==4745== Releasing lock... [2025-04-24 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:06:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-24 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:07:05 [end_date_ymd] => 2025-04-24 19:07:05 [RateCDR] => 1 ) [2025-04-24 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:07:05' and `end` < '2025-04-24 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:07:19] Production.INFO: count ==4434 [2025-04-24 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:07:05 - End Time 2025-04-24 19:07:05 [2025-04-24 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981633', 'tblTempUsageDetail_20' ) start [2025-04-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981633', 'tblTempUsageDetail_20' ) end [2025-04-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981633', 'tblTempVendorCDR_20' ) start [2025-04-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981633', 'tblTempVendorCDR_20' ) end [2025-04-24 19:07:21] Production.INFO: ProcessCDR(1,14981633,1,1,2) [2025-04-24 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981633', 'tblTempUsageDetail_20' ) start [2025-04-24 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981633', 'tblTempUsageDetail_20' ) end [2025-04-24 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:07:26] Production.INFO: ==4820== Releasing lock... [2025-04-24 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:07:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-24 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:08:06 [end_date_ymd] => 2025-04-24 19:08:06 [RateCDR] => 1 ) [2025-04-24 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:08:06' and `end` < '2025-04-24 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:08:19] Production.INFO: count ==4420 [2025-04-24 19:08:21] Production.ERROR: pbx CDR StartTime 2025-04-24 16:08:06 - End Time 2025-04-24 19:08:06 [2025-04-24 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981638', 'tblTempUsageDetail_20' ) start [2025-04-24 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981638', 'tblTempUsageDetail_20' ) end [2025-04-24 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981638', 'tblTempVendorCDR_20' ) start [2025-04-24 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981638', 'tblTempVendorCDR_20' ) end [2025-04-24 19:08:21] Production.INFO: ProcessCDR(1,14981638,1,1,2) [2025-04-24 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981638', 'tblTempUsageDetail_20' ) start [2025-04-24 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981638', 'tblTempUsageDetail_20' ) end [2025-04-24 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:08:26] Production.INFO: ==4936== Releasing lock... [2025-04-24 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:08:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-24 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:09:04 [end_date_ymd] => 2025-04-24 19:09:04 [RateCDR] => 1 ) [2025-04-24 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:09:04' and `end` < '2025-04-24 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:09:18] Production.INFO: count ==4400 [2025-04-24 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:09:04 - End Time 2025-04-24 19:09:04 [2025-04-24 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981643', 'tblTempUsageDetail_20' ) start [2025-04-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981643', 'tblTempUsageDetail_20' ) end [2025-04-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981643', 'tblTempVendorCDR_20' ) start [2025-04-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981643', 'tblTempVendorCDR_20' ) end [2025-04-24 19:09:20] Production.INFO: ProcessCDR(1,14981643,1,1,2) [2025-04-24 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981643', 'tblTempUsageDetail_20' ) start [2025-04-24 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981643', 'tblTempUsageDetail_20' ) end [2025-04-24 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:09:23] Production.INFO: ==5047== Releasing lock... [2025-04-24 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:09:23] Production.INFO: 61 MB #Memory Used# [2025-04-24 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:10:06 [end_date_ymd] => 2025-04-24 19:10:06 [RateCDR] => 1 ) [2025-04-24 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:10:06' and `end` < '2025-04-24 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:10:19] Production.INFO: count ==4389 [2025-04-24 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-24 16:10:06 - End Time 2025-04-24 19:10:06 [2025-04-24 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981649', 'tblTempUsageDetail_20' ) start [2025-04-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981649', 'tblTempUsageDetail_20' ) end [2025-04-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981649', 'tblTempVendorCDR_20' ) start [2025-04-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981649', 'tblTempVendorCDR_20' ) end [2025-04-24 19:10:21] Production.INFO: ProcessCDR(1,14981649,1,1,2) [2025-04-24 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981649', 'tblTempUsageDetail_20' ) start [2025-04-24 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981649', 'tblTempUsageDetail_20' ) end [2025-04-24 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:10:26] Production.INFO: ==5126== Releasing lock... [2025-04-24 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:10:26] Production.INFO: 61 MB #Memory Used# [2025-04-24 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:11:04 [end_date_ymd] => 2025-04-24 19:11:04 [RateCDR] => 1 ) [2025-04-24 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:11:04' and `end` < '2025-04-24 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:11:18] Production.INFO: count ==4385 [2025-04-24 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:11:04 - End Time 2025-04-24 19:11:04 [2025-04-24 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981654', 'tblTempUsageDetail_20' ) start [2025-04-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981654', 'tblTempUsageDetail_20' ) end [2025-04-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981654', 'tblTempVendorCDR_20' ) start [2025-04-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981654', 'tblTempVendorCDR_20' ) end [2025-04-24 19:11:20] Production.INFO: ProcessCDR(1,14981654,1,1,2) [2025-04-24 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981654', 'tblTempUsageDetail_20' ) start [2025-04-24 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981654', 'tblTempUsageDetail_20' ) end [2025-04-24 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:11:23] Production.INFO: ==5198== Releasing lock... [2025-04-24 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:11:23] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:12:05 [end_date_ymd] => 2025-04-24 19:12:05 [RateCDR] => 1 ) [2025-04-24 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:12:05' and `end` < '2025-04-24 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:12:18] Production.INFO: count ==4379 [2025-04-24 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:12:05 - End Time 2025-04-24 19:12:05 [2025-04-24 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981659', 'tblTempUsageDetail_20' ) start [2025-04-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981659', 'tblTempUsageDetail_20' ) end [2025-04-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981659', 'tblTempVendorCDR_20' ) start [2025-04-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981659', 'tblTempVendorCDR_20' ) end [2025-04-24 19:12:20] Production.INFO: ProcessCDR(1,14981659,1,1,2) [2025-04-24 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981659', 'tblTempUsageDetail_20' ) start [2025-04-24 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981659', 'tblTempUsageDetail_20' ) end [2025-04-24 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:12:25] Production.INFO: ==5352== Releasing lock... [2025-04-24 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:12:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:13:05 [end_date_ymd] => 2025-04-24 19:13:05 [RateCDR] => 1 ) [2025-04-24 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:13:05' and `end` < '2025-04-24 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:13:18] Production.INFO: count ==4368 [2025-04-24 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:13:05 - End Time 2025-04-24 19:13:05 [2025-04-24 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981664', 'tblTempUsageDetail_20' ) start [2025-04-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981664', 'tblTempUsageDetail_20' ) end [2025-04-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981664', 'tblTempVendorCDR_20' ) start [2025-04-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981664', 'tblTempVendorCDR_20' ) end [2025-04-24 19:13:20] Production.INFO: ProcessCDR(1,14981664,1,1,2) [2025-04-24 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981664', 'tblTempUsageDetail_20' ) start [2025-04-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981664', 'tblTempUsageDetail_20' ) end [2025-04-24 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:13:23] Production.INFO: ==5423== Releasing lock... [2025-04-24 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:13:23] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:14:05 [end_date_ymd] => 2025-04-24 19:14:05 [RateCDR] => 1 ) [2025-04-24 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:14:05' and `end` < '2025-04-24 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:14:18] Production.INFO: count ==4364 [2025-04-24 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:14:05 - End Time 2025-04-24 19:14:05 [2025-04-24 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981669', 'tblTempUsageDetail_20' ) start [2025-04-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981669', 'tblTempUsageDetail_20' ) end [2025-04-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981669', 'tblTempVendorCDR_20' ) start [2025-04-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981669', 'tblTempVendorCDR_20' ) end [2025-04-24 19:14:20] Production.INFO: ProcessCDR(1,14981669,1,1,2) [2025-04-24 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981669', 'tblTempUsageDetail_20' ) start [2025-04-24 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981669', 'tblTempUsageDetail_20' ) end [2025-04-24 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:14:23] Production.INFO: ==5494== Releasing lock... [2025-04-24 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:14:23] Production.INFO: 60.75 MB #Memory Used# [2025-04-24 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:15:05 [end_date_ymd] => 2025-04-24 19:15:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:15:05' and `end` < '2025-04-24 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-04-24 19:15:18] Production.INFO: count ==4344 [2025-04-24 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:15:05 - End Time 2025-04-24 19:15:05 [2025-04-24 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981674', 'tblTempUsageDetail_20' ) start [2025-04-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981674', 'tblTempUsageDetail_20' ) end [2025-04-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981674', 'tblTempVendorCDR_20' ) start [2025-04-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981674', 'tblTempVendorCDR_20' ) end [2025-04-24 19:15:20] Production.INFO: ProcessCDR(1,14981674,1,1,2) [2025-04-24 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981674', 'tblTempUsageDetail_20' ) start [2025-04-24 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981674', 'tblTempUsageDetail_20' ) end [2025-04-24 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:15:25] Production.INFO: ==5645== Releasing lock... [2025-04-24 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:15:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-24 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:16:05 [end_date_ymd] => 2025-04-24 19:16:05 [RateCDR] => 1 ) [2025-04-24 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:16:05' and `end` < '2025-04-24 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:16:18] Production.INFO: count ==4319 [2025-04-24 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:16:05 - End Time 2025-04-24 19:16:05 [2025-04-24 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981679', 'tblTempUsageDetail_20' ) start [2025-04-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981679', 'tblTempUsageDetail_20' ) end [2025-04-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981679', 'tblTempVendorCDR_20' ) start [2025-04-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981679', 'tblTempVendorCDR_20' ) end [2025-04-24 19:16:20] Production.INFO: ProcessCDR(1,14981679,1,1,2) [2025-04-24 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981679', 'tblTempUsageDetail_20' ) start [2025-04-24 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981679', 'tblTempUsageDetail_20' ) end [2025-04-24 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:16:23] Production.INFO: ==5718== Releasing lock... [2025-04-24 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:16:23] Production.INFO: 60.25 MB #Memory Used# [2025-04-24 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:17:05 [end_date_ymd] => 2025-04-24 19:17:05 [RateCDR] => 1 ) [2025-04-24 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:17:05' and `end` < '2025-04-24 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:17:19] Production.INFO: count ==4296 [2025-04-24 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:17:05 - End Time 2025-04-24 19:17:05 [2025-04-24 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981684', 'tblTempUsageDetail_20' ) start [2025-04-24 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981684', 'tblTempUsageDetail_20' ) end [2025-04-24 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981684', 'tblTempVendorCDR_20' ) start [2025-04-24 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981684', 'tblTempVendorCDR_20' ) end [2025-04-24 19:17:21] Production.INFO: ProcessCDR(1,14981684,1,1,2) [2025-04-24 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981684', 'tblTempUsageDetail_20' ) start [2025-04-24 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981684', 'tblTempUsageDetail_20' ) end [2025-04-24 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:17:24] Production.INFO: ==5790== Releasing lock... [2025-04-24 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:17:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-24 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:18:05 [end_date_ymd] => 2025-04-24 19:18:05 [RateCDR] => 1 ) [2025-04-24 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:18:05' and `end` < '2025-04-24 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:18:18] Production.INFO: count ==4289 [2025-04-24 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:18:05 - End Time 2025-04-24 19:18:05 [2025-04-24 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981689', 'tblTempUsageDetail_20' ) start [2025-04-24 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981689', 'tblTempUsageDetail_20' ) end [2025-04-24 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981689', 'tblTempVendorCDR_20' ) start [2025-04-24 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981689', 'tblTempVendorCDR_20' ) end [2025-04-24 19:18:20] Production.INFO: ProcessCDR(1,14981689,1,1,2) [2025-04-24 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981689', 'tblTempUsageDetail_20' ) start [2025-04-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981689', 'tblTempUsageDetail_20' ) end [2025-04-24 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:18:23] Production.INFO: ==5905== Releasing lock... [2025-04-24 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:18:23] Production.INFO: 60.25 MB #Memory Used# [2025-04-24 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:19:05 [end_date_ymd] => 2025-04-24 19:19:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:19:05' and `end` < '2025-04-24 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-04-24 19:19:18] Production.INFO: count ==4285 [2025-04-24 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:19:05 - End Time 2025-04-24 19:19:05 [2025-04-24 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981694', 'tblTempUsageDetail_20' ) start [2025-04-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981694', 'tblTempUsageDetail_20' ) end [2025-04-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981694', 'tblTempVendorCDR_20' ) start [2025-04-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981694', 'tblTempVendorCDR_20' ) end [2025-04-24 19:19:20] Production.INFO: ProcessCDR(1,14981694,1,1,2) [2025-04-24 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981694', 'tblTempUsageDetail_20' ) start [2025-04-24 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981694', 'tblTempUsageDetail_20' ) end [2025-04-24 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:19:23] Production.INFO: ==5981== Releasing lock... [2025-04-24 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:19:23] Production.INFO: 60 MB #Memory Used# [2025-04-24 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:20:05 [end_date_ymd] => 2025-04-24 19:20:05 [RateCDR] => 1 ) [2025-04-24 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:20:05' and `end` < '2025-04-24 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:20:19] Production.INFO: count ==4263 [2025-04-24 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:20:05 - End Time 2025-04-24 19:20:05 [2025-04-24 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981700', 'tblTempUsageDetail_20' ) start [2025-04-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981700', 'tblTempUsageDetail_20' ) end [2025-04-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981700', 'tblTempVendorCDR_20' ) start [2025-04-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981700', 'tblTempVendorCDR_20' ) end [2025-04-24 19:20:20] Production.INFO: ProcessCDR(1,14981700,1,1,2) [2025-04-24 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981700', 'tblTempUsageDetail_20' ) start [2025-04-24 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981700', 'tblTempUsageDetail_20' ) end [2025-04-24 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:20:24] Production.INFO: ==6064== Releasing lock... [2025-04-24 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:20:24] Production.INFO: 60 MB #Memory Used# [2025-04-24 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:21:05 [end_date_ymd] => 2025-04-24 19:21:05 [RateCDR] => 1 ) [2025-04-24 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:21:05' and `end` < '2025-04-24 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:21:19] Production.INFO: count ==4149 [2025-04-24 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:21:05 - End Time 2025-04-24 19:21:05 [2025-04-24 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981705', 'tblTempUsageDetail_20' ) start [2025-04-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981705', 'tblTempUsageDetail_20' ) end [2025-04-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981705', 'tblTempVendorCDR_20' ) start [2025-04-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981705', 'tblTempVendorCDR_20' ) end [2025-04-24 19:21:20] Production.INFO: ProcessCDR(1,14981705,1,1,2) [2025-04-24 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981705', 'tblTempUsageDetail_20' ) start [2025-04-24 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981705', 'tblTempUsageDetail_20' ) end [2025-04-24 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:21:25] Production.INFO: ==6141== Releasing lock... [2025-04-24 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:21:25] Production.INFO: 59 MB #Memory Used# [2025-04-24 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:22:05 [end_date_ymd] => 2025-04-24 19:22:05 [RateCDR] => 1 ) [2025-04-24 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:22:05' and `end` < '2025-04-24 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:22:18] Production.INFO: count ==4119 [2025-04-24 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:22:05 - End Time 2025-04-24 19:22:05 [2025-04-24 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981710', 'tblTempUsageDetail_20' ) start [2025-04-24 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981710', 'tblTempUsageDetail_20' ) end [2025-04-24 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981710', 'tblTempVendorCDR_20' ) start [2025-04-24 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981710', 'tblTempVendorCDR_20' ) end [2025-04-24 19:22:20] Production.INFO: ProcessCDR(1,14981710,1,1,2) [2025-04-24 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981710', 'tblTempUsageDetail_20' ) start [2025-04-24 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981710', 'tblTempUsageDetail_20' ) end [2025-04-24 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:22:23] Production.INFO: ==6213== Releasing lock... [2025-04-24 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:22:23] Production.INFO: 59 MB #Memory Used# [2025-04-24 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:23:05 [end_date_ymd] => 2025-04-24 19:23:05 [RateCDR] => 1 ) [2025-04-24 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:23:05' and `end` < '2025-04-24 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:23:19] Production.INFO: count ==4100 [2025-04-24 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:23:05 - End Time 2025-04-24 19:23:05 [2025-04-24 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981715', 'tblTempUsageDetail_20' ) start [2025-04-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981715', 'tblTempUsageDetail_20' ) end [2025-04-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981715', 'tblTempVendorCDR_20' ) start [2025-04-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981715', 'tblTempVendorCDR_20' ) end [2025-04-24 19:23:20] Production.INFO: ProcessCDR(1,14981715,1,1,2) [2025-04-24 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981715', 'tblTempUsageDetail_20' ) start [2025-04-24 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981715', 'tblTempUsageDetail_20' ) end [2025-04-24 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:23:24] Production.INFO: ==6288== Releasing lock... [2025-04-24 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:23:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-24 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:24:06 [end_date_ymd] => 2025-04-24 19:24:06 [RateCDR] => 1 ) [2025-04-24 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:24:06' and `end` < '2025-04-24 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:24:19] Production.INFO: count ==4100 [2025-04-24 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:24:06 - End Time 2025-04-24 19:24:06 [2025-04-24 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981720', 'tblTempUsageDetail_20' ) start [2025-04-24 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981720', 'tblTempUsageDetail_20' ) end [2025-04-24 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981720', 'tblTempVendorCDR_20' ) start [2025-04-24 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981720', 'tblTempVendorCDR_20' ) end [2025-04-24 19:24:21] Production.INFO: ProcessCDR(1,14981720,1,1,2) [2025-04-24 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981720', 'tblTempUsageDetail_20' ) start [2025-04-24 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981720', 'tblTempUsageDetail_20' ) end [2025-04-24 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:24:26] Production.INFO: ==6363== Releasing lock... [2025-04-24 19:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:24:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:25:05 [end_date_ymd] => 2025-04-24 19:25:05 [RateCDR] => 1 ) [2025-04-24 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:25:05' and `end` < '2025-04-24 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:25:18] Production.INFO: count ==4088 [2025-04-24 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:25:05 - End Time 2025-04-24 19:25:05 [2025-04-24 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981725', 'tblTempUsageDetail_20' ) start [2025-04-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981725', 'tblTempUsageDetail_20' ) end [2025-04-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981725', 'tblTempVendorCDR_20' ) start [2025-04-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981725', 'tblTempVendorCDR_20' ) end [2025-04-24 19:25:20] Production.INFO: ProcessCDR(1,14981725,1,1,2) [2025-04-24 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981725', 'tblTempUsageDetail_20' ) start [2025-04-24 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981725', 'tblTempUsageDetail_20' ) end [2025-04-24 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:25:23] Production.INFO: ==6434== Releasing lock... [2025-04-24 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:25:23] Production.INFO: 58.5 MB #Memory Used# [2025-04-24 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:26:06 [end_date_ymd] => 2025-04-24 19:26:06 [RateCDR] => 1 ) [2025-04-24 19:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:26:06' and `end` < '2025-04-24 19:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:26:19] Production.INFO: count ==4080 [2025-04-24 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:26:06 - End Time 2025-04-24 19:26:06 [2025-04-24 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981730', 'tblTempUsageDetail_20' ) start [2025-04-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981730', 'tblTempUsageDetail_20' ) end [2025-04-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981730', 'tblTempVendorCDR_20' ) start [2025-04-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981730', 'tblTempVendorCDR_20' ) end [2025-04-24 19:26:20] Production.INFO: ProcessCDR(1,14981730,1,1,2) [2025-04-24 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981730', 'tblTempUsageDetail_20' ) start [2025-04-24 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981730', 'tblTempUsageDetail_20' ) end [2025-04-24 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:26:24] Production.INFO: ==6509== Releasing lock... [2025-04-24 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:26:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-24 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:27:05 [end_date_ymd] => 2025-04-24 19:27:05 [RateCDR] => 1 ) [2025-04-24 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:27:05' and `end` < '2025-04-24 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:27:18] Production.INFO: count ==4083 [2025-04-24 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:27:05 - End Time 2025-04-24 19:27:05 [2025-04-24 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981735', 'tblTempUsageDetail_20' ) start [2025-04-24 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981735', 'tblTempUsageDetail_20' ) end [2025-04-24 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981735', 'tblTempVendorCDR_20' ) start [2025-04-24 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981735', 'tblTempVendorCDR_20' ) end [2025-04-24 19:27:20] Production.INFO: ProcessCDR(1,14981735,1,1,2) [2025-04-24 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981735', 'tblTempUsageDetail_20' ) start [2025-04-24 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981735', 'tblTempUsageDetail_20' ) end [2025-04-24 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:27:25] Production.INFO: ==6584== Releasing lock... [2025-04-24 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:27:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-24 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:28:05 [end_date_ymd] => 2025-04-24 19:28:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:28:05' and `end` < '2025-04-24 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-04-24 19:28:18] Production.INFO: count ==4059 [2025-04-24 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:28:05 - End Time 2025-04-24 19:28:05 [2025-04-24 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981740', 'tblTempUsageDetail_20' ) start [2025-04-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981740', 'tblTempUsageDetail_20' ) end [2025-04-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981740', 'tblTempVendorCDR_20' ) start [2025-04-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981740', 'tblTempVendorCDR_20' ) end [2025-04-24 19:28:20] Production.INFO: ProcessCDR(1,14981740,1,1,2) [2025-04-24 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981740', 'tblTempUsageDetail_20' ) start [2025-04-24 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981740', 'tblTempUsageDetail_20' ) end [2025-04-24 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:28:23] Production.INFO: ==6656== Releasing lock... [2025-04-24 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:28:23] Production.INFO: 58.5 MB #Memory Used# [2025-04-24 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:29:05 [end_date_ymd] => 2025-04-24 19:29:05 [RateCDR] => 1 ) [2025-04-24 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:29:05' and `end` < '2025-04-24 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:29:18] Production.INFO: count ==4041 [2025-04-24 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:29:05 - End Time 2025-04-24 19:29:05 [2025-04-24 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981745', 'tblTempUsageDetail_20' ) start [2025-04-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981745', 'tblTempUsageDetail_20' ) end [2025-04-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981745', 'tblTempVendorCDR_20' ) start [2025-04-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981745', 'tblTempVendorCDR_20' ) end [2025-04-24 19:29:20] Production.INFO: ProcessCDR(1,14981745,1,1,2) [2025-04-24 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981745', 'tblTempUsageDetail_20' ) start [2025-04-24 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981745', 'tblTempUsageDetail_20' ) end [2025-04-24 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:29:23] Production.INFO: ==6730== Releasing lock... [2025-04-24 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:29:23] Production.INFO: 58.25 MB #Memory Used# [2025-04-24 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:30:06 [end_date_ymd] => 2025-04-24 19:30:06 [RateCDR] => 1 ) [2025-04-24 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:30:06' and `end` < '2025-04-24 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:30:19] Production.INFO: count ==4040 [2025-04-24 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:30:06 - End Time 2025-04-24 19:30:06 [2025-04-24 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981751', 'tblTempUsageDetail_20' ) start [2025-04-24 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981751', 'tblTempUsageDetail_20' ) end [2025-04-24 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981751', 'tblTempVendorCDR_20' ) start [2025-04-24 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981751', 'tblTempVendorCDR_20' ) end [2025-04-24 19:30:21] Production.INFO: ProcessCDR(1,14981751,1,1,2) [2025-04-24 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981751', 'tblTempUsageDetail_20' ) start [2025-04-24 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981751', 'tblTempUsageDetail_20' ) end [2025-04-24 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:30:25] Production.INFO: ==6804== Releasing lock... [2025-04-24 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:30:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-24 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:31:05 [end_date_ymd] => 2025-04-24 19:31:05 [RateCDR] => 1 ) [2025-04-24 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:31:05' and `end` < '2025-04-24 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:31:18] Production.INFO: count ==3949 [2025-04-24 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:31:05 - End Time 2025-04-24 19:31:05 [2025-04-24 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981756', 'tblTempUsageDetail_20' ) start [2025-04-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981756', 'tblTempUsageDetail_20' ) end [2025-04-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981756', 'tblTempVendorCDR_20' ) start [2025-04-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981756', 'tblTempVendorCDR_20' ) end [2025-04-24 19:31:19] Production.INFO: ProcessCDR(1,14981756,1,1,2) [2025-04-24 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981756', 'tblTempUsageDetail_20' ) start [2025-04-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981756', 'tblTempUsageDetail_20' ) end [2025-04-24 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:31:23] Production.INFO: ==6878== Releasing lock... [2025-04-24 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:31:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-24 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:32:05 [end_date_ymd] => 2025-04-24 19:32:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:32:05' and `end` < '2025-04-24 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-04-24 19:32:18] Production.INFO: count ==3938 [2025-04-24 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:32:05 - End Time 2025-04-24 19:32:05 [2025-04-24 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981761', 'tblTempUsageDetail_20' ) start [2025-04-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981761', 'tblTempUsageDetail_20' ) end [2025-04-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981761', 'tblTempVendorCDR_20' ) start [2025-04-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981761', 'tblTempVendorCDR_20' ) end [2025-04-24 19:32:19] Production.INFO: ProcessCDR(1,14981761,1,1,2) [2025-04-24 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981761', 'tblTempUsageDetail_20' ) start [2025-04-24 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981761', 'tblTempUsageDetail_20' ) end [2025-04-24 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:32:24] Production.INFO: ==6951== Releasing lock... [2025-04-24 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:32:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-24 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:33:05 [end_date_ymd] => 2025-04-24 19:33:05 [RateCDR] => 1 ) [2025-04-24 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:33:05' and `end` < '2025-04-24 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:33:18] Production.INFO: count ==3919 [2025-04-24 19:33:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:33:05 - End Time 2025-04-24 19:33:05 [2025-04-24 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981766', 'tblTempUsageDetail_20' ) start [2025-04-24 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981766', 'tblTempUsageDetail_20' ) end [2025-04-24 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981766', 'tblTempVendorCDR_20' ) start [2025-04-24 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981766', 'tblTempVendorCDR_20' ) end [2025-04-24 19:33:20] Production.INFO: ProcessCDR(1,14981766,1,1,2) [2025-04-24 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981766', 'tblTempUsageDetail_20' ) start [2025-04-24 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981766', 'tblTempUsageDetail_20' ) end [2025-04-24 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:33:25] Production.INFO: ==7020== Releasing lock... [2025-04-24 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:33:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-24 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:34:05 [end_date_ymd] => 2025-04-24 19:34:05 [RateCDR] => 1 ) [2025-04-24 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:34:05' and `end` < '2025-04-24 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:34:18] Production.INFO: count ==3909 [2025-04-24 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:34:05 - End Time 2025-04-24 19:34:05 [2025-04-24 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981771', 'tblTempUsageDetail_20' ) start [2025-04-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981771', 'tblTempUsageDetail_20' ) end [2025-04-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981771', 'tblTempVendorCDR_20' ) start [2025-04-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981771', 'tblTempVendorCDR_20' ) end [2025-04-24 19:34:19] Production.INFO: ProcessCDR(1,14981771,1,1,2) [2025-04-24 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981771', 'tblTempUsageDetail_20' ) start [2025-04-24 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981771', 'tblTempUsageDetail_20' ) end [2025-04-24 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:34:24] Production.INFO: ==7133== Releasing lock... [2025-04-24 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:34:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-24 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:35:05 [end_date_ymd] => 2025-04-24 19:35:05 [RateCDR] => 1 ) [2025-04-24 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:35:05' and `end` < '2025-04-24 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:35:18] Production.INFO: count ==3883 [2025-04-24 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:35:05 - End Time 2025-04-24 19:35:05 [2025-04-24 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981776', 'tblTempUsageDetail_20' ) start [2025-04-24 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981776', 'tblTempUsageDetail_20' ) end [2025-04-24 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981776', 'tblTempVendorCDR_20' ) start [2025-04-24 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981776', 'tblTempVendorCDR_20' ) end [2025-04-24 19:35:20] Production.INFO: ProcessCDR(1,14981776,1,1,2) [2025-04-24 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981776', 'tblTempUsageDetail_20' ) start [2025-04-24 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981776', 'tblTempUsageDetail_20' ) end [2025-04-24 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:35:23] Production.INFO: ==7206== Releasing lock... [2025-04-24 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:35:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-24 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:36:04 [end_date_ymd] => 2025-04-24 19:36:04 [RateCDR] => 1 ) [2025-04-24 19:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:36:04' and `end` < '2025-04-24 19:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:36:17] Production.INFO: count ==3870 [2025-04-24 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:36:04 - End Time 2025-04-24 19:36:04 [2025-04-24 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981781', 'tblTempUsageDetail_20' ) start [2025-04-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981781', 'tblTempUsageDetail_20' ) end [2025-04-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981781', 'tblTempVendorCDR_20' ) start [2025-04-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981781', 'tblTempVendorCDR_20' ) end [2025-04-24 19:36:19] Production.INFO: ProcessCDR(1,14981781,1,1,2) [2025-04-24 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981781', 'tblTempUsageDetail_20' ) start [2025-04-24 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981781', 'tblTempUsageDetail_20' ) end [2025-04-24 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:36:24] Production.INFO: ==7284== Releasing lock... [2025-04-24 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:36:24] Production.INFO: 57 MB #Memory Used# [2025-04-24 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:37:05 [end_date_ymd] => 2025-04-24 19:37:05 [RateCDR] => 1 ) [2025-04-24 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:37:05' and `end` < '2025-04-24 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:37:19] Production.INFO: count ==3856 [2025-04-24 19:37:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:37:05 - End Time 2025-04-24 19:37:05 [2025-04-24 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981786', 'tblTempUsageDetail_20' ) start [2025-04-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981786', 'tblTempUsageDetail_20' ) end [2025-04-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981786', 'tblTempVendorCDR_20' ) start [2025-04-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981786', 'tblTempVendorCDR_20' ) end [2025-04-24 19:37:20] Production.INFO: ProcessCDR(1,14981786,1,1,2) [2025-04-24 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981786', 'tblTempUsageDetail_20' ) start [2025-04-24 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981786', 'tblTempUsageDetail_20' ) end [2025-04-24 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:37:23] Production.INFO: ==7362== Releasing lock... [2025-04-24 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:37:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-24 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:38:06 [end_date_ymd] => 2025-04-24 19:38:06 [RateCDR] => 1 ) [2025-04-24 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:38:06' and `end` < '2025-04-24 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:38:19] Production.INFO: count ==3826 [2025-04-24 19:38:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:38:06 - End Time 2025-04-24 19:38:06 [2025-04-24 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981791', 'tblTempUsageDetail_20' ) start [2025-04-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981791', 'tblTempUsageDetail_20' ) end [2025-04-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981791', 'tblTempVendorCDR_20' ) start [2025-04-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981791', 'tblTempVendorCDR_20' ) end [2025-04-24 19:38:21] Production.INFO: ProcessCDR(1,14981791,1,1,2) [2025-04-24 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981791', 'tblTempUsageDetail_20' ) start [2025-04-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981791', 'tblTempUsageDetail_20' ) end [2025-04-24 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:38:24] Production.INFO: ==7435== Releasing lock... [2025-04-24 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:38:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-24 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:39:05 [end_date_ymd] => 2025-04-24 19:39:05 [RateCDR] => 1 ) [2025-04-24 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:39:05' and `end` < '2025-04-24 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:39:18] Production.INFO: count ==3809 [2025-04-24 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:39:05 - End Time 2025-04-24 19:39:05 [2025-04-24 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981796', 'tblTempUsageDetail_20' ) start [2025-04-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981796', 'tblTempUsageDetail_20' ) end [2025-04-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981796', 'tblTempVendorCDR_20' ) start [2025-04-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981796', 'tblTempVendorCDR_20' ) end [2025-04-24 19:39:20] Production.INFO: ProcessCDR(1,14981796,1,1,2) [2025-04-24 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981796', 'tblTempUsageDetail_20' ) start [2025-04-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981796', 'tblTempUsageDetail_20' ) end [2025-04-24 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:39:23] Production.INFO: ==7503== Releasing lock... [2025-04-24 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:39:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-24 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:40:06 [end_date_ymd] => 2025-04-24 19:40:06 [RateCDR] => 1 ) [2025-04-24 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:40:06' and `end` < '2025-04-24 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:40:19] Production.INFO: count ==3807 [2025-04-24 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:40:06 - End Time 2025-04-24 19:40:06 [2025-04-24 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981802', 'tblTempUsageDetail_20' ) start [2025-04-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981802', 'tblTempUsageDetail_20' ) end [2025-04-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981802', 'tblTempVendorCDR_20' ) start [2025-04-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981802', 'tblTempVendorCDR_20' ) end [2025-04-24 19:40:20] Production.INFO: ProcessCDR(1,14981802,1,1,2) [2025-04-24 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981802', 'tblTempUsageDetail_20' ) start [2025-04-24 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981802', 'tblTempUsageDetail_20' ) end [2025-04-24 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:40:25] Production.INFO: ==7584== Releasing lock... [2025-04-24 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:40:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-24 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:41:05 [end_date_ymd] => 2025-04-24 19:41:05 [RateCDR] => 1 ) [2025-04-24 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:41:05' and `end` < '2025-04-24 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:41:18] Production.INFO: count ==3727 [2025-04-24 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:41:05 - End Time 2025-04-24 19:41:05 [2025-04-24 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981807', 'tblTempUsageDetail_20' ) start [2025-04-24 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981807', 'tblTempUsageDetail_20' ) end [2025-04-24 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981807', 'tblTempVendorCDR_20' ) start [2025-04-24 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981807', 'tblTempVendorCDR_20' ) end [2025-04-24 19:41:19] Production.INFO: ProcessCDR(1,14981807,1,1,2) [2025-04-24 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981807', 'tblTempUsageDetail_20' ) start [2025-04-24 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981807', 'tblTempUsageDetail_20' ) end [2025-04-24 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:41:24] Production.INFO: ==7658== Releasing lock... [2025-04-24 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:41:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:42:05 [end_date_ymd] => 2025-04-24 19:42:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:42:05' and `end` < '2025-04-24 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-04-24 19:42:18] Production.INFO: count ==3711 [2025-04-24 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:42:05 - End Time 2025-04-24 19:42:05 [2025-04-24 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981812', 'tblTempUsageDetail_20' ) start [2025-04-24 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981812', 'tblTempUsageDetail_20' ) end [2025-04-24 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981812', 'tblTempVendorCDR_20' ) start [2025-04-24 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981812', 'tblTempVendorCDR_20' ) end [2025-04-24 19:42:20] Production.INFO: ProcessCDR(1,14981812,1,1,2) [2025-04-24 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981812', 'tblTempUsageDetail_20' ) start [2025-04-24 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981812', 'tblTempUsageDetail_20' ) end [2025-04-24 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:42:23] Production.INFO: ==7733== Releasing lock... [2025-04-24 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:42:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:43:04 [end_date_ymd] => 2025-04-24 19:43:04 [RateCDR] => 1 ) [2025-04-24 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:43:04' and `end` < '2025-04-24 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:43:18] Production.INFO: count ==3695 [2025-04-24 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:43:04 - End Time 2025-04-24 19:43:04 [2025-04-24 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981817', 'tblTempUsageDetail_20' ) start [2025-04-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981817', 'tblTempUsageDetail_20' ) end [2025-04-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981817', 'tblTempVendorCDR_20' ) start [2025-04-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981817', 'tblTempVendorCDR_20' ) end [2025-04-24 19:43:19] Production.INFO: ProcessCDR(1,14981817,1,1,2) [2025-04-24 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981817', 'tblTempUsageDetail_20' ) start [2025-04-24 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981817', 'tblTempUsageDetail_20' ) end [2025-04-24 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:43:23] Production.INFO: ==7806== Releasing lock... [2025-04-24 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:43:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:44:05 [end_date_ymd] => 2025-04-24 19:44:05 [RateCDR] => 1 ) [2025-04-24 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:44:05' and `end` < '2025-04-24 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:44:18] Production.INFO: count ==3688 [2025-04-24 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:44:05 - End Time 2025-04-24 19:44:05 [2025-04-24 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981822', 'tblTempUsageDetail_20' ) start [2025-04-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981822', 'tblTempUsageDetail_20' ) end [2025-04-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981822', 'tblTempVendorCDR_20' ) start [2025-04-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981822', 'tblTempVendorCDR_20' ) end [2025-04-24 19:44:20] Production.INFO: ProcessCDR(1,14981822,1,1,2) [2025-04-24 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981822', 'tblTempUsageDetail_20' ) start [2025-04-24 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981822', 'tblTempUsageDetail_20' ) end [2025-04-24 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:44:24] Production.INFO: ==7884== Releasing lock... [2025-04-24 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:44:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-24 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:45:05 [end_date_ymd] => 2025-04-24 19:45:05 [RateCDR] => 1 ) [2025-04-24 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:45:05' and `end` < '2025-04-24 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:45:18] Production.INFO: count ==3661 [2025-04-24 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:45:05 - End Time 2025-04-24 19:45:05 [2025-04-24 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981827', 'tblTempUsageDetail_20' ) start [2025-04-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981827', 'tblTempUsageDetail_20' ) end [2025-04-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981827', 'tblTempVendorCDR_20' ) start [2025-04-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981827', 'tblTempVendorCDR_20' ) end [2025-04-24 19:45:20] Production.INFO: ProcessCDR(1,14981827,1,1,2) [2025-04-24 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981827', 'tblTempUsageDetail_20' ) start [2025-04-24 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981827', 'tblTempUsageDetail_20' ) end [2025-04-24 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:45:23] Production.INFO: ==7959== Releasing lock... [2025-04-24 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:45:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-24 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:46:05 [end_date_ymd] => 2025-04-24 19:46:05 [RateCDR] => 1 ) [2025-04-24 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:46:05' and `end` < '2025-04-24 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:46:18] Production.INFO: count ==3632 [2025-04-24 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:46:05 - End Time 2025-04-24 19:46:05 [2025-04-24 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981832', 'tblTempUsageDetail_20' ) start [2025-04-24 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981832', 'tblTempUsageDetail_20' ) end [2025-04-24 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981832', 'tblTempVendorCDR_20' ) start [2025-04-24 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981832', 'tblTempVendorCDR_20' ) end [2025-04-24 19:46:20] Production.INFO: ProcessCDR(1,14981832,1,1,2) [2025-04-24 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981832', 'tblTempUsageDetail_20' ) start [2025-04-24 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981832', 'tblTempUsageDetail_20' ) end [2025-04-24 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:46:23] Production.INFO: ==8035== Releasing lock... [2025-04-24 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:46:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-24 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:47:05 [end_date_ymd] => 2025-04-24 19:47:05 [RateCDR] => 1 ) [2025-04-24 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:47:05' and `end` < '2025-04-24 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:47:18] Production.INFO: count ==3607 [2025-04-24 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:47:05 - End Time 2025-04-24 19:47:05 [2025-04-24 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981837', 'tblTempUsageDetail_20' ) start [2025-04-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981837', 'tblTempUsageDetail_20' ) end [2025-04-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981837', 'tblTempVendorCDR_20' ) start [2025-04-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981837', 'tblTempVendorCDR_20' ) end [2025-04-24 19:47:19] Production.INFO: ProcessCDR(1,14981837,1,1,2) [2025-04-24 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981837', 'tblTempUsageDetail_20' ) start [2025-04-24 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981837', 'tblTempUsageDetail_20' ) end [2025-04-24 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:47:24] Production.INFO: ==8111== Releasing lock... [2025-04-24 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:47:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-24 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:48:04 [end_date_ymd] => 2025-04-24 19:48:04 [RateCDR] => 1 ) [2025-04-24 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:48:04' and `end` < '2025-04-24 19: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-04-24 19:48:17] Production.INFO: count ==3596 [2025-04-24 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:48:04 - End Time 2025-04-24 19:48:04 [2025-04-24 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981842', 'tblTempUsageDetail_20' ) start [2025-04-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981842', 'tblTempUsageDetail_20' ) end [2025-04-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981842', 'tblTempVendorCDR_20' ) start [2025-04-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981842', 'tblTempVendorCDR_20' ) end [2025-04-24 19:48:19] Production.INFO: ProcessCDR(1,14981842,1,1,2) [2025-04-24 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981842', 'tblTempUsageDetail_20' ) start [2025-04-24 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981842', 'tblTempUsageDetail_20' ) end [2025-04-24 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:48:22] Production.INFO: ==8183== Releasing lock... [2025-04-24 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:48:22] Production.INFO: 55 MB #Memory Used# [2025-04-24 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:49:05 [end_date_ymd] => 2025-04-24 19:49:05 [RateCDR] => 1 ) [2025-04-24 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:49:05' and `end` < '2025-04-24 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:49:18] Production.INFO: count ==3588 [2025-04-24 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:49:05 - End Time 2025-04-24 19:49:05 [2025-04-24 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981847', 'tblTempUsageDetail_20' ) start [2025-04-24 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981847', 'tblTempUsageDetail_20' ) end [2025-04-24 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981847', 'tblTempVendorCDR_20' ) start [2025-04-24 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981847', 'tblTempVendorCDR_20' ) end [2025-04-24 19:49:20] Production.INFO: ProcessCDR(1,14981847,1,1,2) [2025-04-24 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981847', 'tblTempUsageDetail_20' ) start [2025-04-24 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981847', 'tblTempUsageDetail_20' ) end [2025-04-24 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:49:23] Production.INFO: ==8295== Releasing lock... [2025-04-24 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:49:23] Production.INFO: 54.75 MB #Memory Used# [2025-04-24 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:50:05 [end_date_ymd] => 2025-04-24 19:50:05 [RateCDR] => 1 ) [2025-04-24 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:50:05' and `end` < '2025-04-24 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:50:18] Production.INFO: count ==3563 [2025-04-24 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:50:05 - End Time 2025-04-24 19:50:05 [2025-04-24 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981852', 'tblTempUsageDetail_20' ) start [2025-04-24 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981852', 'tblTempUsageDetail_20' ) end [2025-04-24 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981852', 'tblTempVendorCDR_20' ) start [2025-04-24 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981852', 'tblTempVendorCDR_20' ) end [2025-04-24 19:50:20] Production.INFO: ProcessCDR(1,14981852,1,1,2) [2025-04-24 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981852', 'tblTempUsageDetail_20' ) start [2025-04-24 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981852', 'tblTempUsageDetail_20' ) end [2025-04-24 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:50:24] Production.INFO: ==8373== Releasing lock... [2025-04-24 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:50:24] Production.INFO: 55 MB #Memory Used# [2025-04-24 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:51:05 [end_date_ymd] => 2025-04-24 19:51:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 16:51:05' and `end` < '2025-04-24 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-04-24 19:51:18] Production.INFO: count ==3517 [2025-04-24 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:51:05 - End Time 2025-04-24 19:51:05 [2025-04-24 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981858', 'tblTempUsageDetail_20' ) start [2025-04-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981858', 'tblTempUsageDetail_20' ) end [2025-04-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981858', 'tblTempVendorCDR_20' ) start [2025-04-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981858', 'tblTempVendorCDR_20' ) end [2025-04-24 19:51:19] Production.INFO: ProcessCDR(1,14981858,1,1,2) [2025-04-24 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981858', 'tblTempUsageDetail_20' ) start [2025-04-24 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981858', 'tblTempUsageDetail_20' ) end [2025-04-24 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:51:24] Production.INFO: ==8461== Releasing lock... [2025-04-24 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:51:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-24 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:52:05 [end_date_ymd] => 2025-04-24 19:52:05 [RateCDR] => 1 ) [2025-04-24 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:52:05' and `end` < '2025-04-24 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:52:18] Production.INFO: count ==3502 [2025-04-24 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:52:05 - End Time 2025-04-24 19:52:05 [2025-04-24 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981863', 'tblTempUsageDetail_20' ) start [2025-04-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981863', 'tblTempUsageDetail_20' ) end [2025-04-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981863', 'tblTempVendorCDR_20' ) start [2025-04-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981863', 'tblTempVendorCDR_20' ) end [2025-04-24 19:52:20] Production.INFO: ProcessCDR(1,14981863,1,1,2) [2025-04-24 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981863', 'tblTempUsageDetail_20' ) start [2025-04-24 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981863', 'tblTempUsageDetail_20' ) end [2025-04-24 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:52:23] Production.INFO: ==8537== Releasing lock... [2025-04-24 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:52:23] Production.INFO: 54.25 MB #Memory Used# [2025-04-24 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:53:05 [end_date_ymd] => 2025-04-24 19:53:05 [RateCDR] => 1 ) [2025-04-24 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:53:05' and `end` < '2025-04-24 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:53:18] Production.INFO: count ==3460 [2025-04-24 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:53:05 - End Time 2025-04-24 19:53:05 [2025-04-24 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981868', 'tblTempUsageDetail_20' ) start [2025-04-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981868', 'tblTempUsageDetail_20' ) end [2025-04-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981868', 'tblTempVendorCDR_20' ) start [2025-04-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981868', 'tblTempVendorCDR_20' ) end [2025-04-24 19:53:19] Production.INFO: ProcessCDR(1,14981868,1,1,2) [2025-04-24 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981868', 'tblTempUsageDetail_20' ) start [2025-04-24 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981868', 'tblTempUsageDetail_20' ) end [2025-04-24 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:53:23] Production.INFO: ==8609== Releasing lock... [2025-04-24 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:53:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-24 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:54:05 [end_date_ymd] => 2025-04-24 19:54:05 [RateCDR] => 1 ) [2025-04-24 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:54:05' and `end` < '2025-04-24 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:54:18] Production.INFO: count ==3429 [2025-04-24 19:54:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:54:05 - End Time 2025-04-24 19:54:05 [2025-04-24 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981873', 'tblTempUsageDetail_20' ) start [2025-04-24 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981873', 'tblTempUsageDetail_20' ) end [2025-04-24 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981873', 'tblTempVendorCDR_20' ) start [2025-04-24 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981873', 'tblTempVendorCDR_20' ) end [2025-04-24 19:54:20] Production.INFO: ProcessCDR(1,14981873,1,1,2) [2025-04-24 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981873', 'tblTempUsageDetail_20' ) start [2025-04-24 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981873', 'tblTempUsageDetail_20' ) end [2025-04-24 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:54:23] Production.INFO: ==8682== Releasing lock... [2025-04-24 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:54:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-24 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:55:05 [end_date_ymd] => 2025-04-24 19:55:05 [RateCDR] => 1 ) [2025-04-24 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:55:05' and `end` < '2025-04-24 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:55:18] Production.INFO: count ==3415 [2025-04-24 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:55:05 - End Time 2025-04-24 19:55:05 [2025-04-24 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981878', 'tblTempUsageDetail_20' ) start [2025-04-24 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981878', 'tblTempUsageDetail_20' ) end [2025-04-24 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981878', 'tblTempVendorCDR_20' ) start [2025-04-24 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981878', 'tblTempVendorCDR_20' ) end [2025-04-24 19:55:19] Production.INFO: ProcessCDR(1,14981878,1,1,2) [2025-04-24 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981878', 'tblTempUsageDetail_20' ) start [2025-04-24 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981878', 'tblTempUsageDetail_20' ) end [2025-04-24 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:55:22] Production.INFO: ==8751== Releasing lock... [2025-04-24 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:55:22] Production.INFO: 53.5 MB #Memory Used# [2025-04-24 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:56:05 [end_date_ymd] => 2025-04-24 19:56:05 [RateCDR] => 1 ) [2025-04-24 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:56:05' and `end` < '2025-04-24 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:56:18] Production.INFO: count ==3403 [2025-04-24 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:56:05 - End Time 2025-04-24 19:56:05 [2025-04-24 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981883', 'tblTempUsageDetail_20' ) start [2025-04-24 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981883', 'tblTempUsageDetail_20' ) end [2025-04-24 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981883', 'tblTempVendorCDR_20' ) start [2025-04-24 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981883', 'tblTempVendorCDR_20' ) end [2025-04-24 19:56:19] Production.INFO: ProcessCDR(1,14981883,1,1,2) [2025-04-24 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981883', 'tblTempUsageDetail_20' ) start [2025-04-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981883', 'tblTempUsageDetail_20' ) end [2025-04-24 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:56:23] Production.INFO: ==8827== Releasing lock... [2025-04-24 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:56:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-24 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:57:06 [end_date_ymd] => 2025-04-24 19:57:06 [RateCDR] => 1 ) [2025-04-24 19:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:57:06' and `end` < '2025-04-24 19:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:57:19] Production.INFO: count ==3391 [2025-04-24 19:57:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:57:06 - End Time 2025-04-24 19:57:06 [2025-04-24 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981888', 'tblTempUsageDetail_20' ) start [2025-04-24 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981888', 'tblTempUsageDetail_20' ) end [2025-04-24 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981888', 'tblTempVendorCDR_20' ) start [2025-04-24 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981888', 'tblTempVendorCDR_20' ) end [2025-04-24 19:57:20] Production.INFO: ProcessCDR(1,14981888,1,1,2) [2025-04-24 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981888', 'tblTempUsageDetail_20' ) start [2025-04-24 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981888', 'tblTempUsageDetail_20' ) end [2025-04-24 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:57:23] Production.INFO: ==8904== Releasing lock... [2025-04-24 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:57:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-24 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:58:05 [end_date_ymd] => 2025-04-24 19:58:05 [RateCDR] => 1 ) [2025-04-24 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:58:05' and `end` < '2025-04-24 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:58:18] Production.INFO: count ==3381 [2025-04-24 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-24 16:58:05 - End Time 2025-04-24 19:58:05 [2025-04-24 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981893', 'tblTempUsageDetail_20' ) start [2025-04-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981893', 'tblTempUsageDetail_20' ) end [2025-04-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981893', 'tblTempVendorCDR_20' ) start [2025-04-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981893', 'tblTempVendorCDR_20' ) end [2025-04-24 19:58:19] Production.INFO: ProcessCDR(1,14981893,1,1,2) [2025-04-24 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981893', 'tblTempUsageDetail_20' ) start [2025-04-24 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981893', 'tblTempUsageDetail_20' ) end [2025-04-24 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:58:23] Production.INFO: ==8973== Releasing lock... [2025-04-24 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:58:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-24 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 16:59:06 [end_date_ymd] => 2025-04-24 19:59:06 [RateCDR] => 1 ) [2025-04-24 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 16:59:06' and `end` < '2025-04-24 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 19:59:19] Production.INFO: count ==3373 [2025-04-24 19:59:20] Production.ERROR: pbx CDR StartTime 2025-04-24 16:59:06 - End Time 2025-04-24 19:59:06 [2025-04-24 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981898', 'tblTempUsageDetail_20' ) start [2025-04-24 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981898', 'tblTempUsageDetail_20' ) end [2025-04-24 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981898', 'tblTempVendorCDR_20' ) start [2025-04-24 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981898', 'tblTempVendorCDR_20' ) end [2025-04-24 19:59:20] Production.INFO: ProcessCDR(1,14981898,1,1,2) [2025-04-24 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981898', 'tblTempUsageDetail_20' ) start [2025-04-24 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981898', 'tblTempUsageDetail_20' ) end [2025-04-24 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 19:59:25] Production.INFO: ==9049== Releasing lock... [2025-04-24 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 19:59:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-24 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:00:05 [end_date_ymd] => 2025-04-24 20:00:05 [RateCDR] => 1 ) [2025-04-24 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:00:05' and `end` < '2025-04-24 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:00:18] Production.INFO: count ==3363 [2025-04-24 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:00:05 - End Time 2025-04-24 20:00:05 [2025-04-24 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981904', 'tblTempUsageDetail_20' ) start [2025-04-24 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981904', 'tblTempUsageDetail_20' ) end [2025-04-24 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981904', 'tblTempVendorCDR_20' ) start [2025-04-24 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981904', 'tblTempVendorCDR_20' ) end [2025-04-24 20:00:19] Production.INFO: ProcessCDR(1,14981904,1,1,2) [2025-04-24 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981904', 'tblTempUsageDetail_20' ) start [2025-04-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981904', 'tblTempUsageDetail_20' ) end [2025-04-24 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:00:24] Production.INFO: ==9121== Releasing lock... [2025-04-24 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:00:24] Production.INFO: 54 MB #Memory Used# [2025-04-24 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:01:05 [end_date_ymd] => 2025-04-24 20:01:05 [RateCDR] => 1 ) [2025-04-24 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:01:05' and `end` < '2025-04-24 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:01:18] Production.INFO: count ==3290 [2025-04-24 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:01:05 - End Time 2025-04-24 20:01:05 [2025-04-24 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981909', 'tblTempUsageDetail_20' ) start [2025-04-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981909', 'tblTempUsageDetail_20' ) end [2025-04-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981909', 'tblTempVendorCDR_20' ) start [2025-04-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981909', 'tblTempVendorCDR_20' ) end [2025-04-24 20:01:19] Production.INFO: ProcessCDR(1,14981909,1,1,2) [2025-04-24 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981909', 'tblTempUsageDetail_20' ) start [2025-04-24 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981909', 'tblTempUsageDetail_20' ) end [2025-04-24 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:01:23] Production.INFO: ==9247== Releasing lock... [2025-04-24 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:01:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-24 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:02:05 [end_date_ymd] => 2025-04-24 20:02:05 [RateCDR] => 1 ) [2025-04-24 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:02:05' and `end` < '2025-04-24 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:02:18] Production.INFO: count ==3276 [2025-04-24 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:02:05 - End Time 2025-04-24 20:02:05 [2025-04-24 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981914', 'tblTempUsageDetail_20' ) start [2025-04-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981914', 'tblTempUsageDetail_20' ) end [2025-04-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981914', 'tblTempVendorCDR_20' ) start [2025-04-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981914', 'tblTempVendorCDR_20' ) end [2025-04-24 20:02:19] Production.INFO: ProcessCDR(1,14981914,1,1,2) [2025-04-24 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981914', 'tblTempUsageDetail_20' ) start [2025-04-24 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981914', 'tblTempUsageDetail_20' ) end [2025-04-24 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:02:22] Production.INFO: ==9326== Releasing lock... [2025-04-24 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:02:22] Production.INFO: 52.75 MB #Memory Used# [2025-04-24 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:03:05 [end_date_ymd] => 2025-04-24 20:03:05 [RateCDR] => 1 ) [2025-04-24 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:03:05' and `end` < '2025-04-24 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:03:18] Production.INFO: count ==3266 [2025-04-24 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:03:05 - End Time 2025-04-24 20:03:05 [2025-04-24 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981919', 'tblTempUsageDetail_20' ) start [2025-04-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981919', 'tblTempUsageDetail_20' ) end [2025-04-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981919', 'tblTempVendorCDR_20' ) start [2025-04-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981919', 'tblTempVendorCDR_20' ) end [2025-04-24 20:03:19] Production.INFO: ProcessCDR(1,14981919,1,1,2) [2025-04-24 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981919', 'tblTempUsageDetail_20' ) start [2025-04-24 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981919', 'tblTempUsageDetail_20' ) end [2025-04-24 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:03:23] Production.INFO: ==9407== Releasing lock... [2025-04-24 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:03:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-24 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:04:05 [end_date_ymd] => 2025-04-24 20:04:05 [RateCDR] => 1 ) [2025-04-24 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:04:05' and `end` < '2025-04-24 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:04:18] Production.INFO: count ==3247 [2025-04-24 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:04:05 - End Time 2025-04-24 20:04:05 [2025-04-24 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981924', 'tblTempUsageDetail_20' ) start [2025-04-24 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981924', 'tblTempUsageDetail_20' ) end [2025-04-24 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981924', 'tblTempVendorCDR_20' ) start [2025-04-24 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981924', 'tblTempVendorCDR_20' ) end [2025-04-24 20:04:19] Production.INFO: ProcessCDR(1,14981924,1,1,2) [2025-04-24 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981924', 'tblTempUsageDetail_20' ) start [2025-04-24 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981924', 'tblTempUsageDetail_20' ) end [2025-04-24 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:04:24] Production.INFO: ==9494== Releasing lock... [2025-04-24 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:04:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-24 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:05:05 [end_date_ymd] => 2025-04-24 20:05:05 [RateCDR] => 1 ) [2025-04-24 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:05:05' and `end` < '2025-04-24 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:05:18] Production.INFO: count ==3219 [2025-04-24 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:05:05 - End Time 2025-04-24 20:05:05 [2025-04-24 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981929', 'tblTempUsageDetail_20' ) start [2025-04-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981929', 'tblTempUsageDetail_20' ) end [2025-04-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981929', 'tblTempVendorCDR_20' ) start [2025-04-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981929', 'tblTempVendorCDR_20' ) end [2025-04-24 20:05:19] Production.INFO: ProcessCDR(1,14981929,1,1,2) [2025-04-24 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981929', 'tblTempUsageDetail_20' ) start [2025-04-24 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981929', 'tblTempUsageDetail_20' ) end [2025-04-24 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:05:22] Production.INFO: ==9622== Releasing lock... [2025-04-24 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:05:22] Production.INFO: 52 MB #Memory Used# [2025-04-24 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:06:05 [end_date_ymd] => 2025-04-24 20:06:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:06:05' and `end` < '2025-04-24 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-04-24 20:06:18] Production.INFO: count ==3214 [2025-04-24 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:06:05 - End Time 2025-04-24 20:06:05 [2025-04-24 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981934', 'tblTempUsageDetail_20' ) start [2025-04-24 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981934', 'tblTempUsageDetail_20' ) end [2025-04-24 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981934', 'tblTempVendorCDR_20' ) start [2025-04-24 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981934', 'tblTempVendorCDR_20' ) end [2025-04-24 20:06:19] Production.INFO: ProcessCDR(1,14981934,1,1,2) [2025-04-24 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981934', 'tblTempUsageDetail_20' ) start [2025-04-24 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981934', 'tblTempUsageDetail_20' ) end [2025-04-24 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:06:23] Production.INFO: ==9707== Releasing lock... [2025-04-24 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:06:23] Production.INFO: 52 MB #Memory Used# [2025-04-24 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:07:05 [end_date_ymd] => 2025-04-24 20:07:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:07:05' and `end` < '2025-04-24 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:07:18] Production.INFO: count ==3201 [2025-04-24 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:07:05 - End Time 2025-04-24 20:07:05 [2025-04-24 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981939', 'tblTempUsageDetail_20' ) start [2025-04-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981939', 'tblTempUsageDetail_20' ) end [2025-04-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981939', 'tblTempVendorCDR_20' ) start [2025-04-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981939', 'tblTempVendorCDR_20' ) end [2025-04-24 20:07:19] Production.INFO: ProcessCDR(1,14981939,1,1,2) [2025-04-24 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981939', 'tblTempUsageDetail_20' ) start [2025-04-24 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981939', 'tblTempUsageDetail_20' ) end [2025-04-24 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:07:23] Production.INFO: ==9794== Releasing lock... [2025-04-24 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:07:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-24 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:08:05 [end_date_ymd] => 2025-04-24 20:08:05 [RateCDR] => 1 ) [2025-04-24 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:08:05' and `end` < '2025-04-24 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:08:18] Production.INFO: count ==3187 [2025-04-24 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:08:05 - End Time 2025-04-24 20:08:05 [2025-04-24 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981944', 'tblTempUsageDetail_20' ) start [2025-04-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981944', 'tblTempUsageDetail_20' ) end [2025-04-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981944', 'tblTempVendorCDR_20' ) start [2025-04-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981944', 'tblTempVendorCDR_20' ) end [2025-04-24 20:08:19] Production.INFO: ProcessCDR(1,14981944,1,1,2) [2025-04-24 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981944', 'tblTempUsageDetail_20' ) start [2025-04-24 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981944', 'tblTempUsageDetail_20' ) end [2025-04-24 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:08:23] Production.INFO: ==9874== Releasing lock... [2025-04-24 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:08:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-24 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:09:04 [end_date_ymd] => 2025-04-24 20:09:04 [RateCDR] => 1 ) [2025-04-24 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:09:04' and `end` < '2025-04-24 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:09:17] Production.INFO: count ==3169 [2025-04-24 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:09:04 - End Time 2025-04-24 20:09:04 [2025-04-24 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981949', 'tblTempUsageDetail_20' ) start [2025-04-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981949', 'tblTempUsageDetail_20' ) end [2025-04-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981949', 'tblTempVendorCDR_20' ) start [2025-04-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981949', 'tblTempVendorCDR_20' ) end [2025-04-24 20:09:19] Production.INFO: ProcessCDR(1,14981949,1,1,2) [2025-04-24 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981949', 'tblTempUsageDetail_20' ) start [2025-04-24 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981949', 'tblTempUsageDetail_20' ) end [2025-04-24 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:09:22] Production.INFO: ==9962== Releasing lock... [2025-04-24 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:09:22] Production.INFO: 51.75 MB #Memory Used# [2025-04-24 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:10:06 [end_date_ymd] => 2025-04-24 20:10:06 [RateCDR] => 1 ) [2025-04-24 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:10:06' and `end` < '2025-04-24 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:10:19] Production.INFO: count ==3159 [2025-04-24 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-24 17:10:06 - End Time 2025-04-24 20:10:06 [2025-04-24 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981955', 'tblTempUsageDetail_20' ) start [2025-04-24 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981955', 'tblTempUsageDetail_20' ) end [2025-04-24 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981955', 'tblTempVendorCDR_20' ) start [2025-04-24 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981955', 'tblTempVendorCDR_20' ) end [2025-04-24 20:10:20] Production.INFO: ProcessCDR(1,14981955,1,1,2) [2025-04-24 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981955', 'tblTempUsageDetail_20' ) start [2025-04-24 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981955', 'tblTempUsageDetail_20' ) end [2025-04-24 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:10:24] Production.INFO: ==10047== Releasing lock... [2025-04-24 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:10:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-24 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:11:05 [end_date_ymd] => 2025-04-24 20:11:05 [RateCDR] => 1 ) [2025-04-24 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:11:05' and `end` < '2025-04-24 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:11:18] Production.INFO: count ==3132 [2025-04-24 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:11:05 - End Time 2025-04-24 20:11:05 [2025-04-24 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981960', 'tblTempUsageDetail_20' ) start [2025-04-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981960', 'tblTempUsageDetail_20' ) end [2025-04-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981960', 'tblTempVendorCDR_20' ) start [2025-04-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981960', 'tblTempVendorCDR_20' ) end [2025-04-24 20:11:19] Production.INFO: ProcessCDR(1,14981960,1,1,2) [2025-04-24 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981960', 'tblTempUsageDetail_20' ) start [2025-04-24 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981960', 'tblTempUsageDetail_20' ) end [2025-04-24 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:11:23] Production.INFO: ==10132== Releasing lock... [2025-04-24 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:11:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-24 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:12:06 [end_date_ymd] => 2025-04-24 20:12:06 [RateCDR] => 1 ) [2025-04-24 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:12:06' and `end` < '2025-04-24 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:12:19] Production.INFO: count ==3129 [2025-04-24 20:12:20] Production.ERROR: pbx CDR StartTime 2025-04-24 17:12:06 - End Time 2025-04-24 20:12:06 [2025-04-24 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981965', 'tblTempUsageDetail_20' ) start [2025-04-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981965', 'tblTempUsageDetail_20' ) end [2025-04-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981965', 'tblTempVendorCDR_20' ) start [2025-04-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981965', 'tblTempVendorCDR_20' ) end [2025-04-24 20:12:20] Production.INFO: ProcessCDR(1,14981965,1,1,2) [2025-04-24 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981965', 'tblTempUsageDetail_20' ) start [2025-04-24 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981965', 'tblTempUsageDetail_20' ) end [2025-04-24 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:12:23] Production.INFO: ==10215== Releasing lock... [2025-04-24 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:12:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-24 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:13:05 [end_date_ymd] => 2025-04-24 20:13:05 [RateCDR] => 1 ) [2025-04-24 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:13:05' and `end` < '2025-04-24 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:13:19] Production.INFO: count ==3081 [2025-04-24 20:13:20] Production.ERROR: pbx CDR StartTime 2025-04-24 17:13:05 - End Time 2025-04-24 20:13:05 [2025-04-24 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981970', 'tblTempUsageDetail_20' ) start [2025-04-24 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981970', 'tblTempUsageDetail_20' ) end [2025-04-24 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981970', 'tblTempVendorCDR_20' ) start [2025-04-24 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981970', 'tblTempVendorCDR_20' ) end [2025-04-24 20:13:20] Production.INFO: ProcessCDR(1,14981970,1,1,2) [2025-04-24 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981970', 'tblTempUsageDetail_20' ) start [2025-04-24 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981970', 'tblTempUsageDetail_20' ) end [2025-04-24 20:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:13:25] Production.INFO: ==10304== Releasing lock... [2025-04-24 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:13:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-24 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:14:05 [end_date_ymd] => 2025-04-24 20:14:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:14:05' and `end` < '2025-04-24 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-04-24 20:14:18] Production.INFO: count ==3002 [2025-04-24 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:14:05 - End Time 2025-04-24 20:14:05 [2025-04-24 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981975', 'tblTempUsageDetail_20' ) start [2025-04-24 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981975', 'tblTempUsageDetail_20' ) end [2025-04-24 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981975', 'tblTempVendorCDR_20' ) start [2025-04-24 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981975', 'tblTempVendorCDR_20' ) end [2025-04-24 20:14:19] Production.INFO: ProcessCDR(1,14981975,1,1,2) [2025-04-24 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981975', 'tblTempUsageDetail_20' ) start [2025-04-24 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981975', 'tblTempUsageDetail_20' ) end [2025-04-24 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:14:22] Production.INFO: ==10390== Releasing lock... [2025-04-24 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:14:22] Production.INFO: 50.5 MB #Memory Used# [2025-04-24 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:15:05 [end_date_ymd] => 2025-04-24 20:15:05 [RateCDR] => 1 ) [2025-04-24 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:15:05' and `end` < '2025-04-24 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:15:18] Production.INFO: count ==2953 [2025-04-24 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:15:05 - End Time 2025-04-24 20:15:05 [2025-04-24 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981980', 'tblTempUsageDetail_20' ) start [2025-04-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981980', 'tblTempUsageDetail_20' ) end [2025-04-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981980', 'tblTempVendorCDR_20' ) start [2025-04-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981980', 'tblTempVendorCDR_20' ) end [2025-04-24 20:15:19] Production.INFO: ProcessCDR(1,14981980,1,1,2) [2025-04-24 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981980', 'tblTempUsageDetail_20' ) start [2025-04-24 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981980', 'tblTempUsageDetail_20' ) end [2025-04-24 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:15:22] Production.INFO: ==10476== Releasing lock... [2025-04-24 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:15:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-24 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:16:05 [end_date_ymd] => 2025-04-24 20:16:05 [RateCDR] => 1 ) [2025-04-24 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:16:05' and `end` < '2025-04-24 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:16:18] Production.INFO: count ==2909 [2025-04-24 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:16:05 - End Time 2025-04-24 20:16:05 [2025-04-24 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981985', 'tblTempUsageDetail_20' ) start [2025-04-24 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981985', 'tblTempUsageDetail_20' ) end [2025-04-24 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981985', 'tblTempVendorCDR_20' ) start [2025-04-24 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981985', 'tblTempVendorCDR_20' ) end [2025-04-24 20:16:19] Production.INFO: ProcessCDR(1,14981985,1,1,2) [2025-04-24 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981985', 'tblTempUsageDetail_20' ) start [2025-04-24 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981985', 'tblTempUsageDetail_20' ) end [2025-04-24 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:16:22] Production.INFO: ==10571== Releasing lock... [2025-04-24 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:16:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-24 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:17:05 [end_date_ymd] => 2025-04-24 20:17:05 [RateCDR] => 1 ) [2025-04-24 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:17:05' and `end` < '2025-04-24 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:17:18] Production.INFO: count ==2886 [2025-04-24 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:17:05 - End Time 2025-04-24 20:17:05 [2025-04-24 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981990', 'tblTempUsageDetail_20' ) start [2025-04-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981990', 'tblTempUsageDetail_20' ) end [2025-04-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981990', 'tblTempVendorCDR_20' ) start [2025-04-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981990', 'tblTempVendorCDR_20' ) end [2025-04-24 20:17:19] Production.INFO: ProcessCDR(1,14981990,1,1,2) [2025-04-24 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981990', 'tblTempUsageDetail_20' ) start [2025-04-24 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981990', 'tblTempUsageDetail_20' ) end [2025-04-24 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:17:23] Production.INFO: ==10679== Releasing lock... [2025-04-24 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:17:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:18:05 [end_date_ymd] => 2025-04-24 20:18:05 [RateCDR] => 1 ) [2025-04-24 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:18:05' and `end` < '2025-04-24 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:18:18] Production.INFO: count ==2875 [2025-04-24 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:18:05 - End Time 2025-04-24 20:18:05 [2025-04-24 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981995', 'tblTempUsageDetail_20' ) start [2025-04-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14981995', 'tblTempUsageDetail_20' ) end [2025-04-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981995', 'tblTempVendorCDR_20' ) start [2025-04-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14981995', 'tblTempVendorCDR_20' ) end [2025-04-24 20:18:19] Production.INFO: ProcessCDR(1,14981995,1,1,2) [2025-04-24 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14981995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14981995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14981995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14981995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981995', 'tblTempUsageDetail_20' ) start [2025-04-24 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14981995', 'tblTempUsageDetail_20' ) end [2025-04-24 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:18:24] Production.INFO: ==10772== Releasing lock... [2025-04-24 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:18:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:19:05 [end_date_ymd] => 2025-04-24 20:19:05 [RateCDR] => 1 ) [2025-04-24 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:19:05' and `end` < '2025-04-24 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:19:18] Production.INFO: count ==2869 [2025-04-24 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:19:05 - End Time 2025-04-24 20:19:05 [2025-04-24 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982000', 'tblTempUsageDetail_20' ) start [2025-04-24 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982000', 'tblTempUsageDetail_20' ) end [2025-04-24 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982000', 'tblTempVendorCDR_20' ) start [2025-04-24 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982000', 'tblTempVendorCDR_20' ) end [2025-04-24 20:19:19] Production.INFO: ProcessCDR(1,14982000,1,1,2) [2025-04-24 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982000', 'tblTempUsageDetail_20' ) start [2025-04-24 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982000', 'tblTempUsageDetail_20' ) end [2025-04-24 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:19:24] Production.INFO: ==10865== Releasing lock... [2025-04-24 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:19:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-24 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:20:05 [end_date_ymd] => 2025-04-24 20:20:05 [RateCDR] => 1 ) [2025-04-24 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:20:05' and `end` < '2025-04-24 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:20:18] Production.INFO: count ==2864 [2025-04-24 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:20:05 - End Time 2025-04-24 20:20:05 [2025-04-24 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982005', 'tblTempUsageDetail_20' ) start [2025-04-24 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982005', 'tblTempUsageDetail_20' ) end [2025-04-24 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982005', 'tblTempVendorCDR_20' ) start [2025-04-24 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982005', 'tblTempVendorCDR_20' ) end [2025-04-24 20:20:19] Production.INFO: ProcessCDR(1,14982005,1,1,2) [2025-04-24 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982005', 'tblTempUsageDetail_20' ) start [2025-04-24 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982005', 'tblTempUsageDetail_20' ) end [2025-04-24 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:20:24] Production.INFO: ==10991== Releasing lock... [2025-04-24 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:20:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-24 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:21:05 [end_date_ymd] => 2025-04-24 20:21:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:21:05' and `end` < '2025-04-24 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-04-24 20:21:18] Production.INFO: count ==2753 [2025-04-24 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:21:05 - End Time 2025-04-24 20:21:05 [2025-04-24 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982011', 'tblTempUsageDetail_20' ) start [2025-04-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982011', 'tblTempUsageDetail_20' ) end [2025-04-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982011', 'tblTempVendorCDR_20' ) start [2025-04-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982011', 'tblTempVendorCDR_20' ) end [2025-04-24 20:21:19] Production.INFO: ProcessCDR(1,14982011,1,1,2) [2025-04-24 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982011', 'tblTempUsageDetail_20' ) start [2025-04-24 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982011', 'tblTempUsageDetail_20' ) end [2025-04-24 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:21:22] Production.INFO: ==11084== Releasing lock... [2025-04-24 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:21:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-24 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:22:06 [end_date_ymd] => 2025-04-24 20:22:06 [RateCDR] => 1 ) [2025-04-24 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:22:06' and `end` < '2025-04-24 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:22:19] Production.INFO: count ==2741 [2025-04-24 20:22:20] Production.ERROR: pbx CDR StartTime 2025-04-24 17:22:06 - End Time 2025-04-24 20:22:06 [2025-04-24 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982016', 'tblTempUsageDetail_20' ) start [2025-04-24 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982016', 'tblTempUsageDetail_20' ) end [2025-04-24 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982016', 'tblTempVendorCDR_20' ) start [2025-04-24 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982016', 'tblTempVendorCDR_20' ) end [2025-04-24 20:22:20] Production.INFO: ProcessCDR(1,14982016,1,1,2) [2025-04-24 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982016', 'tblTempUsageDetail_20' ) start [2025-04-24 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982016', 'tblTempUsageDetail_20' ) end [2025-04-24 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:22:23] Production.INFO: ==11184== Releasing lock... [2025-04-24 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:22:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-24 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:23:05 [end_date_ymd] => 2025-04-24 20:23:05 [RateCDR] => 1 ) [2025-04-24 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:23:05' and `end` < '2025-04-24 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:23:18] Production.INFO: count ==2730 [2025-04-24 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:23:05 - End Time 2025-04-24 20:23:05 [2025-04-24 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982021', 'tblTempUsageDetail_20' ) start [2025-04-24 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982021', 'tblTempUsageDetail_20' ) end [2025-04-24 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982021', 'tblTempVendorCDR_20' ) start [2025-04-24 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982021', 'tblTempVendorCDR_20' ) end [2025-04-24 20:23:19] Production.INFO: ProcessCDR(1,14982021,1,1,2) [2025-04-24 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982021', 'tblTempUsageDetail_20' ) start [2025-04-24 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982021', 'tblTempUsageDetail_20' ) end [2025-04-24 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:23:22] Production.INFO: ==11283== Releasing lock... [2025-04-24 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:23:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-24 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:24:06 [end_date_ymd] => 2025-04-24 20:24:06 [RateCDR] => 1 ) [2025-04-24 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:24:06' and `end` < '2025-04-24 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:24:19] Production.INFO: count ==2730 [2025-04-24 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:24:06 - End Time 2025-04-24 20:24:06 [2025-04-24 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982026', 'tblTempUsageDetail_20' ) start [2025-04-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982026', 'tblTempUsageDetail_20' ) end [2025-04-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982026', 'tblTempVendorCDR_20' ) start [2025-04-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982026', 'tblTempVendorCDR_20' ) end [2025-04-24 20:24:20] Production.INFO: ProcessCDR(1,14982026,1,1,2) [2025-04-24 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982026', 'tblTempUsageDetail_20' ) start [2025-04-24 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982026', 'tblTempUsageDetail_20' ) end [2025-04-24 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:24:23] Production.INFO: ==11386== Releasing lock... [2025-04-24 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:24:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-24 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:25:05 [end_date_ymd] => 2025-04-24 20:25:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:25:05' and `end` < '2025-04-24 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-04-24 20:25:18] Production.INFO: count ==2706 [2025-04-24 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:25:05 - End Time 2025-04-24 20:25:05 [2025-04-24 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982031', 'tblTempUsageDetail_20' ) start [2025-04-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982031', 'tblTempUsageDetail_20' ) end [2025-04-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982031', 'tblTempVendorCDR_20' ) start [2025-04-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982031', 'tblTempVendorCDR_20' ) end [2025-04-24 20:25:19] Production.INFO: ProcessCDR(1,14982031,1,1,2) [2025-04-24 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982031', 'tblTempUsageDetail_20' ) start [2025-04-24 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982031', 'tblTempUsageDetail_20' ) end [2025-04-24 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:25:22] Production.INFO: ==11470== Releasing lock... [2025-04-24 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:25:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-24 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:26:05 [end_date_ymd] => 2025-04-24 20:26:05 [RateCDR] => 1 ) [2025-04-24 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:26:05' and `end` < '2025-04-24 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:26:18] Production.INFO: count ==2694 [2025-04-24 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:26:05 - End Time 2025-04-24 20:26:05 [2025-04-24 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982036', 'tblTempUsageDetail_20' ) start [2025-04-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982036', 'tblTempUsageDetail_20' ) end [2025-04-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982036', 'tblTempVendorCDR_20' ) start [2025-04-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982036', 'tblTempVendorCDR_20' ) end [2025-04-24 20:26:19] Production.INFO: ProcessCDR(1,14982036,1,1,2) [2025-04-24 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982036', 'tblTempUsageDetail_20' ) start [2025-04-24 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982036', 'tblTempUsageDetail_20' ) end [2025-04-24 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:26:22] Production.INFO: ==11562== Releasing lock... [2025-04-24 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:26:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-24 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:27:06 [end_date_ymd] => 2025-04-24 20:27:06 [RateCDR] => 1 ) [2025-04-24 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:27:06' and `end` < '2025-04-24 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:27:19] Production.INFO: count ==2675 [2025-04-24 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:27:06 - End Time 2025-04-24 20:27:06 [2025-04-24 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982041', 'tblTempUsageDetail_20' ) start [2025-04-24 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982041', 'tblTempUsageDetail_20' ) end [2025-04-24 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982041', 'tblTempVendorCDR_20' ) start [2025-04-24 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982041', 'tblTempVendorCDR_20' ) end [2025-04-24 20:27:20] Production.INFO: ProcessCDR(1,14982041,1,1,2) [2025-04-24 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982041', 'tblTempUsageDetail_20' ) start [2025-04-24 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982041', 'tblTempUsageDetail_20' ) end [2025-04-24 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:27:23] Production.INFO: ==11661== Releasing lock... [2025-04-24 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:27:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-24 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:28:05 [end_date_ymd] => 2025-04-24 20:28:05 [RateCDR] => 1 ) [2025-04-24 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:28:05' and `end` < '2025-04-24 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:28:18] Production.INFO: count ==2662 [2025-04-24 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:28:05 - End Time 2025-04-24 20:28:05 [2025-04-24 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982046', 'tblTempUsageDetail_20' ) start [2025-04-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982046', 'tblTempUsageDetail_20' ) end [2025-04-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982046', 'tblTempVendorCDR_20' ) start [2025-04-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982046', 'tblTempVendorCDR_20' ) end [2025-04-24 20:28:19] Production.INFO: ProcessCDR(1,14982046,1,1,2) [2025-04-24 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982046', 'tblTempUsageDetail_20' ) start [2025-04-24 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982046', 'tblTempUsageDetail_20' ) end [2025-04-24 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:28:22] Production.INFO: ==11752== Releasing lock... [2025-04-24 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:28:22] Production.INFO: 48 MB #Memory Used# [2025-04-24 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:29:04 [end_date_ymd] => 2025-04-24 20:29:04 [RateCDR] => 1 ) [2025-04-24 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:29:04' and `end` < '2025-04-24 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:29:17] Production.INFO: count ==2655 [2025-04-24 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:29:04 - End Time 2025-04-24 20:29:04 [2025-04-24 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982051', 'tblTempUsageDetail_20' ) start [2025-04-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982051', 'tblTempUsageDetail_20' ) end [2025-04-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982051', 'tblTempVendorCDR_20' ) start [2025-04-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982051', 'tblTempVendorCDR_20' ) end [2025-04-24 20:29:18] Production.INFO: ProcessCDR(1,14982051,1,1,2) [2025-04-24 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982051', 'tblTempUsageDetail_20' ) start [2025-04-24 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982051', 'tblTempUsageDetail_20' ) end [2025-04-24 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:29:23] Production.INFO: ==11851== Releasing lock... [2025-04-24 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:29:23] Production.INFO: 48 MB #Memory Used# [2025-04-24 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:30:06 [end_date_ymd] => 2025-04-24 20:30:06 [RateCDR] => 1 ) [2025-04-24 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:30:06' and `end` < '2025-04-24 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:30:19] Production.INFO: count ==2646 [2025-04-24 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-24 17:30:06 - End Time 2025-04-24 20:30:06 [2025-04-24 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982057', 'tblTempUsageDetail_20' ) start [2025-04-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982057', 'tblTempUsageDetail_20' ) end [2025-04-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982057', 'tblTempVendorCDR_20' ) start [2025-04-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982057', 'tblTempVendorCDR_20' ) end [2025-04-24 20:30:20] Production.INFO: ProcessCDR(1,14982057,1,1,2) [2025-04-24 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982057', 'tblTempUsageDetail_20' ) start [2025-04-24 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982057', 'tblTempUsageDetail_20' ) end [2025-04-24 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:30:23] Production.INFO: ==11944== Releasing lock... [2025-04-24 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:30:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-24 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:31:04 [end_date_ymd] => 2025-04-24 20:31:04 [RateCDR] => 1 ) [2025-04-24 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:31:04' and `end` < '2025-04-24 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:31:17] Production.INFO: count ==2631 [2025-04-24 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:31:04 - End Time 2025-04-24 20:31:04 [2025-04-24 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982062', 'tblTempUsageDetail_20' ) start [2025-04-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982062', 'tblTempUsageDetail_20' ) end [2025-04-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982062', 'tblTempVendorCDR_20' ) start [2025-04-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982062', 'tblTempVendorCDR_20' ) end [2025-04-24 20:31:18] Production.INFO: ProcessCDR(1,14982062,1,1,2) [2025-04-24 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982062', 'tblTempUsageDetail_20' ) start [2025-04-24 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982062', 'tblTempUsageDetail_20' ) end [2025-04-24 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:31:21] Production.INFO: ==12036== Releasing lock... [2025-04-24 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:31:21] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:32:05 [end_date_ymd] => 2025-04-24 20:32:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:32:05' and `end` < '2025-04-24 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-04-24 20:32:18] Production.INFO: count ==2628 [2025-04-24 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:32:05 - End Time 2025-04-24 20:32:05 [2025-04-24 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982067', 'tblTempUsageDetail_20' ) start [2025-04-24 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982067', 'tblTempUsageDetail_20' ) end [2025-04-24 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982067', 'tblTempVendorCDR_20' ) start [2025-04-24 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982067', 'tblTempVendorCDR_20' ) end [2025-04-24 20:32:18] Production.INFO: ProcessCDR(1,14982067,1,1,2) [2025-04-24 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982067', 'tblTempUsageDetail_20' ) start [2025-04-24 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982067', 'tblTempUsageDetail_20' ) end [2025-04-24 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:32:22] Production.INFO: ==12134== Releasing lock... [2025-04-24 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:32:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:33:05 [end_date_ymd] => 2025-04-24 20:33:05 [RateCDR] => 1 ) [2025-04-24 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:33:05' and `end` < '2025-04-24 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:33:18] Production.INFO: count ==2615 [2025-04-24 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:33:05 - End Time 2025-04-24 20:33:05 [2025-04-24 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982072', 'tblTempUsageDetail_20' ) start [2025-04-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982072', 'tblTempUsageDetail_20' ) end [2025-04-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982072', 'tblTempVendorCDR_20' ) start [2025-04-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982072', 'tblTempVendorCDR_20' ) end [2025-04-24 20:33:19] Production.INFO: ProcessCDR(1,14982072,1,1,2) [2025-04-24 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982072', 'tblTempUsageDetail_20' ) start [2025-04-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982072', 'tblTempUsageDetail_20' ) end [2025-04-24 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:33:23] Production.INFO: ==12228== Releasing lock... [2025-04-24 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:33:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:34:05 [end_date_ymd] => 2025-04-24 20:34:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:34:05' and `end` < '2025-04-24 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-04-24 20:34:18] Production.INFO: count ==2605 [2025-04-24 20:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:34:05 - End Time 2025-04-24 20:34:05 [2025-04-24 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982077', 'tblTempUsageDetail_20' ) start [2025-04-24 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982077', 'tblTempUsageDetail_20' ) end [2025-04-24 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982077', 'tblTempVendorCDR_20' ) start [2025-04-24 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982077', 'tblTempVendorCDR_20' ) end [2025-04-24 20:34:18] Production.INFO: ProcessCDR(1,14982077,1,1,2) [2025-04-24 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982077', 'tblTempUsageDetail_20' ) start [2025-04-24 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982077', 'tblTempUsageDetail_20' ) end [2025-04-24 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:34:22] Production.INFO: ==12319== Releasing lock... [2025-04-24 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:34:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:35:06 [end_date_ymd] => 2025-04-24 20:35:06 [RateCDR] => 1 ) [2025-04-24 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:35:06' and `end` < '2025-04-24 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:35:19] Production.INFO: count ==2607 [2025-04-24 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:35:06 - End Time 2025-04-24 20:35:06 [2025-04-24 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982082', 'tblTempUsageDetail_20' ) start [2025-04-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982082', 'tblTempUsageDetail_20' ) end [2025-04-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982082', 'tblTempVendorCDR_20' ) start [2025-04-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982082', 'tblTempVendorCDR_20' ) end [2025-04-24 20:35:19] Production.INFO: ProcessCDR(1,14982082,1,1,2) [2025-04-24 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982082', 'tblTempUsageDetail_20' ) start [2025-04-24 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982082', 'tblTempUsageDetail_20' ) end [2025-04-24 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:35:24] Production.INFO: ==12468== Releasing lock... [2025-04-24 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:35:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:36:05 [end_date_ymd] => 2025-04-24 20:36:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:36:05' and `end` < '2025-04-24 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-04-24 20:36:17] Production.INFO: count ==2606 [2025-04-24 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:36:05 - End Time 2025-04-24 20:36:05 [2025-04-24 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982083', 'tblTempUsageDetail_20' ) start [2025-04-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982083', 'tblTempUsageDetail_20' ) end [2025-04-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982083', 'tblTempVendorCDR_20' ) start [2025-04-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982083', 'tblTempVendorCDR_20' ) end [2025-04-24 20:36:18] Production.INFO: ProcessCDR(1,14982083,1,1,2) [2025-04-24 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982083', 'tblTempUsageDetail_20' ) start [2025-04-24 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982083', 'tblTempUsageDetail_20' ) end [2025-04-24 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:36:22] Production.INFO: ==12557== Releasing lock... [2025-04-24 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:36:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:37:06 [end_date_ymd] => 2025-04-24 20:37:06 [RateCDR] => 1 ) [2025-04-24 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:37:06' and `end` < '2025-04-24 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:37:18] Production.INFO: count ==2602 [2025-04-24 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:37:06 - End Time 2025-04-24 20:37:06 [2025-04-24 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982092', 'tblTempUsageDetail_20' ) start [2025-04-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982092', 'tblTempUsageDetail_20' ) end [2025-04-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982092', 'tblTempVendorCDR_20' ) start [2025-04-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982092', 'tblTempVendorCDR_20' ) end [2025-04-24 20:37:19] Production.INFO: ProcessCDR(1,14982092,1,1,2) [2025-04-24 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982092', 'tblTempUsageDetail_20' ) start [2025-04-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982092', 'tblTempUsageDetail_20' ) end [2025-04-24 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:37:23] Production.INFO: ==12647== Releasing lock... [2025-04-24 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:37:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-24 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:38:05 [end_date_ymd] => 2025-04-24 20:38:05 [RateCDR] => 1 ) [2025-04-24 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:38:05' and `end` < '2025-04-24 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:38:18] Production.INFO: count ==2596 [2025-04-24 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:38:05 - End Time 2025-04-24 20:38:05 [2025-04-24 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982097', 'tblTempUsageDetail_20' ) start [2025-04-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982097', 'tblTempUsageDetail_20' ) end [2025-04-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982097', 'tblTempVendorCDR_20' ) start [2025-04-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982097', 'tblTempVendorCDR_20' ) end [2025-04-24 20:38:19] Production.INFO: ProcessCDR(1,14982097,1,1,2) [2025-04-24 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982097', 'tblTempUsageDetail_20' ) start [2025-04-24 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982097', 'tblTempUsageDetail_20' ) end [2025-04-24 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:38:24] Production.INFO: ==12736== Releasing lock... [2025-04-24 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:38:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-24 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:39:05 [end_date_ymd] => 2025-04-24 20:39:05 [RateCDR] => 1 ) [2025-04-24 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:39:05' and `end` < '2025-04-24 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:39:18] Production.INFO: count ==2585 [2025-04-24 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:39:05 - End Time 2025-04-24 20:39:05 [2025-04-24 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982102', 'tblTempUsageDetail_20' ) start [2025-04-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982102', 'tblTempUsageDetail_20' ) end [2025-04-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982102', 'tblTempVendorCDR_20' ) start [2025-04-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982102', 'tblTempVendorCDR_20' ) end [2025-04-24 20:39:19] Production.INFO: ProcessCDR(1,14982102,1,1,2) [2025-04-24 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982102', 'tblTempUsageDetail_20' ) start [2025-04-24 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982102', 'tblTempUsageDetail_20' ) end [2025-04-24 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:39:24] Production.INFO: ==12826== Releasing lock... [2025-04-24 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:39:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-24 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:40:06 [end_date_ymd] => 2025-04-24 20:40:06 [RateCDR] => 1 ) [2025-04-24 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:40:06' and `end` < '2025-04-24 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:40:18] Production.INFO: count ==2572 [2025-04-24 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:40:06 - End Time 2025-04-24 20:40:06 [2025-04-24 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982108', 'tblTempUsageDetail_20' ) start [2025-04-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982108', 'tblTempUsageDetail_20' ) end [2025-04-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982108', 'tblTempVendorCDR_20' ) start [2025-04-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982108', 'tblTempVendorCDR_20' ) end [2025-04-24 20:40:19] Production.INFO: ProcessCDR(1,14982108,1,1,2) [2025-04-24 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982108', 'tblTempUsageDetail_20' ) start [2025-04-24 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982108', 'tblTempUsageDetail_20' ) end [2025-04-24 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:40:22] Production.INFO: ==12926== Releasing lock... [2025-04-24 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:40:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-24 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:41:05 [end_date_ymd] => 2025-04-24 20:41:05 [RateCDR] => 1 ) [2025-04-24 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:41:05' and `end` < '2025-04-24 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:41:18] Production.INFO: count ==2485 [2025-04-24 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:41:05 - End Time 2025-04-24 20:41:05 [2025-04-24 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982113', 'tblTempUsageDetail_20' ) start [2025-04-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982113', 'tblTempUsageDetail_20' ) end [2025-04-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982113', 'tblTempVendorCDR_20' ) start [2025-04-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982113', 'tblTempVendorCDR_20' ) end [2025-04-24 20:41:19] Production.INFO: ProcessCDR(1,14982113,1,1,2) [2025-04-24 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982113', 'tblTempUsageDetail_20' ) start [2025-04-24 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982113', 'tblTempUsageDetail_20' ) end [2025-04-24 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:41:22] Production.INFO: ==13021== Releasing lock... [2025-04-24 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:41:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-24 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:42:04 [end_date_ymd] => 2025-04-24 20:42:04 [RateCDR] => 1 ) [2025-04-24 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:42:04' and `end` < '2025-04-24 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:42:17] Production.INFO: count ==2479 [2025-04-24 20:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:42:04 - End Time 2025-04-24 20:42:04 [2025-04-24 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982118', 'tblTempUsageDetail_20' ) start [2025-04-24 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982118', 'tblTempUsageDetail_20' ) end [2025-04-24 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982118', 'tblTempVendorCDR_20' ) start [2025-04-24 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982118', 'tblTempVendorCDR_20' ) end [2025-04-24 20:42:18] Production.INFO: ProcessCDR(1,14982118,1,1,2) [2025-04-24 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982118', 'tblTempUsageDetail_20' ) start [2025-04-24 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982118', 'tblTempUsageDetail_20' ) end [2025-04-24 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:42:21] Production.INFO: ==13115== Releasing lock... [2025-04-24 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:42:21] Production.INFO: 46.75 MB #Memory Used# [2025-04-24 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:43:05 [end_date_ymd] => 2025-04-24 20:43:05 [RateCDR] => 1 ) [2025-04-24 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:43:05' and `end` < '2025-04-24 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:43:18] Production.INFO: count ==2462 [2025-04-24 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:43:05 - End Time 2025-04-24 20:43:05 [2025-04-24 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982123', 'tblTempUsageDetail_20' ) start [2025-04-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982123', 'tblTempUsageDetail_20' ) end [2025-04-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982123', 'tblTempVendorCDR_20' ) start [2025-04-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982123', 'tblTempVendorCDR_20' ) end [2025-04-24 20:43:19] Production.INFO: ProcessCDR(1,14982123,1,1,2) [2025-04-24 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982123', 'tblTempUsageDetail_20' ) start [2025-04-24 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982123', 'tblTempUsageDetail_20' ) end [2025-04-24 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:43:22] Production.INFO: ==13206== Releasing lock... [2025-04-24 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:43:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-24 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:44:05 [end_date_ymd] => 2025-04-24 20:44:05 [RateCDR] => 1 ) [2025-04-24 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:44:05' and `end` < '2025-04-24 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:44:18] Production.INFO: count ==2450 [2025-04-24 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:44:05 - End Time 2025-04-24 20:44:05 [2025-04-24 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982128', 'tblTempUsageDetail_20' ) start [2025-04-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982128', 'tblTempUsageDetail_20' ) end [2025-04-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982128', 'tblTempVendorCDR_20' ) start [2025-04-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982128', 'tblTempVendorCDR_20' ) end [2025-04-24 20:44:19] Production.INFO: ProcessCDR(1,14982128,1,1,2) [2025-04-24 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982128', 'tblTempUsageDetail_20' ) start [2025-04-24 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982128', 'tblTempUsageDetail_20' ) end [2025-04-24 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:44:22] Production.INFO: ==13301== Releasing lock... [2025-04-24 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:44:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-24 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:45:05 [end_date_ymd] => 2025-04-24 20:45:05 [RateCDR] => 1 ) [2025-04-24 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:45:05' and `end` < '2025-04-24 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:45:18] Production.INFO: count ==2439 [2025-04-24 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:45:05 - End Time 2025-04-24 20:45:05 [2025-04-24 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982133', 'tblTempUsageDetail_20' ) start [2025-04-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982133', 'tblTempUsageDetail_20' ) end [2025-04-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982133', 'tblTempVendorCDR_20' ) start [2025-04-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982133', 'tblTempVendorCDR_20' ) end [2025-04-24 20:45:19] Production.INFO: ProcessCDR(1,14982133,1,1,2) [2025-04-24 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982133', 'tblTempUsageDetail_20' ) start [2025-04-24 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982133', 'tblTempUsageDetail_20' ) end [2025-04-24 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:45:24] Production.INFO: ==13391== Releasing lock... [2025-04-24 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:45:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-24 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:46:05 [end_date_ymd] => 2025-04-24 20:46:05 [RateCDR] => 1 ) [2025-04-24 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:46:05' and `end` < '2025-04-24 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-04-24 20:46:18] Production.INFO: count ==2428 [2025-04-24 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:46:05 - End Time 2025-04-24 20:46:05 [2025-04-24 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982138', 'tblTempUsageDetail_20' ) start [2025-04-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982138', 'tblTempUsageDetail_20' ) end [2025-04-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982138', 'tblTempVendorCDR_20' ) start [2025-04-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982138', 'tblTempVendorCDR_20' ) end [2025-04-24 20:46:19] Production.INFO: ProcessCDR(1,14982138,1,1,2) [2025-04-24 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982138', 'tblTempUsageDetail_20' ) start [2025-04-24 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982138', 'tblTempUsageDetail_20' ) end [2025-04-24 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:46:24] Production.INFO: ==13491== Releasing lock... [2025-04-24 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:46:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-24 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:47:05 [end_date_ymd] => 2025-04-24 20:47:05 [RateCDR] => 1 ) [2025-04-24 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:47:05' and `end` < '2025-04-24 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:47:18] Production.INFO: count ==2418 [2025-04-24 20:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:47:05 - End Time 2025-04-24 20:47:05 [2025-04-24 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982143', 'tblTempUsageDetail_20' ) start [2025-04-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982143', 'tblTempUsageDetail_20' ) end [2025-04-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982143', 'tblTempVendorCDR_20' ) start [2025-04-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982143', 'tblTempVendorCDR_20' ) end [2025-04-24 20:47:18] Production.INFO: ProcessCDR(1,14982143,1,1,2) [2025-04-24 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982143', 'tblTempUsageDetail_20' ) start [2025-04-24 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982143', 'tblTempUsageDetail_20' ) end [2025-04-24 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:47:22] Production.INFO: ==13580== Releasing lock... [2025-04-24 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:47:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-24 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:48:05 [end_date_ymd] => 2025-04-24 20:48:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:48:05' and `end` < '2025-04-24 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-04-24 20:48:18] Production.INFO: count ==2417 [2025-04-24 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:48:05 - End Time 2025-04-24 20:48:05 [2025-04-24 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982148', 'tblTempUsageDetail_20' ) start [2025-04-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982148', 'tblTempUsageDetail_20' ) end [2025-04-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982148', 'tblTempVendorCDR_20' ) start [2025-04-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982148', 'tblTempVendorCDR_20' ) end [2025-04-24 20:48:18] Production.INFO: ProcessCDR(1,14982148,1,1,2) [2025-04-24 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982148', 'tblTempUsageDetail_20' ) start [2025-04-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982148', 'tblTempUsageDetail_20' ) end [2025-04-24 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:48:22] Production.INFO: ==13679== Releasing lock... [2025-04-24 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:48:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-24 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:49:05 [end_date_ymd] => 2025-04-24 20:49:05 [RateCDR] => 1 ) [2025-04-24 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:49:05' and `end` < '2025-04-24 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:49:18] Production.INFO: count ==2397 [2025-04-24 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:49:05 - End Time 2025-04-24 20:49:05 [2025-04-24 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982153', 'tblTempUsageDetail_20' ) start [2025-04-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982153', 'tblTempUsageDetail_20' ) end [2025-04-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982153', 'tblTempVendorCDR_20' ) start [2025-04-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982153', 'tblTempVendorCDR_20' ) end [2025-04-24 20:49:18] Production.INFO: ProcessCDR(1,14982153,1,1,2) [2025-04-24 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982153', 'tblTempUsageDetail_20' ) start [2025-04-24 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982153', 'tblTempUsageDetail_20' ) end [2025-04-24 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:49:22] Production.INFO: ==13764== Releasing lock... [2025-04-24 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:49:22] Production.INFO: 46 MB #Memory Used# [2025-04-24 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:50:06 [end_date_ymd] => 2025-04-24 20:50:06 [RateCDR] => 1 ) [2025-04-24 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:50:06' and `end` < '2025-04-24 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:50:19] Production.INFO: count ==2343 [2025-04-24 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:50:06 - End Time 2025-04-24 20:50:06 [2025-04-24 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982159', 'tblTempUsageDetail_20' ) start [2025-04-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982159', 'tblTempUsageDetail_20' ) end [2025-04-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982159', 'tblTempVendorCDR_20' ) start [2025-04-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982159', 'tblTempVendorCDR_20' ) end [2025-04-24 20:50:19] Production.INFO: ProcessCDR(1,14982159,1,1,2) [2025-04-24 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982159', 'tblTempUsageDetail_20' ) start [2025-04-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982159', 'tblTempUsageDetail_20' ) end [2025-04-24 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:50:23] Production.INFO: ==13857== Releasing lock... [2025-04-24 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:50:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-24 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:51:05 [end_date_ymd] => 2025-04-24 20:51:05 [RateCDR] => 1 ) [2025-04-24 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:51:05' and `end` < '2025-04-24 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:51:18] Production.INFO: count ==2278 [2025-04-24 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:51:05 - End Time 2025-04-24 20:51:05 [2025-04-24 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982164', 'tblTempUsageDetail_20' ) start [2025-04-24 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982164', 'tblTempUsageDetail_20' ) end [2025-04-24 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982164', 'tblTempVendorCDR_20' ) start [2025-04-24 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982164', 'tblTempVendorCDR_20' ) end [2025-04-24 20:51:18] Production.INFO: ProcessCDR(1,14982164,1,1,2) [2025-04-24 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982164', 'tblTempUsageDetail_20' ) start [2025-04-24 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982164', 'tblTempUsageDetail_20' ) end [2025-04-24 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:51:22] Production.INFO: ==13988== Releasing lock... [2025-04-24 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-24 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:52:05 [end_date_ymd] => 2025-04-24 20:52:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:52:05' and `end` < '2025-04-24 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-04-24 20:52:18] Production.INFO: count ==2258 [2025-04-24 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:52:05 - End Time 2025-04-24 20:52:05 [2025-04-24 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982169', 'tblTempUsageDetail_20' ) start [2025-04-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982169', 'tblTempUsageDetail_20' ) end [2025-04-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982169', 'tblTempVendorCDR_20' ) start [2025-04-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982169', 'tblTempVendorCDR_20' ) end [2025-04-24 20:52:19] Production.INFO: ProcessCDR(1,14982169,1,1,2) [2025-04-24 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982169', 'tblTempUsageDetail_20' ) start [2025-04-24 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982169', 'tblTempUsageDetail_20' ) end [2025-04-24 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:52:24] Production.INFO: ==14084== Releasing lock... [2025-04-24 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:52:24] Production.INFO: 45 MB #Memory Used# [2025-04-24 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:53:04 [end_date_ymd] => 2025-04-24 20:53:04 [RateCDR] => 1 ) [2025-04-24 20: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-04-24 17:53:04' and `end` < '2025-04-24 20: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-04-24 20:53:17] Production.INFO: count ==2259 [2025-04-24 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:53:04 - End Time 2025-04-24 20:53:04 [2025-04-24 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982174', 'tblTempUsageDetail_20' ) start [2025-04-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982174', 'tblTempUsageDetail_20' ) end [2025-04-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982174', 'tblTempVendorCDR_20' ) start [2025-04-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982174', 'tblTempVendorCDR_20' ) end [2025-04-24 20:53:18] Production.INFO: ProcessCDR(1,14982174,1,1,2) [2025-04-24 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982174', 'tblTempUsageDetail_20' ) start [2025-04-24 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982174', 'tblTempUsageDetail_20' ) end [2025-04-24 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:53:22] Production.INFO: ==14178== Releasing lock... [2025-04-24 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:53:22] Production.INFO: 45 MB #Memory Used# [2025-04-24 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:54:05 [end_date_ymd] => 2025-04-24 20:54:05 [RateCDR] => 1 ) [2025-04-24 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:54:05' and `end` < '2025-04-24 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:54:18] Production.INFO: count ==2237 [2025-04-24 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:54:05 - End Time 2025-04-24 20:54:05 [2025-04-24 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982179', 'tblTempUsageDetail_20' ) start [2025-04-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982179', 'tblTempUsageDetail_20' ) end [2025-04-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982179', 'tblTempVendorCDR_20' ) start [2025-04-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982179', 'tblTempVendorCDR_20' ) end [2025-04-24 20:54:19] Production.INFO: ProcessCDR(1,14982179,1,1,2) [2025-04-24 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982179', 'tblTempUsageDetail_20' ) start [2025-04-24 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982179', 'tblTempUsageDetail_20' ) end [2025-04-24 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:54:22] Production.INFO: ==14267== Releasing lock... [2025-04-24 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:54:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-24 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:55:05 [end_date_ymd] => 2025-04-24 20:55:05 [RateCDR] => 1 ) [2025-04-24 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:55:05' and `end` < '2025-04-24 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:55:18] Production.INFO: count ==2233 [2025-04-24 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:55:05 - End Time 2025-04-24 20:55:05 [2025-04-24 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982184', 'tblTempUsageDetail_20' ) start [2025-04-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982184', 'tblTempUsageDetail_20' ) end [2025-04-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982184', 'tblTempVendorCDR_20' ) start [2025-04-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982184', 'tblTempVendorCDR_20' ) end [2025-04-24 20:55:19] Production.INFO: ProcessCDR(1,14982184,1,1,2) [2025-04-24 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982184', 'tblTempUsageDetail_20' ) start [2025-04-24 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982184', 'tblTempUsageDetail_20' ) end [2025-04-24 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:55:22] Production.INFO: ==14361== Releasing lock... [2025-04-24 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:55:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-24 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:56:05 [end_date_ymd] => 2025-04-24 20:56:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 17:56:05' and `end` < '2025-04-24 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-04-24 20:56:18] Production.INFO: count ==2219 [2025-04-24 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:56:05 - End Time 2025-04-24 20:56:05 [2025-04-24 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982189', 'tblTempUsageDetail_20' ) start [2025-04-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982189', 'tblTempUsageDetail_20' ) end [2025-04-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982189', 'tblTempVendorCDR_20' ) start [2025-04-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982189', 'tblTempVendorCDR_20' ) end [2025-04-24 20:56:19] Production.INFO: ProcessCDR(1,14982189,1,1,2) [2025-04-24 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982189', 'tblTempUsageDetail_20' ) start [2025-04-24 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982189', 'tblTempUsageDetail_20' ) end [2025-04-24 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:56:22] Production.INFO: ==14460== Releasing lock... [2025-04-24 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:56:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-24 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:57:05 [end_date_ymd] => 2025-04-24 20:57:05 [RateCDR] => 1 ) [2025-04-24 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:57:05' and `end` < '2025-04-24 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:57:18] Production.INFO: count ==2218 [2025-04-24 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:57:05 - End Time 2025-04-24 20:57:05 [2025-04-24 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982194', 'tblTempUsageDetail_20' ) start [2025-04-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982194', 'tblTempUsageDetail_20' ) end [2025-04-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982194', 'tblTempVendorCDR_20' ) start [2025-04-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982194', 'tblTempVendorCDR_20' ) end [2025-04-24 20:57:19] Production.INFO: ProcessCDR(1,14982194,1,1,2) [2025-04-24 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982194', 'tblTempUsageDetail_20' ) start [2025-04-24 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982194', 'tblTempUsageDetail_20' ) end [2025-04-24 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:57:24] Production.INFO: ==14551== Releasing lock... [2025-04-24 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:57:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-24 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:58:05 [end_date_ymd] => 2025-04-24 20:58:05 [RateCDR] => 1 ) [2025-04-24 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:58:05' and `end` < '2025-04-24 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:58:18] Production.INFO: count ==2201 [2025-04-24 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 17:58:05 - End Time 2025-04-24 20:58:05 [2025-04-24 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982199', 'tblTempUsageDetail_20' ) start [2025-04-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982199', 'tblTempUsageDetail_20' ) end [2025-04-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982199', 'tblTempVendorCDR_20' ) start [2025-04-24 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982199', 'tblTempVendorCDR_20' ) end [2025-04-24 20:58:19] Production.INFO: ProcessCDR(1,14982199,1,1,2) [2025-04-24 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982199', 'tblTempUsageDetail_20' ) start [2025-04-24 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982199', 'tblTempUsageDetail_20' ) end [2025-04-24 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:58:22] Production.INFO: ==14654== Releasing lock... [2025-04-24 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-24 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 17:59:06 [end_date_ymd] => 2025-04-24 20:59:06 [RateCDR] => 1 ) [2025-04-24 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 17:59:06' and `end` < '2025-04-24 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 20:59:18] Production.INFO: count ==2193 [2025-04-24 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-24 17:59:06 - End Time 2025-04-24 20:59:06 [2025-04-24 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982204', 'tblTempUsageDetail_20' ) start [2025-04-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982204', 'tblTempUsageDetail_20' ) end [2025-04-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982204', 'tblTempVendorCDR_20' ) start [2025-04-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982204', 'tblTempVendorCDR_20' ) end [2025-04-24 20:59:19] Production.INFO: ProcessCDR(1,14982204,1,1,2) [2025-04-24 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982204', 'tblTempUsageDetail_20' ) start [2025-04-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982204', 'tblTempUsageDetail_20' ) end [2025-04-24 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 20:59:22] Production.INFO: ==14767== Releasing lock... [2025-04-24 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 20:59:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-24 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:00:06 [end_date_ymd] => 2025-04-24 21:00:06 [RateCDR] => 1 ) [2025-04-24 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:00:06' and `end` < '2025-04-24 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:00:19] Production.INFO: count ==2190 [2025-04-24 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:00:06 - End Time 2025-04-24 21:00:06 [2025-04-24 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982210', 'tblTempUsageDetail_20' ) start [2025-04-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982210', 'tblTempUsageDetail_20' ) end [2025-04-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982210', 'tblTempVendorCDR_20' ) start [2025-04-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982210', 'tblTempVendorCDR_20' ) end [2025-04-24 21:00:19] Production.INFO: ProcessCDR(1,14982210,1,1,2) [2025-04-24 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982210', 'tblTempUsageDetail_20' ) start [2025-04-24 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982210', 'tblTempUsageDetail_20' ) end [2025-04-24 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:00:23] Production.INFO: ==14882== Releasing lock... [2025-04-24 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:00:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-24 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:01:06 [end_date_ymd] => 2025-04-24 21:01:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:01:06' and `end` < '2025-04-24 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-04-24 21:01:18] Production.INFO: count ==2089 [2025-04-24 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:01:06 - End Time 2025-04-24 21:01:06 [2025-04-24 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982215', 'tblTempUsageDetail_20' ) start [2025-04-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982215', 'tblTempUsageDetail_20' ) end [2025-04-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982215', 'tblTempVendorCDR_20' ) start [2025-04-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982215', 'tblTempVendorCDR_20' ) end [2025-04-24 21:01:19] Production.INFO: ProcessCDR(1,14982215,1,1,2) [2025-04-24 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982215', 'tblTempUsageDetail_20' ) start [2025-04-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982215', 'tblTempUsageDetail_20' ) end [2025-04-24 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:01:22] Production.INFO: ==15005== Releasing lock... [2025-04-24 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:01:22] Production.INFO: 44 MB #Memory Used# [2025-04-24 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:02:05 [end_date_ymd] => 2025-04-24 21:02:05 [RateCDR] => 1 ) [2025-04-24 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:02:05' and `end` < '2025-04-24 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:02:17] Production.INFO: count ==2079 [2025-04-24 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:02:05 - End Time 2025-04-24 21:02:05 [2025-04-24 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982220', 'tblTempUsageDetail_20' ) start [2025-04-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982220', 'tblTempUsageDetail_20' ) end [2025-04-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982220', 'tblTempVendorCDR_20' ) start [2025-04-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982220', 'tblTempVendorCDR_20' ) end [2025-04-24 21:02:18] Production.INFO: ProcessCDR(1,14982220,1,1,2) [2025-04-24 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982220', 'tblTempUsageDetail_20' ) start [2025-04-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982220', 'tblTempUsageDetail_20' ) end [2025-04-24 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:02:21] Production.INFO: ==15096== Releasing lock... [2025-04-24 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:02:21] Production.INFO: 44 MB #Memory Used# [2025-04-24 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:03:05 [end_date_ymd] => 2025-04-24 21:03:05 [RateCDR] => 1 ) [2025-04-24 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:03:05' and `end` < '2025-04-24 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:03:18] Production.INFO: count ==2063 [2025-04-24 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:03:05 - End Time 2025-04-24 21:03:05 [2025-04-24 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982225', 'tblTempUsageDetail_20' ) start [2025-04-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982225', 'tblTempUsageDetail_20' ) end [2025-04-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982225', 'tblTempVendorCDR_20' ) start [2025-04-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982225', 'tblTempVendorCDR_20' ) end [2025-04-24 21:03:19] Production.INFO: ProcessCDR(1,14982225,1,1,2) [2025-04-24 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982225', 'tblTempUsageDetail_20' ) start [2025-04-24 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982225', 'tblTempUsageDetail_20' ) end [2025-04-24 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:03:24] Production.INFO: ==15202== Releasing lock... [2025-04-24 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:03:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:04:06 [end_date_ymd] => 2025-04-24 21:04:06 [RateCDR] => 1 ) [2025-04-24 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:04:06' and `end` < '2025-04-24 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:04:18] Production.INFO: count ==2059 [2025-04-24 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:04:06 - End Time 2025-04-24 21:04:06 [2025-04-24 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982230', 'tblTempUsageDetail_20' ) start [2025-04-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982230', 'tblTempUsageDetail_20' ) end [2025-04-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982230', 'tblTempVendorCDR_20' ) start [2025-04-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982230', 'tblTempVendorCDR_20' ) end [2025-04-24 21:04:19] Production.INFO: ProcessCDR(1,14982230,1,1,2) [2025-04-24 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982230', 'tblTempUsageDetail_20' ) start [2025-04-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982230', 'tblTempUsageDetail_20' ) end [2025-04-24 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:04:24] Production.INFO: ==15295== Releasing lock... [2025-04-24 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:04:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:05:05 [end_date_ymd] => 2025-04-24 21:05:05 [RateCDR] => 1 ) [2025-04-24 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:05:05' and `end` < '2025-04-24 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:05:18] Production.INFO: count ==2053 [2025-04-24 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:05:05 - End Time 2025-04-24 21:05:05 [2025-04-24 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982235', 'tblTempUsageDetail_20' ) start [2025-04-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982235', 'tblTempUsageDetail_20' ) end [2025-04-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982235', 'tblTempVendorCDR_20' ) start [2025-04-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982235', 'tblTempVendorCDR_20' ) end [2025-04-24 21:05:18] Production.INFO: ProcessCDR(1,14982235,1,1,2) [2025-04-24 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982235', 'tblTempUsageDetail_20' ) start [2025-04-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982235', 'tblTempUsageDetail_20' ) end [2025-04-24 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:05:22] Production.INFO: ==15374== Releasing lock... [2025-04-24 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:05:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:06:05 [end_date_ymd] => 2025-04-24 21:06:05 [RateCDR] => 1 ) [2025-04-24 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:06:05' and `end` < '2025-04-24 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:06:18] Production.INFO: count ==2055 [2025-04-24 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:06:05 - End Time 2025-04-24 21:06:05 [2025-04-24 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982240', 'tblTempUsageDetail_20' ) start [2025-04-24 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982240', 'tblTempUsageDetail_20' ) end [2025-04-24 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982240', 'tblTempVendorCDR_20' ) start [2025-04-24 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982240', 'tblTempVendorCDR_20' ) end [2025-04-24 21:06:19] Production.INFO: ProcessCDR(1,14982240,1,1,2) [2025-04-24 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982240', 'tblTempUsageDetail_20' ) start [2025-04-24 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982240', 'tblTempUsageDetail_20' ) end [2025-04-24 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:06:22] Production.INFO: ==15507== Releasing lock... [2025-04-24 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:06:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:07:05 [end_date_ymd] => 2025-04-24 21:07:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:07:05' and `end` < '2025-04-24 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-04-24 21:07:17] Production.INFO: count ==2046 [2025-04-24 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:07:05 - End Time 2025-04-24 21:07:05 [2025-04-24 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982245', 'tblTempUsageDetail_20' ) start [2025-04-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982245', 'tblTempUsageDetail_20' ) end [2025-04-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982245', 'tblTempVendorCDR_20' ) start [2025-04-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982245', 'tblTempVendorCDR_20' ) end [2025-04-24 21:07:18] Production.INFO: ProcessCDR(1,14982245,1,1,2) [2025-04-24 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982245', 'tblTempUsageDetail_20' ) start [2025-04-24 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982245', 'tblTempUsageDetail_20' ) end [2025-04-24 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:07:21] Production.INFO: ==15593== Releasing lock... [2025-04-24 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:07:21] Production.INFO: 43.75 MB #Memory Used# [2025-04-24 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:08:05 [end_date_ymd] => 2025-04-24 21:08:05 [RateCDR] => 1 ) [2025-04-24 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:08:05' and `end` < '2025-04-24 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:08:18] Production.INFO: count ==2042 [2025-04-24 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:08:05 - End Time 2025-04-24 21:08:05 [2025-04-24 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982250', 'tblTempUsageDetail_20' ) start [2025-04-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982250', 'tblTempUsageDetail_20' ) end [2025-04-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982250', 'tblTempVendorCDR_20' ) start [2025-04-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982250', 'tblTempVendorCDR_20' ) end [2025-04-24 21:08:18] Production.INFO: ProcessCDR(1,14982250,1,1,2) [2025-04-24 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982250', 'tblTempUsageDetail_20' ) start [2025-04-24 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982250', 'tblTempUsageDetail_20' ) end [2025-04-24 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:08:22] Production.INFO: ==15690== Releasing lock... [2025-04-24 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:08:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-24 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:09:05 [end_date_ymd] => 2025-04-24 21:09:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:09:05' and `end` < '2025-04-24 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-04-24 21:09:18] Production.INFO: count ==2039 [2025-04-24 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:09:05 - End Time 2025-04-24 21:09:05 [2025-04-24 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982255', 'tblTempUsageDetail_20' ) start [2025-04-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982255', 'tblTempUsageDetail_20' ) end [2025-04-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982255', 'tblTempVendorCDR_20' ) start [2025-04-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982255', 'tblTempVendorCDR_20' ) end [2025-04-24 21:09:18] Production.INFO: ProcessCDR(1,14982255,1,1,2) [2025-04-24 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982255', 'tblTempUsageDetail_20' ) start [2025-04-24 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982255', 'tblTempUsageDetail_20' ) end [2025-04-24 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:09:23] Production.INFO: ==15789== Releasing lock... [2025-04-24 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:09:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:10:06 [end_date_ymd] => 2025-04-24 21:10:06 [RateCDR] => 1 ) [2025-04-24 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:10:06' and `end` < '2025-04-24 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:10:19] Production.INFO: count ==2039 [2025-04-24 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:10:06 - End Time 2025-04-24 21:10:06 [2025-04-24 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982261', 'tblTempUsageDetail_20' ) start [2025-04-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982261', 'tblTempUsageDetail_20' ) end [2025-04-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982261', 'tblTempVendorCDR_20' ) start [2025-04-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982261', 'tblTempVendorCDR_20' ) end [2025-04-24 21:10:19] Production.INFO: ProcessCDR(1,14982261,1,1,2) [2025-04-24 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982261', 'tblTempUsageDetail_20' ) start [2025-04-24 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982261', 'tblTempUsageDetail_20' ) end [2025-04-24 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:10:24] Production.INFO: ==15881== Releasing lock... [2025-04-24 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:10:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-24 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:11:05 [end_date_ymd] => 2025-04-24 21:11:05 [RateCDR] => 1 ) [2025-04-24 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:11:05' and `end` < '2025-04-24 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:11:17] Production.INFO: count ==1958 [2025-04-24 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:11:05 - End Time 2025-04-24 21:11:05 [2025-04-24 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982266', 'tblTempUsageDetail_20' ) start [2025-04-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982266', 'tblTempUsageDetail_20' ) end [2025-04-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982266', 'tblTempVendorCDR_20' ) start [2025-04-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982266', 'tblTempVendorCDR_20' ) end [2025-04-24 21:11:18] Production.INFO: ProcessCDR(1,14982266,1,1,2) [2025-04-24 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982266', 'tblTempUsageDetail_20' ) start [2025-04-24 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982266', 'tblTempUsageDetail_20' ) end [2025-04-24 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:11:23] Production.INFO: ==15962== Releasing lock... [2025-04-24 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:11:23] Production.INFO: 43 MB #Memory Used# [2025-04-24 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:12:05 [end_date_ymd] => 2025-04-24 21:12:05 [RateCDR] => 1 ) [2025-04-24 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:12:05' and `end` < '2025-04-24 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:12:18] Production.INFO: count ==1945 [2025-04-24 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:12:05 - End Time 2025-04-24 21:12:05 [2025-04-24 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982271', 'tblTempUsageDetail_20' ) start [2025-04-24 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982271', 'tblTempUsageDetail_20' ) end [2025-04-24 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982271', 'tblTempVendorCDR_20' ) start [2025-04-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982271', 'tblTempVendorCDR_20' ) end [2025-04-24 21:12:19] Production.INFO: ProcessCDR(1,14982271,1,1,2) [2025-04-24 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982271', 'tblTempUsageDetail_20' ) start [2025-04-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982271', 'tblTempUsageDetail_20' ) end [2025-04-24 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:12:22] Production.INFO: ==16057== Releasing lock... [2025-04-24 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:12:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:13:05 [end_date_ymd] => 2025-04-24 21:13:05 [RateCDR] => 1 ) [2025-04-24 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:13:05' and `end` < '2025-04-24 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:13:18] Production.INFO: count ==1941 [2025-04-24 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:13:05 - End Time 2025-04-24 21:13:05 [2025-04-24 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982276', 'tblTempUsageDetail_20' ) start [2025-04-24 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982276', 'tblTempUsageDetail_20' ) end [2025-04-24 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982276', 'tblTempVendorCDR_20' ) start [2025-04-24 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982276', 'tblTempVendorCDR_20' ) end [2025-04-24 21:13:19] Production.INFO: ProcessCDR(1,14982276,1,1,2) [2025-04-24 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982276', 'tblTempUsageDetail_20' ) start [2025-04-24 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982276', 'tblTempUsageDetail_20' ) end [2025-04-24 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:13:24] Production.INFO: ==16155== Releasing lock... [2025-04-24 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:13:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:14:05 [end_date_ymd] => 2025-04-24 21:14:05 [RateCDR] => 1 ) [2025-04-24 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:14:05' and `end` < '2025-04-24 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:14:18] Production.INFO: count ==1936 [2025-04-24 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:14:05 - End Time 2025-04-24 21:14:05 [2025-04-24 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982281', 'tblTempUsageDetail_20' ) start [2025-04-24 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982281', 'tblTempUsageDetail_20' ) end [2025-04-24 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982281', 'tblTempVendorCDR_20' ) start [2025-04-24 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982281', 'tblTempVendorCDR_20' ) end [2025-04-24 21:14:18] Production.INFO: ProcessCDR(1,14982281,1,1,2) [2025-04-24 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982281', 'tblTempUsageDetail_20' ) start [2025-04-24 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982281', 'tblTempUsageDetail_20' ) end [2025-04-24 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:14:22] Production.INFO: ==16244== Releasing lock... [2025-04-24 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:14:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-24 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:15:05 [end_date_ymd] => 2025-04-24 21:15:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:15:05' and `end` < '2025-04-24 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-04-24 21:15:18] Production.INFO: count ==1924 [2025-04-24 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:15:05 - End Time 2025-04-24 21:15:05 [2025-04-24 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982286', 'tblTempUsageDetail_20' ) start [2025-04-24 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982286', 'tblTempUsageDetail_20' ) end [2025-04-24 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982286', 'tblTempVendorCDR_20' ) start [2025-04-24 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982286', 'tblTempVendorCDR_20' ) end [2025-04-24 21:15:19] Production.INFO: ProcessCDR(1,14982286,1,1,2) [2025-04-24 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982286', 'tblTempUsageDetail_20' ) start [2025-04-24 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982286', 'tblTempUsageDetail_20' ) end [2025-04-24 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:15:22] Production.INFO: ==16337== Releasing lock... [2025-04-24 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:15:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-24 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:16:05 [end_date_ymd] => 2025-04-24 21:16:05 [RateCDR] => 1 ) [2025-04-24 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:16:05' and `end` < '2025-04-24 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:16:17] Production.INFO: count ==1922 [2025-04-24 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:16:05 - End Time 2025-04-24 21:16:05 [2025-04-24 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982291', 'tblTempUsageDetail_20' ) start [2025-04-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982291', 'tblTempUsageDetail_20' ) end [2025-04-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982291', 'tblTempVendorCDR_20' ) start [2025-04-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982291', 'tblTempVendorCDR_20' ) end [2025-04-24 21:16:18] Production.INFO: ProcessCDR(1,14982291,1,1,2) [2025-04-24 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982291', 'tblTempUsageDetail_20' ) start [2025-04-24 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982291', 'tblTempUsageDetail_20' ) end [2025-04-24 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:16:23] Production.INFO: ==16429== Releasing lock... [2025-04-24 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:16:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-24 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:17:05 [end_date_ymd] => 2025-04-24 21:17:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:17:05' and `end` < '2025-04-24 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-04-24 21:17:18] Production.INFO: count ==1920 [2025-04-24 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:17:05 - End Time 2025-04-24 21:17:05 [2025-04-24 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982296', 'tblTempUsageDetail_20' ) start [2025-04-24 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982296', 'tblTempUsageDetail_20' ) end [2025-04-24 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982296', 'tblTempVendorCDR_20' ) start [2025-04-24 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982296', 'tblTempVendorCDR_20' ) end [2025-04-24 21:17:19] Production.INFO: ProcessCDR(1,14982296,1,1,2) [2025-04-24 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982296', 'tblTempUsageDetail_20' ) start [2025-04-24 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982296', 'tblTempUsageDetail_20' ) end [2025-04-24 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:17:24] Production.INFO: ==16511== Releasing lock... [2025-04-24 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:17:24] Production.INFO: 43 MB #Memory Used# [2025-04-24 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:18:04 [end_date_ymd] => 2025-04-24 21:18:04 [RateCDR] => 1 ) [2025-04-24 21: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-04-24 18:18:04' and `end` < '2025-04-24 21: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-04-24 21:18:17] Production.INFO: count ==1916 [2025-04-24 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:18:04 - End Time 2025-04-24 21:18:04 [2025-04-24 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982301', 'tblTempUsageDetail_20' ) start [2025-04-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982301', 'tblTempUsageDetail_20' ) end [2025-04-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982301', 'tblTempVendorCDR_20' ) start [2025-04-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982301', 'tblTempVendorCDR_20' ) end [2025-04-24 21:18:18] Production.INFO: ProcessCDR(1,14982301,1,1,2) [2025-04-24 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982301', 'tblTempUsageDetail_20' ) start [2025-04-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982301', 'tblTempUsageDetail_20' ) end [2025-04-24 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:18:23] Production.INFO: ==16615== Releasing lock... [2025-04-24 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:18:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-24 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:19:05 [end_date_ymd] => 2025-04-24 21:19:05 [RateCDR] => 1 ) [2025-04-24 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:19:05' and `end` < '2025-04-24 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:19:18] Production.INFO: count ==1917 [2025-04-24 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:19:05 - End Time 2025-04-24 21:19:05 [2025-04-24 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982306', 'tblTempUsageDetail_20' ) start [2025-04-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982306', 'tblTempUsageDetail_20' ) end [2025-04-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982306', 'tblTempVendorCDR_20' ) start [2025-04-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982306', 'tblTempVendorCDR_20' ) end [2025-04-24 21:19:19] Production.INFO: ProcessCDR(1,14982306,1,1,2) [2025-04-24 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982306', 'tblTempUsageDetail_20' ) start [2025-04-24 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982306', 'tblTempUsageDetail_20' ) end [2025-04-24 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:19:22] Production.INFO: ==16717== Releasing lock... [2025-04-24 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:19:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-24 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:20:06 [end_date_ymd] => 2025-04-24 21:20:06 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:20:06' and `end` < '2025-04-24 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-04-24 21:20:19] Production.INFO: count ==1910 [2025-04-24 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:20:06 - End Time 2025-04-24 21:20:06 [2025-04-24 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982312', 'tblTempUsageDetail_20' ) start [2025-04-24 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982312', 'tblTempUsageDetail_20' ) end [2025-04-24 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982312', 'tblTempVendorCDR_20' ) start [2025-04-24 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982312', 'tblTempVendorCDR_20' ) end [2025-04-24 21:20:20] Production.INFO: ProcessCDR(1,14982312,1,1,2) [2025-04-24 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982312', 'tblTempUsageDetail_20' ) start [2025-04-24 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982312', 'tblTempUsageDetail_20' ) end [2025-04-24 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:20:23] Production.INFO: ==16812== Releasing lock... [2025-04-24 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:20:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-24 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:21:05 [end_date_ymd] => 2025-04-24 21:21:05 [RateCDR] => 1 ) [2025-04-24 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:21:05' and `end` < '2025-04-24 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:21:18] Production.INFO: count ==1818 [2025-04-24 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:21:05 - End Time 2025-04-24 21:21:05 [2025-04-24 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982317', 'tblTempUsageDetail_20' ) start [2025-04-24 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982317', 'tblTempUsageDetail_20' ) end [2025-04-24 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982317', 'tblTempVendorCDR_20' ) start [2025-04-24 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982317', 'tblTempVendorCDR_20' ) end [2025-04-24 21:21:19] Production.INFO: ProcessCDR(1,14982317,1,1,2) [2025-04-24 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982317', 'tblTempUsageDetail_20' ) start [2025-04-24 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982317', 'tblTempUsageDetail_20' ) end [2025-04-24 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:21:22] Production.INFO: ==16889== Releasing lock... [2025-04-24 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:21:22] Production.INFO: 42 MB #Memory Used# [2025-04-24 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:22:05 [end_date_ymd] => 2025-04-24 21:22:05 [RateCDR] => 1 ) [2025-04-24 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:22:05' and `end` < '2025-04-24 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:22:18] Production.INFO: count ==1808 [2025-04-24 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:22:05 - End Time 2025-04-24 21:22:05 [2025-04-24 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982322', 'tblTempUsageDetail_20' ) start [2025-04-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982322', 'tblTempUsageDetail_20' ) end [2025-04-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982322', 'tblTempVendorCDR_20' ) start [2025-04-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982322', 'tblTempVendorCDR_20' ) end [2025-04-24 21:22:19] Production.INFO: ProcessCDR(1,14982322,1,1,2) [2025-04-24 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982322', 'tblTempUsageDetail_20' ) start [2025-04-24 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982322', 'tblTempUsageDetail_20' ) end [2025-04-24 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:22:24] Production.INFO: ==17021== Releasing lock... [2025-04-24 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:22:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-24 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:23:04 [end_date_ymd] => 2025-04-24 21:23:04 [RateCDR] => 1 ) [2025-04-24 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:23:04' and `end` < '2025-04-24 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:23:17] Production.INFO: count ==1804 [2025-04-24 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:23:04 - End Time 2025-04-24 21:23:04 [2025-04-24 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982327', 'tblTempUsageDetail_20' ) start [2025-04-24 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982327', 'tblTempUsageDetail_20' ) end [2025-04-24 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982327', 'tblTempVendorCDR_20' ) start [2025-04-24 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982327', 'tblTempVendorCDR_20' ) end [2025-04-24 21:23:18] Production.INFO: ProcessCDR(1,14982327,1,1,2) [2025-04-24 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982327', 'tblTempUsageDetail_20' ) start [2025-04-24 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982327', 'tblTempUsageDetail_20' ) end [2025-04-24 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:23:21] Production.INFO: ==17110== Releasing lock... [2025-04-24 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:24:05 [end_date_ymd] => 2025-04-24 21:24:05 [RateCDR] => 1 ) [2025-04-24 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:24:05' and `end` < '2025-04-24 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:24:18] Production.INFO: count ==1791 [2025-04-24 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:24:05 - End Time 2025-04-24 21:24:05 [2025-04-24 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982332', 'tblTempUsageDetail_20' ) start [2025-04-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982332', 'tblTempUsageDetail_20' ) end [2025-04-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982332', 'tblTempVendorCDR_20' ) start [2025-04-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982332', 'tblTempVendorCDR_20' ) end [2025-04-24 21:24:18] Production.INFO: ProcessCDR(1,14982332,1,1,2) [2025-04-24 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982332', 'tblTempUsageDetail_20' ) start [2025-04-24 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982332', 'tblTempUsageDetail_20' ) end [2025-04-24 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:24:23] Production.INFO: ==17202== Releasing lock... [2025-04-24 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:24:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:25:05 [end_date_ymd] => 2025-04-24 21:25:05 [RateCDR] => 1 ) [2025-04-24 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:25:05' and `end` < '2025-04-24 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:25:17] Production.INFO: count ==1786 [2025-04-24 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:25:05 - End Time 2025-04-24 21:25:05 [2025-04-24 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982337', 'tblTempUsageDetail_20' ) start [2025-04-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982337', 'tblTempUsageDetail_20' ) end [2025-04-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982337', 'tblTempVendorCDR_20' ) start [2025-04-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982337', 'tblTempVendorCDR_20' ) end [2025-04-24 21:25:18] Production.INFO: ProcessCDR(1,14982337,1,1,2) [2025-04-24 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982337', 'tblTempUsageDetail_20' ) start [2025-04-24 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982337', 'tblTempUsageDetail_20' ) end [2025-04-24 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:25:21] Production.INFO: ==17306== Releasing lock... [2025-04-24 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:25:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:26:05 [end_date_ymd] => 2025-04-24 21:26:05 [RateCDR] => 1 ) [2025-04-24 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:26:05' and `end` < '2025-04-24 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:26:19] Production.INFO: count ==1780 [2025-04-24 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:26:05 - End Time 2025-04-24 21:26:05 [2025-04-24 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982342', 'tblTempUsageDetail_20' ) start [2025-04-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982342', 'tblTempUsageDetail_20' ) end [2025-04-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982342', 'tblTempVendorCDR_20' ) start [2025-04-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982342', 'tblTempVendorCDR_20' ) end [2025-04-24 21:26:19] Production.INFO: ProcessCDR(1,14982342,1,1,2) [2025-04-24 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982342', 'tblTempUsageDetail_20' ) start [2025-04-24 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982342', 'tblTempUsageDetail_20' ) end [2025-04-24 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:26:24] Production.INFO: ==17403== Releasing lock... [2025-04-24 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:26:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:27:05 [end_date_ymd] => 2025-04-24 21:27:05 [RateCDR] => 1 ) [2025-04-24 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:27:05' and `end` < '2025-04-24 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:27:18] Production.INFO: count ==1779 [2025-04-24 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:27:05 - End Time 2025-04-24 21:27:05 [2025-04-24 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982347', 'tblTempUsageDetail_20' ) start [2025-04-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982347', 'tblTempUsageDetail_20' ) end [2025-04-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982347', 'tblTempVendorCDR_20' ) start [2025-04-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982347', 'tblTempVendorCDR_20' ) end [2025-04-24 21:27:19] Production.INFO: ProcessCDR(1,14982347,1,1,2) [2025-04-24 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982347', 'tblTempUsageDetail_20' ) start [2025-04-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982347', 'tblTempUsageDetail_20' ) end [2025-04-24 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:27:22] Production.INFO: ==17483== Releasing lock... [2025-04-24 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:27:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:28:05 [end_date_ymd] => 2025-04-24 21:28:05 [RateCDR] => 1 ) [2025-04-24 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:28:05' and `end` < '2025-04-24 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:28:17] Production.INFO: count ==1772 [2025-04-24 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:28:05 - End Time 2025-04-24 21:28:05 [2025-04-24 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982352', 'tblTempUsageDetail_20' ) start [2025-04-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982352', 'tblTempUsageDetail_20' ) end [2025-04-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982352', 'tblTempVendorCDR_20' ) start [2025-04-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982352', 'tblTempVendorCDR_20' ) end [2025-04-24 21:28:18] Production.INFO: ProcessCDR(1,14982352,1,1,2) [2025-04-24 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982352', 'tblTempUsageDetail_20' ) start [2025-04-24 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982352', 'tblTempUsageDetail_20' ) end [2025-04-24 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:28:23] Production.INFO: ==17573== Releasing lock... [2025-04-24 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:28:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:29:05 [end_date_ymd] => 2025-04-24 21:29:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:29:05' and `end` < '2025-04-24 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-04-24 21:29:18] Production.INFO: count ==1770 [2025-04-24 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:29:05 - End Time 2025-04-24 21:29:05 [2025-04-24 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982357', 'tblTempUsageDetail_20' ) start [2025-04-24 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982357', 'tblTempUsageDetail_20' ) end [2025-04-24 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982357', 'tblTempVendorCDR_20' ) start [2025-04-24 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982357', 'tblTempVendorCDR_20' ) end [2025-04-24 21:29:18] Production.INFO: ProcessCDR(1,14982357,1,1,2) [2025-04-24 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982357', 'tblTempUsageDetail_20' ) start [2025-04-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982357', 'tblTempUsageDetail_20' ) end [2025-04-24 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:29:22] Production.INFO: ==17662== Releasing lock... [2025-04-24 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-24 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:30:06 [end_date_ymd] => 2025-04-24 21:30:06 [RateCDR] => 1 ) [2025-04-24 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:30:06' and `end` < '2025-04-24 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:30:19] Production.INFO: count ==1768 [2025-04-24 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:30:06 - End Time 2025-04-24 21:30:06 [2025-04-24 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982363', 'tblTempUsageDetail_20' ) start [2025-04-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982363', 'tblTempUsageDetail_20' ) end [2025-04-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982363', 'tblTempVendorCDR_20' ) start [2025-04-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982363', 'tblTempVendorCDR_20' ) end [2025-04-24 21:30:19] Production.INFO: ProcessCDR(1,14982363,1,1,2) [2025-04-24 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982363', 'tblTempUsageDetail_20' ) start [2025-04-24 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982363', 'tblTempUsageDetail_20' ) end [2025-04-24 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:30:23] Production.INFO: ==17754== Releasing lock... [2025-04-24 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:30:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-24 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:31:05 [end_date_ymd] => 2025-04-24 21:31:05 [RateCDR] => 1 ) [2025-04-24 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:31:05' and `end` < '2025-04-24 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:31:18] Production.INFO: count ==1724 [2025-04-24 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:31:05 - End Time 2025-04-24 21:31:05 [2025-04-24 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982368', 'tblTempUsageDetail_20' ) start [2025-04-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982368', 'tblTempUsageDetail_20' ) end [2025-04-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982368', 'tblTempVendorCDR_20' ) start [2025-04-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982368', 'tblTempVendorCDR_20' ) end [2025-04-24 21:31:19] Production.INFO: ProcessCDR(1,14982368,1,1,2) [2025-04-24 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982368', 'tblTempUsageDetail_20' ) start [2025-04-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982368', 'tblTempUsageDetail_20' ) end [2025-04-24 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:31:24] Production.INFO: ==17863== Releasing lock... [2025-04-24 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:31:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-24 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:32:05 [end_date_ymd] => 2025-04-24 21:32:05 [RateCDR] => 1 ) [2025-04-24 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:32:05' and `end` < '2025-04-24 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:32:18] Production.INFO: count ==1717 [2025-04-24 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:32:05 - End Time 2025-04-24 21:32:05 [2025-04-24 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982373', 'tblTempUsageDetail_20' ) start [2025-04-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982373', 'tblTempUsageDetail_20' ) end [2025-04-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982373', 'tblTempVendorCDR_20' ) start [2025-04-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982373', 'tblTempVendorCDR_20' ) end [2025-04-24 21:32:18] Production.INFO: ProcessCDR(1,14982373,1,1,2) [2025-04-24 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982373', 'tblTempUsageDetail_20' ) start [2025-04-24 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982373', 'tblTempUsageDetail_20' ) end [2025-04-24 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:32:22] Production.INFO: ==17941== Releasing lock... [2025-04-24 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:32:22] Production.INFO: 41 MB #Memory Used# [2025-04-24 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:33:05 [end_date_ymd] => 2025-04-24 21:33:05 [RateCDR] => 1 ) [2025-04-24 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:33:05' and `end` < '2025-04-24 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:33:17] Production.INFO: count ==1694 [2025-04-24 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:33:05 - End Time 2025-04-24 21:33:05 [2025-04-24 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982378', 'tblTempUsageDetail_20' ) start [2025-04-24 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982378', 'tblTempUsageDetail_20' ) end [2025-04-24 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982378', 'tblTempVendorCDR_20' ) start [2025-04-24 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982378', 'tblTempVendorCDR_20' ) end [2025-04-24 21:33:18] Production.INFO: ProcessCDR(1,14982378,1,1,2) [2025-04-24 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982378', 'tblTempUsageDetail_20' ) start [2025-04-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982378', 'tblTempUsageDetail_20' ) end [2025-04-24 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:33:22] Production.INFO: ==18030== Releasing lock... [2025-04-24 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-24 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:34:05 [end_date_ymd] => 2025-04-24 21:34:05 [RateCDR] => 1 ) [2025-04-24 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:34:05' and `end` < '2025-04-24 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:34:18] Production.INFO: count ==1681 [2025-04-24 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:34:05 - End Time 2025-04-24 21:34:05 [2025-04-24 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982383', 'tblTempUsageDetail_20' ) start [2025-04-24 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982383', 'tblTempUsageDetail_20' ) end [2025-04-24 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982383', 'tblTempVendorCDR_20' ) start [2025-04-24 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982383', 'tblTempVendorCDR_20' ) end [2025-04-24 21:34:19] Production.INFO: ProcessCDR(1,14982383,1,1,2) [2025-04-24 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982383', 'tblTempUsageDetail_20' ) start [2025-04-24 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982383', 'tblTempUsageDetail_20' ) end [2025-04-24 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:34:22] Production.INFO: ==18118== Releasing lock... [2025-04-24 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:34:22] Production.INFO: 41 MB #Memory Used# [2025-04-24 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:35:05 [end_date_ymd] => 2025-04-24 21:35:05 [RateCDR] => 1 ) [2025-04-24 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:35:05' and `end` < '2025-04-24 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:35:17] Production.INFO: count ==1678 [2025-04-24 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:35:05 - End Time 2025-04-24 21:35:05 [2025-04-24 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982388', 'tblTempUsageDetail_20' ) start [2025-04-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982388', 'tblTempUsageDetail_20' ) end [2025-04-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982388', 'tblTempVendorCDR_20' ) start [2025-04-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982388', 'tblTempVendorCDR_20' ) end [2025-04-24 21:35:18] Production.INFO: ProcessCDR(1,14982388,1,1,2) [2025-04-24 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982388', 'tblTempUsageDetail_20' ) start [2025-04-24 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982388', 'tblTempUsageDetail_20' ) end [2025-04-24 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:35:21] Production.INFO: ==18217== Releasing lock... [2025-04-24 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:35:21] Production.INFO: 41 MB #Memory Used# [2025-04-24 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:36:06 [end_date_ymd] => 2025-04-24 21:36:06 [RateCDR] => 1 ) [2025-04-24 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:36:06' and `end` < '2025-04-24 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:36:18] Production.INFO: count ==1677 [2025-04-24 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:36:06 - End Time 2025-04-24 21:36:06 [2025-04-24 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982393', 'tblTempUsageDetail_20' ) start [2025-04-24 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982393', 'tblTempUsageDetail_20' ) end [2025-04-24 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982393', 'tblTempVendorCDR_20' ) start [2025-04-24 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982393', 'tblTempVendorCDR_20' ) end [2025-04-24 21:36:19] Production.INFO: ProcessCDR(1,14982393,1,1,2) [2025-04-24 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982393', 'tblTempUsageDetail_20' ) start [2025-04-24 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982393', 'tblTempUsageDetail_20' ) end [2025-04-24 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:36:22] Production.INFO: ==18321== Releasing lock... [2025-04-24 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:36:22] Production.INFO: 41 MB #Memory Used# [2025-04-24 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:37:05 [end_date_ymd] => 2025-04-24 21:37:05 [RateCDR] => 1 ) [2025-04-24 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:37:05' and `end` < '2025-04-24 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:37:17] Production.INFO: count ==1675 [2025-04-24 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:37:05 - End Time 2025-04-24 21:37:05 [2025-04-24 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982398', 'tblTempUsageDetail_20' ) start [2025-04-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982398', 'tblTempUsageDetail_20' ) end [2025-04-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982398', 'tblTempVendorCDR_20' ) start [2025-04-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982398', 'tblTempVendorCDR_20' ) end [2025-04-24 21:37:18] Production.INFO: ProcessCDR(1,14982398,1,1,2) [2025-04-24 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982398', 'tblTempUsageDetail_20' ) start [2025-04-24 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982398', 'tblTempUsageDetail_20' ) end [2025-04-24 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:37:21] Production.INFO: ==18454== Releasing lock... [2025-04-24 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:37:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-24 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:38:05 [end_date_ymd] => 2025-04-24 21:38:05 [RateCDR] => 1 ) [2025-04-24 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:38:05' and `end` < '2025-04-24 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:38:18] Production.INFO: count ==1670 [2025-04-24 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:38:05 - End Time 2025-04-24 21:38:05 [2025-04-24 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982403', 'tblTempUsageDetail_20' ) start [2025-04-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982403', 'tblTempUsageDetail_20' ) end [2025-04-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982403', 'tblTempVendorCDR_20' ) start [2025-04-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982403', 'tblTempVendorCDR_20' ) end [2025-04-24 21:38:18] Production.INFO: ProcessCDR(1,14982403,1,1,2) [2025-04-24 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982403', 'tblTempUsageDetail_20' ) start [2025-04-24 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982403', 'tblTempUsageDetail_20' ) end [2025-04-24 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:38:24] Production.INFO: ==18549== Releasing lock... [2025-04-24 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:38:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-24 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:39:05 [end_date_ymd] => 2025-04-24 21:39:05 [RateCDR] => 1 ) [2025-04-24 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:39:05' and `end` < '2025-04-24 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:39:17] Production.INFO: count ==1668 [2025-04-24 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:39:05 - End Time 2025-04-24 21:39:05 [2025-04-24 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982408', 'tblTempUsageDetail_20' ) start [2025-04-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982408', 'tblTempUsageDetail_20' ) end [2025-04-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982408', 'tblTempVendorCDR_20' ) start [2025-04-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982408', 'tblTempVendorCDR_20' ) end [2025-04-24 21:39:18] Production.INFO: ProcessCDR(1,14982408,1,1,2) [2025-04-24 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982408', 'tblTempUsageDetail_20' ) start [2025-04-24 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982408', 'tblTempUsageDetail_20' ) end [2025-04-24 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:39:21] Production.INFO: ==18647== Releasing lock... [2025-04-24 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:39:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-24 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:40:05 [end_date_ymd] => 2025-04-24 21:40:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:40:05' and `end` < '2025-04-24 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-04-24 21:40:18] Production.INFO: count ==1662 [2025-04-24 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:40:05 - End Time 2025-04-24 21:40:05 [2025-04-24 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982413', 'tblTempUsageDetail_20' ) start [2025-04-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982413', 'tblTempUsageDetail_20' ) end [2025-04-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982413', 'tblTempVendorCDR_20' ) start [2025-04-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982413', 'tblTempVendorCDR_20' ) end [2025-04-24 21:40:19] Production.INFO: ProcessCDR(1,14982413,1,1,2) [2025-04-24 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982413', 'tblTempUsageDetail_20' ) start [2025-04-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982413', 'tblTempUsageDetail_20' ) end [2025-04-24 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:40:23] Production.INFO: ==18757== Releasing lock... [2025-04-24 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-24 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:41:05 [end_date_ymd] => 2025-04-24 21:41:05 [RateCDR] => 1 ) [2025-04-24 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:41:05' and `end` < '2025-04-24 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:41:18] Production.INFO: count ==1606 [2025-04-24 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:41:05 - End Time 2025-04-24 21:41:05 [2025-04-24 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982419', 'tblTempUsageDetail_20' ) start [2025-04-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982419', 'tblTempUsageDetail_20' ) end [2025-04-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982419', 'tblTempVendorCDR_20' ) start [2025-04-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982419', 'tblTempVendorCDR_20' ) end [2025-04-24 21:41:18] Production.INFO: ProcessCDR(1,14982419,1,1,2) [2025-04-24 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982419', 'tblTempUsageDetail_20' ) start [2025-04-24 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982419', 'tblTempUsageDetail_20' ) end [2025-04-24 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:41:22] Production.INFO: ==18855== Releasing lock... [2025-04-24 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:41:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-24 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:42:05 [end_date_ymd] => 2025-04-24 21:42:05 [RateCDR] => 1 ) [2025-04-24 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:42:05' and `end` < '2025-04-24 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:42:18] Production.INFO: count ==1602 [2025-04-24 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:42:05 - End Time 2025-04-24 21:42:05 [2025-04-24 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982424', 'tblTempUsageDetail_20' ) start [2025-04-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982424', 'tblTempUsageDetail_20' ) end [2025-04-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982424', 'tblTempVendorCDR_20' ) start [2025-04-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982424', 'tblTempVendorCDR_20' ) end [2025-04-24 21:42:18] Production.INFO: ProcessCDR(1,14982424,1,1,2) [2025-04-24 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982424', 'tblTempUsageDetail_20' ) start [2025-04-24 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982424', 'tblTempUsageDetail_20' ) end [2025-04-24 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:42:21] Production.INFO: ==18952== Releasing lock... [2025-04-24 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:42:21] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:43:05 [end_date_ymd] => 2025-04-24 21:43:05 [RateCDR] => 1 ) [2025-04-24 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:43:05' and `end` < '2025-04-24 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:43:18] Production.INFO: count ==1598 [2025-04-24 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:43:05 - End Time 2025-04-24 21:43:05 [2025-04-24 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982429', 'tblTempUsageDetail_20' ) start [2025-04-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982429', 'tblTempUsageDetail_20' ) end [2025-04-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982429', 'tblTempVendorCDR_20' ) start [2025-04-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982429', 'tblTempVendorCDR_20' ) end [2025-04-24 21:43:18] Production.INFO: ProcessCDR(1,14982429,1,1,2) [2025-04-24 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982429', 'tblTempUsageDetail_20' ) start [2025-04-24 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982429', 'tblTempUsageDetail_20' ) end [2025-04-24 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:43:23] Production.INFO: ==19058== Releasing lock... [2025-04-24 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:43:23] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:44:04 [end_date_ymd] => 2025-04-24 21:44:04 [RateCDR] => 1 ) [2025-04-24 21:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:44:04' and `end` < '2025-04-24 21:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:44:17] Production.INFO: count ==1591 [2025-04-24 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:44:04 - End Time 2025-04-24 21:44:04 [2025-04-24 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982434', 'tblTempUsageDetail_20' ) start [2025-04-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982434', 'tblTempUsageDetail_20' ) end [2025-04-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982434', 'tblTempVendorCDR_20' ) start [2025-04-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982434', 'tblTempVendorCDR_20' ) end [2025-04-24 21:44:18] Production.INFO: ProcessCDR(1,14982434,1,1,2) [2025-04-24 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982434', 'tblTempUsageDetail_20' ) start [2025-04-24 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982434', 'tblTempUsageDetail_20' ) end [2025-04-24 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:44:21] Production.INFO: ==19151== Releasing lock... [2025-04-24 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:44:21] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:45:05 [end_date_ymd] => 2025-04-24 21:45:05 [RateCDR] => 1 ) [2025-04-24 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:45:05' and `end` < '2025-04-24 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:45:18] Production.INFO: count ==1590 [2025-04-24 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:45:05 - End Time 2025-04-24 21:45:05 [2025-04-24 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982439', 'tblTempUsageDetail_20' ) start [2025-04-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982439', 'tblTempUsageDetail_20' ) end [2025-04-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982439', 'tblTempVendorCDR_20' ) start [2025-04-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982439', 'tblTempVendorCDR_20' ) end [2025-04-24 21:45:18] Production.INFO: ProcessCDR(1,14982439,1,1,2) [2025-04-24 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982439', 'tblTempUsageDetail_20' ) start [2025-04-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982439', 'tblTempUsageDetail_20' ) end [2025-04-24 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:45:21] Production.INFO: ==19243== Releasing lock... [2025-04-24 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:45:21] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:46:04 [end_date_ymd] => 2025-04-24 21:46:04 [RateCDR] => 1 ) [2025-04-24 21: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-04-24 18:46:04' and `end` < '2025-04-24 21: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-04-24 21:46:17] Production.INFO: count ==1578 [2025-04-24 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:46:04 - End Time 2025-04-24 21:46:04 [2025-04-24 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982444', 'tblTempUsageDetail_20' ) start [2025-04-24 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982444', 'tblTempUsageDetail_20' ) end [2025-04-24 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982444', 'tblTempVendorCDR_20' ) start [2025-04-24 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982444', 'tblTempVendorCDR_20' ) end [2025-04-24 21:46:18] Production.INFO: ProcessCDR(1,14982444,1,1,2) [2025-04-24 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982444', 'tblTempUsageDetail_20' ) start [2025-04-24 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982444', 'tblTempUsageDetail_20' ) end [2025-04-24 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:46:21] Production.INFO: ==19335== Releasing lock... [2025-04-24 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:46:21] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:47:05 [end_date_ymd] => 2025-04-24 21:47:05 [RateCDR] => 1 ) [2025-04-24 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:47:05' and `end` < '2025-04-24 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:47:18] Production.INFO: count ==1576 [2025-04-24 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:47:05 - End Time 2025-04-24 21:47:05 [2025-04-24 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982449', 'tblTempUsageDetail_20' ) start [2025-04-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982449', 'tblTempUsageDetail_20' ) end [2025-04-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982449', 'tblTempVendorCDR_20' ) start [2025-04-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982449', 'tblTempVendorCDR_20' ) end [2025-04-24 21:47:18] Production.INFO: ProcessCDR(1,14982449,1,1,2) [2025-04-24 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982449', 'tblTempUsageDetail_20' ) start [2025-04-24 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982449', 'tblTempUsageDetail_20' ) end [2025-04-24 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:47:21] Production.INFO: ==19428== Releasing lock... [2025-04-24 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:47:21] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:48:06 [end_date_ymd] => 2025-04-24 21:48:06 [RateCDR] => 1 ) [2025-04-24 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:48:06' and `end` < '2025-04-24 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:48:19] Production.INFO: count ==1569 [2025-04-24 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:48:06 - End Time 2025-04-24 21:48:06 [2025-04-24 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982454', 'tblTempUsageDetail_20' ) start [2025-04-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982454', 'tblTempUsageDetail_20' ) end [2025-04-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982454', 'tblTempVendorCDR_20' ) start [2025-04-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982454', 'tblTempVendorCDR_20' ) end [2025-04-24 21:48:19] Production.INFO: ProcessCDR(1,14982454,1,1,2) [2025-04-24 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982454', 'tblTempUsageDetail_20' ) start [2025-04-24 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982454', 'tblTempUsageDetail_20' ) end [2025-04-24 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:48:24] Production.INFO: ==19524== Releasing lock... [2025-04-24 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:48:24] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:49:05 [end_date_ymd] => 2025-04-24 21:49:05 [RateCDR] => 1 ) [2025-04-24 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:49:05' and `end` < '2025-04-24 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:49:18] Production.INFO: count ==1568 [2025-04-24 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:49:05 - End Time 2025-04-24 21:49:05 [2025-04-24 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982459', 'tblTempUsageDetail_20' ) start [2025-04-24 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982459', 'tblTempUsageDetail_20' ) end [2025-04-24 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982459', 'tblTempVendorCDR_20' ) start [2025-04-24 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982459', 'tblTempVendorCDR_20' ) end [2025-04-24 21:49:18] Production.INFO: ProcessCDR(1,14982459,1,1,2) [2025-04-24 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982459', 'tblTempUsageDetail_20' ) start [2025-04-24 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982459', 'tblTempUsageDetail_20' ) end [2025-04-24 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:49:23] Production.INFO: ==19615== Releasing lock... [2025-04-24 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:49:23] Production.INFO: 40 MB #Memory Used# [2025-04-24 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:50:06 [end_date_ymd] => 2025-04-24 21:50:06 [RateCDR] => 1 ) [2025-04-24 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:50:06' and `end` < '2025-04-24 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:50:19] Production.INFO: count ==1564 [2025-04-24 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 18:50:06 - End Time 2025-04-24 21:50:06 [2025-04-24 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982465', 'tblTempUsageDetail_20' ) start [2025-04-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982465', 'tblTempUsageDetail_20' ) end [2025-04-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982465', 'tblTempVendorCDR_20' ) start [2025-04-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982465', 'tblTempVendorCDR_20' ) end [2025-04-24 21:50:19] Production.INFO: ProcessCDR(1,14982465,1,1,2) [2025-04-24 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982465', 'tblTempUsageDetail_20' ) start [2025-04-24 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982465', 'tblTempUsageDetail_20' ) end [2025-04-24 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:50:24] Production.INFO: ==19725== Releasing lock... [2025-04-24 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:51:05 [end_date_ymd] => 2025-04-24 21:51:05 [RateCDR] => 1 ) [2025-04-24 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:51:05' and `end` < '2025-04-24 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:51:18] Production.INFO: count ==1531 [2025-04-24 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:51:05 - End Time 2025-04-24 21:51:05 [2025-04-24 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982470', 'tblTempUsageDetail_20' ) start [2025-04-24 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982470', 'tblTempUsageDetail_20' ) end [2025-04-24 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982470', 'tblTempVendorCDR_20' ) start [2025-04-24 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982470', 'tblTempVendorCDR_20' ) end [2025-04-24 21:51:18] Production.INFO: ProcessCDR(1,14982470,1,1,2) [2025-04-24 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982470', 'tblTempUsageDetail_20' ) start [2025-04-24 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982470', 'tblTempUsageDetail_20' ) end [2025-04-24 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:51:21] Production.INFO: ==19831== Releasing lock... [2025-04-24 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:51:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:52:05 [end_date_ymd] => 2025-04-24 21:52:05 [RateCDR] => 1 ) [2025-04-24 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:52:05' and `end` < '2025-04-24 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:52:18] Production.INFO: count ==1531 [2025-04-24 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:52:05 - End Time 2025-04-24 21:52:05 [2025-04-24 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982475', 'tblTempUsageDetail_20' ) start [2025-04-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982475', 'tblTempUsageDetail_20' ) end [2025-04-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982475', 'tblTempVendorCDR_20' ) start [2025-04-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982475', 'tblTempVendorCDR_20' ) end [2025-04-24 21:52:18] Production.INFO: ProcessCDR(1,14982475,1,1,2) [2025-04-24 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982475', 'tblTempUsageDetail_20' ) start [2025-04-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982475', 'tblTempUsageDetail_20' ) end [2025-04-24 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:52:22] Production.INFO: ==19919== Releasing lock... [2025-04-24 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:53:05 [end_date_ymd] => 2025-04-24 21:53:05 [RateCDR] => 1 ) [2025-04-24 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:53:05' and `end` < '2025-04-24 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:53:18] Production.INFO: count ==1530 [2025-04-24 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:53:05 - End Time 2025-04-24 21:53:05 [2025-04-24 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982480', 'tblTempUsageDetail_20' ) start [2025-04-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982480', 'tblTempUsageDetail_20' ) end [2025-04-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982480', 'tblTempVendorCDR_20' ) start [2025-04-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982480', 'tblTempVendorCDR_20' ) end [2025-04-24 21:53:18] Production.INFO: ProcessCDR(1,14982480,1,1,2) [2025-04-24 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982480', 'tblTempUsageDetail_20' ) start [2025-04-24 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982480', 'tblTempUsageDetail_20' ) end [2025-04-24 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:53:22] Production.INFO: ==20041== Releasing lock... [2025-04-24 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:54:05 [end_date_ymd] => 2025-04-24 21:54:05 [RateCDR] => 1 ) [2025-04-24 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:54:05' and `end` < '2025-04-24 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:54:18] Production.INFO: count ==1512 [2025-04-24 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:54:05 - End Time 2025-04-24 21:54:05 [2025-04-24 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982485', 'tblTempUsageDetail_20' ) start [2025-04-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982485', 'tblTempUsageDetail_20' ) end [2025-04-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982485', 'tblTempVendorCDR_20' ) start [2025-04-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982485', 'tblTempVendorCDR_20' ) end [2025-04-24 21:54:18] Production.INFO: ProcessCDR(1,14982485,1,1,2) [2025-04-24 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982485', 'tblTempUsageDetail_20' ) start [2025-04-24 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982485', 'tblTempUsageDetail_20' ) end [2025-04-24 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:54:21] Production.INFO: ==20138== Releasing lock... [2025-04-24 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:55:05 [end_date_ymd] => 2025-04-24 21:55:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:55:05' and `end` < '2025-04-24 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-04-24 21:55:18] Production.INFO: count ==1513 [2025-04-24 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:55:05 - End Time 2025-04-24 21:55:05 [2025-04-24 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982490', 'tblTempUsageDetail_20' ) start [2025-04-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982490', 'tblTempUsageDetail_20' ) end [2025-04-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982490', 'tblTempVendorCDR_20' ) start [2025-04-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982490', 'tblTempVendorCDR_20' ) end [2025-04-24 21:55:18] Production.INFO: ProcessCDR(1,14982490,1,1,2) [2025-04-24 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982490', 'tblTempUsageDetail_20' ) start [2025-04-24 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982490', 'tblTempUsageDetail_20' ) end [2025-04-24 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:55:23] Production.INFO: ==20234== Releasing lock... [2025-04-24 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:55:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:56:05 [end_date_ymd] => 2025-04-24 21:56:05 [RateCDR] => 1 ) [2025-04-24 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:56:05' and `end` < '2025-04-24 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:56:18] Production.INFO: count ==1508 [2025-04-24 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:56:05 - End Time 2025-04-24 21:56:05 [2025-04-24 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982495', 'tblTempUsageDetail_20' ) start [2025-04-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982495', 'tblTempUsageDetail_20' ) end [2025-04-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982495', 'tblTempVendorCDR_20' ) start [2025-04-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982495', 'tblTempVendorCDR_20' ) end [2025-04-24 21:56:18] Production.INFO: ProcessCDR(1,14982495,1,1,2) [2025-04-24 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982495', 'tblTempUsageDetail_20' ) start [2025-04-24 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982495', 'tblTempUsageDetail_20' ) end [2025-04-24 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:56:23] Production.INFO: ==20332== Releasing lock... [2025-04-24 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:56:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:57:05 [end_date_ymd] => 2025-04-24 21:57:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 18:57:05' and `end` < '2025-04-24 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-04-24 21:57:18] Production.INFO: count ==1509 [2025-04-24 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:57:05 - End Time 2025-04-24 21:57:05 [2025-04-24 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982500', 'tblTempUsageDetail_20' ) start [2025-04-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982500', 'tblTempUsageDetail_20' ) end [2025-04-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982500', 'tblTempVendorCDR_20' ) start [2025-04-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982500', 'tblTempVendorCDR_20' ) end [2025-04-24 21:57:18] Production.INFO: ProcessCDR(1,14982500,1,1,2) [2025-04-24 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982500', 'tblTempUsageDetail_20' ) start [2025-04-24 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982500', 'tblTempUsageDetail_20' ) end [2025-04-24 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:57:21] Production.INFO: ==20435== Releasing lock... [2025-04-24 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:57:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-24 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:58:05 [end_date_ymd] => 2025-04-24 21:58:05 [RateCDR] => 1 ) [2025-04-24 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:58:05' and `end` < '2025-04-24 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:58:17] Production.INFO: count ==1500 [2025-04-24 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:58:05 - End Time 2025-04-24 21:58:05 [2025-04-24 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982505', 'tblTempUsageDetail_20' ) start [2025-04-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982505', 'tblTempUsageDetail_20' ) end [2025-04-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982505', 'tblTempVendorCDR_20' ) start [2025-04-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982505', 'tblTempVendorCDR_20' ) end [2025-04-24 21:58:18] Production.INFO: ProcessCDR(1,14982505,1,1,2) [2025-04-24 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982505', 'tblTempUsageDetail_20' ) start [2025-04-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982505', 'tblTempUsageDetail_20' ) end [2025-04-24 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:58:22] Production.INFO: ==20528== Releasing lock... [2025-04-24 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 18:59:05 [end_date_ymd] => 2025-04-24 21:59:05 [RateCDR] => 1 ) [2025-04-24 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 18:59:05' and `end` < '2025-04-24 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 21:59:18] Production.INFO: count ==1500 [2025-04-24 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 18:59:05 - End Time 2025-04-24 21:59:05 [2025-04-24 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982510', 'tblTempUsageDetail_20' ) start [2025-04-24 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982510', 'tblTempUsageDetail_20' ) end [2025-04-24 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982510', 'tblTempVendorCDR_20' ) start [2025-04-24 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982510', 'tblTempVendorCDR_20' ) end [2025-04-24 21:59:18] Production.INFO: ProcessCDR(1,14982510,1,1,2) [2025-04-24 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982510', 'tblTempUsageDetail_20' ) start [2025-04-24 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982510', 'tblTempUsageDetail_20' ) end [2025-04-24 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 21:59:23] Production.INFO: ==20615== Releasing lock... [2025-04-24 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 21:59:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:00:05 [end_date_ymd] => 2025-04-24 22:00:05 [RateCDR] => 1 ) [2025-04-24 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:00:05' and `end` < '2025-04-24 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:00:18] Production.INFO: count ==1501 [2025-04-24 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:00:05 - End Time 2025-04-24 22:00:05 [2025-04-24 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982515', 'tblTempUsageDetail_20' ) start [2025-04-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982515', 'tblTempUsageDetail_20' ) end [2025-04-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982515', 'tblTempVendorCDR_20' ) start [2025-04-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982515', 'tblTempVendorCDR_20' ) end [2025-04-24 22:00:19] Production.INFO: ProcessCDR(1,14982515,1,1,2) [2025-04-24 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982515', 'tblTempUsageDetail_20' ) start [2025-04-24 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982515', 'tblTempUsageDetail_20' ) end [2025-04-24 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:00:23] Production.INFO: ==20705== Releasing lock... [2025-04-24 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:00:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:01:05 [end_date_ymd] => 2025-04-24 22:01:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:01:05' and `end` < '2025-04-24 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-04-24 22:01:18] Production.INFO: count ==1485 [2025-04-24 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:01:05 - End Time 2025-04-24 22:01:05 [2025-04-24 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982521', 'tblTempUsageDetail_20' ) start [2025-04-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982521', 'tblTempUsageDetail_20' ) end [2025-04-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982521', 'tblTempVendorCDR_20' ) start [2025-04-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982521', 'tblTempVendorCDR_20' ) end [2025-04-24 22:01:18] Production.INFO: ProcessCDR(1,14982521,1,1,2) [2025-04-24 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982521', 'tblTempUsageDetail_20' ) start [2025-04-24 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982521', 'tblTempUsageDetail_20' ) end [2025-04-24 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:01:23] Production.INFO: ==20811== Releasing lock... [2025-04-24 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:01:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:02:05 [end_date_ymd] => 2025-04-24 22:02:05 [RateCDR] => 1 ) [2025-04-24 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:02:05' and `end` < '2025-04-24 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:02:18] Production.INFO: count ==1483 [2025-04-24 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:02:05 - End Time 2025-04-24 22:02:05 [2025-04-24 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982526', 'tblTempUsageDetail_20' ) start [2025-04-24 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982526', 'tblTempUsageDetail_20' ) end [2025-04-24 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982526', 'tblTempVendorCDR_20' ) start [2025-04-24 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982526', 'tblTempVendorCDR_20' ) end [2025-04-24 22:02:19] Production.INFO: ProcessCDR(1,14982526,1,1,2) [2025-04-24 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982526', 'tblTempUsageDetail_20' ) start [2025-04-24 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982526', 'tblTempUsageDetail_20' ) end [2025-04-24 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:02:24] Production.INFO: ==20899== Releasing lock... [2025-04-24 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:02:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:03:05 [end_date_ymd] => 2025-04-24 22:03:05 [RateCDR] => 1 ) [2025-04-24 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:03:05' and `end` < '2025-04-24 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:03:18] Production.INFO: count ==1480 [2025-04-24 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:03:05 - End Time 2025-04-24 22:03:05 [2025-04-24 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982531', 'tblTempUsageDetail_20' ) start [2025-04-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982531', 'tblTempUsageDetail_20' ) end [2025-04-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982531', 'tblTempVendorCDR_20' ) start [2025-04-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982531', 'tblTempVendorCDR_20' ) end [2025-04-24 22:03:18] Production.INFO: ProcessCDR(1,14982531,1,1,2) [2025-04-24 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982531', 'tblTempUsageDetail_20' ) start [2025-04-24 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982531', 'tblTempUsageDetail_20' ) end [2025-04-24 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:03:23] Production.INFO: ==20988== Releasing lock... [2025-04-24 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:04:05 [end_date_ymd] => 2025-04-24 22:04:05 [RateCDR] => 1 ) [2025-04-24 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:04:05' and `end` < '2025-04-24 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:04:18] Production.INFO: count ==1476 [2025-04-24 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:04:05 - End Time 2025-04-24 22:04:05 [2025-04-24 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982536', 'tblTempUsageDetail_20' ) start [2025-04-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982536', 'tblTempUsageDetail_20' ) end [2025-04-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982536', 'tblTempVendorCDR_20' ) start [2025-04-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982536', 'tblTempVendorCDR_20' ) end [2025-04-24 22:04:18] Production.INFO: ProcessCDR(1,14982536,1,1,2) [2025-04-24 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982536', 'tblTempUsageDetail_20' ) start [2025-04-24 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982536', 'tblTempUsageDetail_20' ) end [2025-04-24 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:04:22] Production.INFO: ==21082== Releasing lock... [2025-04-24 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:04:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:05:05 [end_date_ymd] => 2025-04-24 22:05:05 [RateCDR] => 1 ) [2025-04-24 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:05:05' and `end` < '2025-04-24 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:05:18] Production.INFO: count ==1473 [2025-04-24 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:05:05 - End Time 2025-04-24 22:05:05 [2025-04-24 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982541', 'tblTempUsageDetail_20' ) start [2025-04-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982541', 'tblTempUsageDetail_20' ) end [2025-04-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982541', 'tblTempVendorCDR_20' ) start [2025-04-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982541', 'tblTempVendorCDR_20' ) end [2025-04-24 22:05:18] Production.INFO: ProcessCDR(1,14982541,1,1,2) [2025-04-24 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982541', 'tblTempUsageDetail_20' ) start [2025-04-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982541', 'tblTempUsageDetail_20' ) end [2025-04-24 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:05:23] Production.INFO: ==21168== Releasing lock... [2025-04-24 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:06:05 [end_date_ymd] => 2025-04-24 22:06:05 [RateCDR] => 1 ) [2025-04-24 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:06:05' and `end` < '2025-04-24 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:06:18] Production.INFO: count ==1467 [2025-04-24 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:06:05 - End Time 2025-04-24 22:06:05 [2025-04-24 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982546', 'tblTempUsageDetail_20' ) start [2025-04-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982546', 'tblTempUsageDetail_20' ) end [2025-04-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982546', 'tblTempVendorCDR_20' ) start [2025-04-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982546', 'tblTempVendorCDR_20' ) end [2025-04-24 22:06:18] Production.INFO: ProcessCDR(1,14982546,1,1,2) [2025-04-24 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982546', 'tblTempUsageDetail_20' ) start [2025-04-24 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982546', 'tblTempUsageDetail_20' ) end [2025-04-24 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:06:21] Production.INFO: ==21257== Releasing lock... [2025-04-24 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:06:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-24 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:07:05 [end_date_ymd] => 2025-04-24 22:07:05 [RateCDR] => 1 ) [2025-04-24 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:07:05' and `end` < '2025-04-24 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:07:17] Production.INFO: count ==1458 [2025-04-24 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:07:05 - End Time 2025-04-24 22:07:05 [2025-04-24 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982551', 'tblTempUsageDetail_20' ) start [2025-04-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982551', 'tblTempUsageDetail_20' ) end [2025-04-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982551', 'tblTempVendorCDR_20' ) start [2025-04-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982551', 'tblTempVendorCDR_20' ) end [2025-04-24 22:07:18] Production.INFO: ProcessCDR(1,14982551,1,1,2) [2025-04-24 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982551', 'tblTempUsageDetail_20' ) start [2025-04-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982551', 'tblTempUsageDetail_20' ) end [2025-04-24 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:07:21] Production.INFO: ==21346== Releasing lock... [2025-04-24 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:07:21] Production.INFO: 39 MB #Memory Used# [2025-04-24 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:08:05 [end_date_ymd] => 2025-04-24 22:08:05 [RateCDR] => 1 ) [2025-04-24 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:08:05' and `end` < '2025-04-24 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-04-24 22:08:18] Production.INFO: count ==1451 [2025-04-24 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:08:05 - End Time 2025-04-24 22:08:05 [2025-04-24 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982556', 'tblTempUsageDetail_20' ) start [2025-04-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982556', 'tblTempUsageDetail_20' ) end [2025-04-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982556', 'tblTempVendorCDR_20' ) start [2025-04-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982556', 'tblTempVendorCDR_20' ) end [2025-04-24 22:08:18] Production.INFO: ProcessCDR(1,14982556,1,1,2) [2025-04-24 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982556', 'tblTempUsageDetail_20' ) start [2025-04-24 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982556', 'tblTempUsageDetail_20' ) end [2025-04-24 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:08:22] Production.INFO: ==21477== Releasing lock... [2025-04-24 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:09:05 [end_date_ymd] => 2025-04-24 22:09:05 [RateCDR] => 1 ) [2025-04-24 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:09:05' and `end` < '2025-04-24 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:09:18] Production.INFO: count ==1447 [2025-04-24 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:09:05 - End Time 2025-04-24 22:09:05 [2025-04-24 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982561', 'tblTempUsageDetail_20' ) start [2025-04-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982561', 'tblTempUsageDetail_20' ) end [2025-04-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982561', 'tblTempVendorCDR_20' ) start [2025-04-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982561', 'tblTempVendorCDR_20' ) end [2025-04-24 22:09:19] Production.INFO: ProcessCDR(1,14982561,1,1,2) [2025-04-24 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982561', 'tblTempUsageDetail_20' ) start [2025-04-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982561', 'tblTempUsageDetail_20' ) end [2025-04-24 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:09:22] Production.INFO: ==21563== Releasing lock... [2025-04-24 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:09:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-24 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:10:06 [end_date_ymd] => 2025-04-24 22:10:06 [RateCDR] => 1 ) [2025-04-24 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:10:06' and `end` < '2025-04-24 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:10:19] Production.INFO: count ==1441 [2025-04-24 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:10:06 - End Time 2025-04-24 22:10:06 [2025-04-24 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982567', 'tblTempUsageDetail_20' ) start [2025-04-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982567', 'tblTempUsageDetail_20' ) end [2025-04-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982567', 'tblTempVendorCDR_20' ) start [2025-04-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982567', 'tblTempVendorCDR_20' ) end [2025-04-24 22:10:19] Production.INFO: ProcessCDR(1,14982567,1,1,2) [2025-04-24 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982567', 'tblTempUsageDetail_20' ) start [2025-04-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982567', 'tblTempUsageDetail_20' ) end [2025-04-24 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:10:22] Production.INFO: ==21662== Releasing lock... [2025-04-24 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:10:22] Production.INFO: 39 MB #Memory Used# [2025-04-24 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:11:05 [end_date_ymd] => 2025-04-24 22:11:05 [RateCDR] => 1 ) [2025-04-24 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:11:05' and `end` < '2025-04-24 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:11:18] Production.INFO: count ==1387 [2025-04-24 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:11:05 - End Time 2025-04-24 22:11:05 [2025-04-24 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982572', 'tblTempUsageDetail_20' ) start [2025-04-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982572', 'tblTempUsageDetail_20' ) end [2025-04-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982572', 'tblTempVendorCDR_20' ) start [2025-04-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982572', 'tblTempVendorCDR_20' ) end [2025-04-24 22:11:18] Production.INFO: ProcessCDR(1,14982572,1,1,2) [2025-04-24 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982572', 'tblTempUsageDetail_20' ) start [2025-04-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982572', 'tblTempUsageDetail_20' ) end [2025-04-24 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:11:22] Production.INFO: ==21746== Releasing lock... [2025-04-24 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:11:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:12:05 [end_date_ymd] => 2025-04-24 22:12:05 [RateCDR] => 1 ) [2025-04-24 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:12:05' and `end` < '2025-04-24 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:12:17] Production.INFO: count ==1385 [2025-04-24 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:12:05 - End Time 2025-04-24 22:12:05 [2025-04-24 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982577', 'tblTempUsageDetail_20' ) start [2025-04-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982577', 'tblTempUsageDetail_20' ) end [2025-04-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982577', 'tblTempVendorCDR_20' ) start [2025-04-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982577', 'tblTempVendorCDR_20' ) end [2025-04-24 22:12:18] Production.INFO: ProcessCDR(1,14982577,1,1,2) [2025-04-24 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982577', 'tblTempUsageDetail_20' ) start [2025-04-24 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982577', 'tblTempUsageDetail_20' ) end [2025-04-24 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:12:23] Production.INFO: ==21828== Releasing lock... [2025-04-24 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:12:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:13:05 [end_date_ymd] => 2025-04-24 22:13:05 [RateCDR] => 1 ) [2025-04-24 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:13:05' and `end` < '2025-04-24 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:13:18] Production.INFO: count ==1381 [2025-04-24 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:13:05 - End Time 2025-04-24 22:13:05 [2025-04-24 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982582', 'tblTempUsageDetail_20' ) start [2025-04-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982582', 'tblTempUsageDetail_20' ) end [2025-04-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982582', 'tblTempVendorCDR_20' ) start [2025-04-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982582', 'tblTempVendorCDR_20' ) end [2025-04-24 22:13:18] Production.INFO: ProcessCDR(1,14982582,1,1,2) [2025-04-24 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982582', 'tblTempUsageDetail_20' ) start [2025-04-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982582', 'tblTempUsageDetail_20' ) end [2025-04-24 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:13:21] Production.INFO: ==21915== Releasing lock... [2025-04-24 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:13:21] Production.INFO: 39 MB #Memory Used# [2025-04-24 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:14:04 [end_date_ymd] => 2025-04-24 22:14:04 [RateCDR] => 1 ) [2025-04-24 22: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-04-24 19:14:04' and `end` < '2025-04-24 22: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-04-24 22:14:17] Production.INFO: count ==1377 [2025-04-24 22:14:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:14:04 - End Time 2025-04-24 22:14:04 [2025-04-24 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982587', 'tblTempUsageDetail_20' ) start [2025-04-24 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982587', 'tblTempUsageDetail_20' ) end [2025-04-24 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982587', 'tblTempVendorCDR_20' ) start [2025-04-24 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982587', 'tblTempVendorCDR_20' ) end [2025-04-24 22:14:17] Production.INFO: ProcessCDR(1,14982587,1,1,2) [2025-04-24 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982587', 'tblTempUsageDetail_20' ) start [2025-04-24 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982587', 'tblTempUsageDetail_20' ) end [2025-04-24 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:14:21] Production.INFO: ==21997== Releasing lock... [2025-04-24 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:15:05 [end_date_ymd] => 2025-04-24 22:15:05 [RateCDR] => 1 ) [2025-04-24 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:15:05' and `end` < '2025-04-24 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:15:18] Production.INFO: count ==1369 [2025-04-24 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:15:05 - End Time 2025-04-24 22:15:05 [2025-04-24 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982592', 'tblTempUsageDetail_20' ) start [2025-04-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982592', 'tblTempUsageDetail_20' ) end [2025-04-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982592', 'tblTempVendorCDR_20' ) start [2025-04-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982592', 'tblTempVendorCDR_20' ) end [2025-04-24 22:15:18] Production.INFO: ProcessCDR(1,14982592,1,1,2) [2025-04-24 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982592', 'tblTempUsageDetail_20' ) start [2025-04-24 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982592', 'tblTempUsageDetail_20' ) end [2025-04-24 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:15:21] Production.INFO: ==22088== Releasing lock... [2025-04-24 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:15:21] Production.INFO: 39 MB #Memory Used# [2025-04-24 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:16:05 [end_date_ymd] => 2025-04-24 22:16:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:16:05' and `end` < '2025-04-24 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-04-24 22:16:18] Production.INFO: count ==1370 [2025-04-24 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:16:05 - End Time 2025-04-24 22:16:05 [2025-04-24 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982597', 'tblTempUsageDetail_20' ) start [2025-04-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982597', 'tblTempUsageDetail_20' ) end [2025-04-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982597', 'tblTempVendorCDR_20' ) start [2025-04-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982597', 'tblTempVendorCDR_20' ) end [2025-04-24 22:16:18] Production.INFO: ProcessCDR(1,14982597,1,1,2) [2025-04-24 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982597', 'tblTempUsageDetail_20' ) start [2025-04-24 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982597', 'tblTempUsageDetail_20' ) end [2025-04-24 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:16:22] Production.INFO: ==22165== Releasing lock... [2025-04-24 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:17:05 [end_date_ymd] => 2025-04-24 22:17:05 [RateCDR] => 1 ) [2025-04-24 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:17:05' and `end` < '2025-04-24 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:17:18] Production.INFO: count ==1363 [2025-04-24 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:17:05 - End Time 2025-04-24 22:17:05 [2025-04-24 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982602', 'tblTempUsageDetail_20' ) start [2025-04-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982602', 'tblTempUsageDetail_20' ) end [2025-04-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982602', 'tblTempVendorCDR_20' ) start [2025-04-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982602', 'tblTempVendorCDR_20' ) end [2025-04-24 22:17:18] Production.INFO: ProcessCDR(1,14982602,1,1,2) [2025-04-24 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982602', 'tblTempUsageDetail_20' ) start [2025-04-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982602', 'tblTempUsageDetail_20' ) end [2025-04-24 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:17:21] Production.INFO: ==22250== Releasing lock... [2025-04-24 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:17:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:18:05 [end_date_ymd] => 2025-04-24 22:18:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:18:05' and `end` < '2025-04-24 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-04-24 22:18:18] Production.INFO: count ==1355 [2025-04-24 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:18:05 - End Time 2025-04-24 22:18:05 [2025-04-24 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982607', 'tblTempUsageDetail_20' ) start [2025-04-24 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982607', 'tblTempUsageDetail_20' ) end [2025-04-24 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982607', 'tblTempVendorCDR_20' ) start [2025-04-24 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982607', 'tblTempVendorCDR_20' ) end [2025-04-24 22:18:19] Production.INFO: ProcessCDR(1,14982607,1,1,2) [2025-04-24 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982607', 'tblTempUsageDetail_20' ) start [2025-04-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982607', 'tblTempUsageDetail_20' ) end [2025-04-24 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:18:22] Production.INFO: ==22325== Releasing lock... [2025-04-24 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:18:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:19:05 [end_date_ymd] => 2025-04-24 22:19:05 [RateCDR] => 1 ) [2025-04-24 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:19:05' and `end` < '2025-04-24 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:19:17] Production.INFO: count ==1352 [2025-04-24 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:19:05 - End Time 2025-04-24 22:19:05 [2025-04-24 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982612', 'tblTempUsageDetail_20' ) start [2025-04-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982612', 'tblTempUsageDetail_20' ) end [2025-04-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982612', 'tblTempVendorCDR_20' ) start [2025-04-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982612', 'tblTempVendorCDR_20' ) end [2025-04-24 22:19:18] Production.INFO: ProcessCDR(1,14982612,1,1,2) [2025-04-24 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982612', 'tblTempUsageDetail_20' ) start [2025-04-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982612', 'tblTempUsageDetail_20' ) end [2025-04-24 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:19:21] Production.INFO: ==22402== Releasing lock... [2025-04-24 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:19:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:20:06 [end_date_ymd] => 2025-04-24 22:20:06 [RateCDR] => 1 ) [2025-04-24 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:20:06' and `end` < '2025-04-24 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:20:19] Production.INFO: count ==1356 [2025-04-24 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:20:06 - End Time 2025-04-24 22:20:06 [2025-04-24 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982618', 'tblTempUsageDetail_20' ) start [2025-04-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982618', 'tblTempUsageDetail_20' ) end [2025-04-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982618', 'tblTempVendorCDR_20' ) start [2025-04-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982618', 'tblTempVendorCDR_20' ) end [2025-04-24 22:20:19] Production.INFO: ProcessCDR(1,14982618,1,1,2) [2025-04-24 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982618', 'tblTempUsageDetail_20' ) start [2025-04-24 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982618', 'tblTempUsageDetail_20' ) end [2025-04-24 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:20:24] Production.INFO: ==22476== Releasing lock... [2025-04-24 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:20:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:21:05 [end_date_ymd] => 2025-04-24 22:21:05 [RateCDR] => 1 ) [2025-04-24 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:21:05' and `end` < '2025-04-24 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:21:17] Production.INFO: count ==1349 [2025-04-24 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:21:05 - End Time 2025-04-24 22:21:05 [2025-04-24 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982623', 'tblTempUsageDetail_20' ) start [2025-04-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982623', 'tblTempUsageDetail_20' ) end [2025-04-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982623', 'tblTempVendorCDR_20' ) start [2025-04-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982623', 'tblTempVendorCDR_20' ) end [2025-04-24 22:21:18] Production.INFO: ProcessCDR(1,14982623,1,1,2) [2025-04-24 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982623', 'tblTempUsageDetail_20' ) start [2025-04-24 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982623', 'tblTempUsageDetail_20' ) end [2025-04-24 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:21:23] Production.INFO: ==22559== Releasing lock... [2025-04-24 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:21:23] Production.INFO: 39 MB #Memory Used# [2025-04-24 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:22:05 [end_date_ymd] => 2025-04-24 22:22:05 [RateCDR] => 1 ) [2025-04-24 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:22:05' and `end` < '2025-04-24 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:22:17] Production.INFO: count ==1346 [2025-04-24 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:22:05 - End Time 2025-04-24 22:22:05 [2025-04-24 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982628', 'tblTempUsageDetail_20' ) start [2025-04-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982628', 'tblTempUsageDetail_20' ) end [2025-04-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982628', 'tblTempVendorCDR_20' ) start [2025-04-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982628', 'tblTempVendorCDR_20' ) end [2025-04-24 22:22:18] Production.INFO: ProcessCDR(1,14982628,1,1,2) [2025-04-24 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982628', 'tblTempUsageDetail_20' ) start [2025-04-24 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982628', 'tblTempUsageDetail_20' ) end [2025-04-24 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:22:23] Production.INFO: ==22636== Releasing lock... [2025-04-24 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:22:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:23:05 [end_date_ymd] => 2025-04-24 22:23:05 [RateCDR] => 1 ) [2025-04-24 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:23:05' and `end` < '2025-04-24 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:23:18] Production.INFO: count ==1338 [2025-04-24 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:23:05 - End Time 2025-04-24 22:23:05 [2025-04-24 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982633', 'tblTempUsageDetail_20' ) start [2025-04-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982633', 'tblTempUsageDetail_20' ) end [2025-04-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982633', 'tblTempVendorCDR_20' ) start [2025-04-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982633', 'tblTempVendorCDR_20' ) end [2025-04-24 22:23:18] Production.INFO: ProcessCDR(1,14982633,1,1,2) [2025-04-24 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982633', 'tblTempUsageDetail_20' ) start [2025-04-24 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982633', 'tblTempUsageDetail_20' ) end [2025-04-24 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:23:21] Production.INFO: ==22712== Releasing lock... [2025-04-24 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:23:21] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:24:05 [end_date_ymd] => 2025-04-24 22:24:05 [RateCDR] => 1 ) [2025-04-24 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:24:05' and `end` < '2025-04-24 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:24:17] Production.INFO: count ==1335 [2025-04-24 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:24:05 - End Time 2025-04-24 22:24:05 [2025-04-24 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982638', 'tblTempUsageDetail_20' ) start [2025-04-24 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982638', 'tblTempUsageDetail_20' ) end [2025-04-24 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982638', 'tblTempVendorCDR_20' ) start [2025-04-24 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982638', 'tblTempVendorCDR_20' ) end [2025-04-24 22:24:18] Production.INFO: ProcessCDR(1,14982638,1,1,2) [2025-04-24 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982638', 'tblTempUsageDetail_20' ) start [2025-04-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982638', 'tblTempUsageDetail_20' ) end [2025-04-24 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:24:23] Production.INFO: ==22826== Releasing lock... [2025-04-24 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:24:23] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:25:05 [end_date_ymd] => 2025-04-24 22:25:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:25:05' and `end` < '2025-04-24 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-04-24 22:25:18] Production.INFO: count ==1330 [2025-04-24 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:25:05 - End Time 2025-04-24 22:25:05 [2025-04-24 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982643', 'tblTempUsageDetail_20' ) start [2025-04-24 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982643', 'tblTempUsageDetail_20' ) end [2025-04-24 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982643', 'tblTempVendorCDR_20' ) start [2025-04-24 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982643', 'tblTempVendorCDR_20' ) end [2025-04-24 22:25:19] Production.INFO: ProcessCDR(1,14982643,1,1,2) [2025-04-24 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982643', 'tblTempUsageDetail_20' ) start [2025-04-24 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982643', 'tblTempUsageDetail_20' ) end [2025-04-24 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:25:22] Production.INFO: ==22900== Releasing lock... [2025-04-24 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:25:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:26:05 [end_date_ymd] => 2025-04-24 22:26:05 [RateCDR] => 1 ) [2025-04-24 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:26:05' and `end` < '2025-04-24 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:26:18] Production.INFO: count ==1327 [2025-04-24 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:26:05 - End Time 2025-04-24 22:26:05 [2025-04-24 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982648', 'tblTempUsageDetail_20' ) start [2025-04-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982648', 'tblTempUsageDetail_20' ) end [2025-04-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982648', 'tblTempVendorCDR_20' ) start [2025-04-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982648', 'tblTempVendorCDR_20' ) end [2025-04-24 22:26:18] Production.INFO: ProcessCDR(1,14982648,1,1,2) [2025-04-24 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982648', 'tblTempUsageDetail_20' ) start [2025-04-24 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982648', 'tblTempUsageDetail_20' ) end [2025-04-24 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:26:21] Production.INFO: ==22969== Releasing lock... [2025-04-24 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:26:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:27:05 [end_date_ymd] => 2025-04-24 22:27:05 [RateCDR] => 1 ) [2025-04-24 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:27:05' and `end` < '2025-04-24 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:27:18] Production.INFO: count ==1320 [2025-04-24 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:27:05 - End Time 2025-04-24 22:27:05 [2025-04-24 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982653', 'tblTempUsageDetail_20' ) start [2025-04-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982653', 'tblTempUsageDetail_20' ) end [2025-04-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982653', 'tblTempVendorCDR_20' ) start [2025-04-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982653', 'tblTempVendorCDR_20' ) end [2025-04-24 22:27:18] Production.INFO: ProcessCDR(1,14982653,1,1,2) [2025-04-24 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982653', 'tblTempUsageDetail_20' ) start [2025-04-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982653', 'tblTempUsageDetail_20' ) end [2025-04-24 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:27:22] Production.INFO: ==23051== Releasing lock... [2025-04-24 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:28:05 [end_date_ymd] => 2025-04-24 22:28:05 [RateCDR] => 1 ) [2025-04-24 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:28:05' and `end` < '2025-04-24 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:28:17] Production.INFO: count ==1323 [2025-04-24 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:28:05 - End Time 2025-04-24 22:28:05 [2025-04-24 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982658', 'tblTempUsageDetail_20' ) start [2025-04-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982658', 'tblTempUsageDetail_20' ) end [2025-04-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982658', 'tblTempVendorCDR_20' ) start [2025-04-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982658', 'tblTempVendorCDR_20' ) end [2025-04-24 22:28:18] Production.INFO: ProcessCDR(1,14982658,1,1,2) [2025-04-24 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982658', 'tblTempUsageDetail_20' ) start [2025-04-24 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982658', 'tblTempUsageDetail_20' ) end [2025-04-24 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:28:21] Production.INFO: ==23125== Releasing lock... [2025-04-24 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:28:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-24 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:29:05 [end_date_ymd] => 2025-04-24 22:29:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:29:05' and `end` < '2025-04-24 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-04-24 22:29:18] Production.INFO: count ==1326 [2025-04-24 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:29:05 - End Time 2025-04-24 22:29:05 [2025-04-24 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982663', 'tblTempUsageDetail_20' ) start [2025-04-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982663', 'tblTempUsageDetail_20' ) end [2025-04-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982663', 'tblTempVendorCDR_20' ) start [2025-04-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982663', 'tblTempVendorCDR_20' ) end [2025-04-24 22:29:18] Production.INFO: ProcessCDR(1,14982663,1,1,2) [2025-04-24 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982663', 'tblTempUsageDetail_20' ) start [2025-04-24 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982663', 'tblTempUsageDetail_20' ) end [2025-04-24 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:29:21] Production.INFO: ==23200== Releasing lock... [2025-04-24 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:30:06 [end_date_ymd] => 2025-04-24 22:30:06 [RateCDR] => 1 ) [2025-04-24 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:30:06' and `end` < '2025-04-24 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:30:19] Production.INFO: count ==1320 [2025-04-24 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:30:06 - End Time 2025-04-24 22:30:06 [2025-04-24 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982669', 'tblTempUsageDetail_20' ) start [2025-04-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982669', 'tblTempUsageDetail_20' ) end [2025-04-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982669', 'tblTempVendorCDR_20' ) start [2025-04-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982669', 'tblTempVendorCDR_20' ) end [2025-04-24 22:30:19] Production.INFO: ProcessCDR(1,14982669,1,1,2) [2025-04-24 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982669', 'tblTempUsageDetail_20' ) start [2025-04-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982669', 'tblTempUsageDetail_20' ) end [2025-04-24 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:30:22] Production.INFO: ==23277== Releasing lock... [2025-04-24 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:31:05 [end_date_ymd] => 2025-04-24 22:31:05 [RateCDR] => 1 ) [2025-04-24 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:31:05' and `end` < '2025-04-24 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:31:18] Production.INFO: count ==1316 [2025-04-24 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:31:05 - End Time 2025-04-24 22:31:05 [2025-04-24 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982674', 'tblTempUsageDetail_20' ) start [2025-04-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982674', 'tblTempUsageDetail_20' ) end [2025-04-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982674', 'tblTempVendorCDR_20' ) start [2025-04-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982674', 'tblTempVendorCDR_20' ) end [2025-04-24 22:31:18] Production.INFO: ProcessCDR(1,14982674,1,1,2) [2025-04-24 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982674', 'tblTempUsageDetail_20' ) start [2025-04-24 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982674', 'tblTempUsageDetail_20' ) end [2025-04-24 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:31:23] Production.INFO: ==23351== Releasing lock... [2025-04-24 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:31:23] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:32:05 [end_date_ymd] => 2025-04-24 22:32:05 [RateCDR] => 1 ) [2025-04-24 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:32:05' and `end` < '2025-04-24 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:32:18] Production.INFO: count ==1312 [2025-04-24 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:32:05 - End Time 2025-04-24 22:32:05 [2025-04-24 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982679', 'tblTempUsageDetail_20' ) start [2025-04-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982679', 'tblTempUsageDetail_20' ) end [2025-04-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982679', 'tblTempVendorCDR_20' ) start [2025-04-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982679', 'tblTempVendorCDR_20' ) end [2025-04-24 22:32:18] Production.INFO: ProcessCDR(1,14982679,1,1,2) [2025-04-24 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982679', 'tblTempUsageDetail_20' ) start [2025-04-24 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982679', 'tblTempUsageDetail_20' ) end [2025-04-24 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:32:23] Production.INFO: ==23423== Releasing lock... [2025-04-24 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:32:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:33:04 [end_date_ymd] => 2025-04-24 22:33:04 [RateCDR] => 1 ) [2025-04-24 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:33:04' and `end` < '2025-04-24 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:33:17] Production.INFO: count ==1311 [2025-04-24 22:33:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:33:04 - End Time 2025-04-24 22:33:04 [2025-04-24 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982684', 'tblTempUsageDetail_20' ) start [2025-04-24 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982684', 'tblTempUsageDetail_20' ) end [2025-04-24 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982684', 'tblTempVendorCDR_20' ) start [2025-04-24 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982684', 'tblTempVendorCDR_20' ) end [2025-04-24 22:33:17] Production.INFO: ProcessCDR(1,14982684,1,1,2) [2025-04-24 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982684', 'tblTempUsageDetail_20' ) start [2025-04-24 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982684', 'tblTempUsageDetail_20' ) end [2025-04-24 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:33:21] Production.INFO: ==23497== Releasing lock... [2025-04-24 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:33:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:34:05 [end_date_ymd] => 2025-04-24 22:34:05 [RateCDR] => 1 ) [2025-04-24 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:34:05' and `end` < '2025-04-24 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:34:18] Production.INFO: count ==1307 [2025-04-24 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:34:05 - End Time 2025-04-24 22:34:05 [2025-04-24 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982689', 'tblTempUsageDetail_20' ) start [2025-04-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982689', 'tblTempUsageDetail_20' ) end [2025-04-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982689', 'tblTempVendorCDR_20' ) start [2025-04-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982689', 'tblTempVendorCDR_20' ) end [2025-04-24 22:34:18] Production.INFO: ProcessCDR(1,14982689,1,1,2) [2025-04-24 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982689', 'tblTempUsageDetail_20' ) start [2025-04-24 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982689', 'tblTempUsageDetail_20' ) end [2025-04-24 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:34:22] Production.INFO: ==23573== Releasing lock... [2025-04-24 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:34:22] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:35:04 [end_date_ymd] => 2025-04-24 22:35:04 [RateCDR] => 1 ) [2025-04-24 22:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:35:04' and `end` < '2025-04-24 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:35:17] Production.INFO: count ==1302 [2025-04-24 22:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:35:04 - End Time 2025-04-24 22:35:04 [2025-04-24 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982694', 'tblTempUsageDetail_20' ) start [2025-04-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982694', 'tblTempUsageDetail_20' ) end [2025-04-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982694', 'tblTempVendorCDR_20' ) start [2025-04-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982694', 'tblTempVendorCDR_20' ) end [2025-04-24 22:35:18] Production.INFO: ProcessCDR(1,14982694,1,1,2) [2025-04-24 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982694', 'tblTempUsageDetail_20' ) start [2025-04-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982694', 'tblTempUsageDetail_20' ) end [2025-04-24 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:35:21] Production.INFO: ==23645== Releasing lock... [2025-04-24 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:35:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:36:05 [end_date_ymd] => 2025-04-24 22:36:05 [RateCDR] => 1 ) [2025-04-24 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:36:05' and `end` < '2025-04-24 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:36:17] Production.INFO: count ==1300 [2025-04-24 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:36:05 - End Time 2025-04-24 22:36:05 [2025-04-24 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982699', 'tblTempUsageDetail_20' ) start [2025-04-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982699', 'tblTempUsageDetail_20' ) end [2025-04-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982699', 'tblTempVendorCDR_20' ) start [2025-04-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982699', 'tblTempVendorCDR_20' ) end [2025-04-24 22:36:18] Production.INFO: ProcessCDR(1,14982699,1,1,2) [2025-04-24 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982699', 'tblTempUsageDetail_20' ) start [2025-04-24 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982699', 'tblTempUsageDetail_20' ) end [2025-04-24 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:36:23] Production.INFO: ==23718== Releasing lock... [2025-04-24 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:36:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:37:06 [end_date_ymd] => 2025-04-24 22:37:06 [RateCDR] => 1 ) [2025-04-24 22:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:37:06' and `end` < '2025-04-24 22:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:37:18] Production.INFO: count ==1297 [2025-04-24 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:37:06 - End Time 2025-04-24 22:37:06 [2025-04-24 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982704', 'tblTempUsageDetail_20' ) start [2025-04-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982704', 'tblTempUsageDetail_20' ) end [2025-04-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982704', 'tblTempVendorCDR_20' ) start [2025-04-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982704', 'tblTempVendorCDR_20' ) end [2025-04-24 22:37:19] Production.INFO: ProcessCDR(1,14982704,1,1,2) [2025-04-24 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982704', 'tblTempUsageDetail_20' ) start [2025-04-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982704', 'tblTempUsageDetail_20' ) end [2025-04-24 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:37:22] Production.INFO: ==23791== Releasing lock... [2025-04-24 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:37:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:38:05 [end_date_ymd] => 2025-04-24 22:38:05 [RateCDR] => 1 ) [2025-04-24 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:38:05' and `end` < '2025-04-24 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:38:17] Production.INFO: count ==1295 [2025-04-24 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:38:05 - End Time 2025-04-24 22:38:05 [2025-04-24 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982709', 'tblTempUsageDetail_20' ) start [2025-04-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982709', 'tblTempUsageDetail_20' ) end [2025-04-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982709', 'tblTempVendorCDR_20' ) start [2025-04-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982709', 'tblTempVendorCDR_20' ) end [2025-04-24 22:38:18] Production.INFO: ProcessCDR(1,14982709,1,1,2) [2025-04-24 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982709', 'tblTempUsageDetail_20' ) start [2025-04-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982709', 'tblTempUsageDetail_20' ) end [2025-04-24 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:38:21] Production.INFO: ==23864== Releasing lock... [2025-04-24 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:38:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:39:05 [end_date_ymd] => 2025-04-24 22:39:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:39:05' and `end` < '2025-04-24 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-04-24 22:39:18] Production.INFO: count ==1293 [2025-04-24 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:39:05 - End Time 2025-04-24 22:39:05 [2025-04-24 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982714', 'tblTempUsageDetail_20' ) start [2025-04-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982714', 'tblTempUsageDetail_20' ) end [2025-04-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982714', 'tblTempVendorCDR_20' ) start [2025-04-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982714', 'tblTempVendorCDR_20' ) end [2025-04-24 22:39:18] Production.INFO: ProcessCDR(1,14982714,1,1,2) [2025-04-24 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982714', 'tblTempUsageDetail_20' ) start [2025-04-24 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982714', 'tblTempUsageDetail_20' ) end [2025-04-24 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:39:22] Production.INFO: ==23978== Releasing lock... [2025-04-24 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:39:22] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:40:05 [end_date_ymd] => 2025-04-24 22:40:05 [RateCDR] => 1 ) [2025-04-24 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:40:05' and `end` < '2025-04-24 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:40:18] Production.INFO: count ==1297 [2025-04-24 22:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:40:05 - End Time 2025-04-24 22:40:05 [2025-04-24 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982720', 'tblTempUsageDetail_20' ) start [2025-04-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982720', 'tblTempUsageDetail_20' ) end [2025-04-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982720', 'tblTempVendorCDR_20' ) start [2025-04-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982720', 'tblTempVendorCDR_20' ) end [2025-04-24 22:40:18] Production.INFO: ProcessCDR(1,14982720,1,1,2) [2025-04-24 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982720', 'tblTempUsageDetail_20' ) start [2025-04-24 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982720', 'tblTempUsageDetail_20' ) end [2025-04-24 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:40:21] Production.INFO: ==24050== Releasing lock... [2025-04-24 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:40:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:41:05 [end_date_ymd] => 2025-04-24 22:41:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:41:05' and `end` < '2025-04-24 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-04-24 22:41:18] Production.INFO: count ==1276 [2025-04-24 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:41:05 - End Time 2025-04-24 22:41:05 [2025-04-24 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982725', 'tblTempUsageDetail_20' ) start [2025-04-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982725', 'tblTempUsageDetail_20' ) end [2025-04-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982725', 'tblTempVendorCDR_20' ) start [2025-04-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982725', 'tblTempVendorCDR_20' ) end [2025-04-24 22:41:18] Production.INFO: ProcessCDR(1,14982725,1,1,2) [2025-04-24 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982725', 'tblTempUsageDetail_20' ) start [2025-04-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982725', 'tblTempUsageDetail_20' ) end [2025-04-24 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:41:21] Production.INFO: ==24122== Releasing lock... [2025-04-24 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:41:21] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:42:04 [end_date_ymd] => 2025-04-24 22:42:04 [RateCDR] => 1 ) [2025-04-24 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:42:04' and `end` < '2025-04-24 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:42:17] Production.INFO: count ==1275 [2025-04-24 22:42:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:42:04 - End Time 2025-04-24 22:42:04 [2025-04-24 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982730', 'tblTempUsageDetail_20' ) start [2025-04-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982730', 'tblTempUsageDetail_20' ) end [2025-04-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982730', 'tblTempVendorCDR_20' ) start [2025-04-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982730', 'tblTempVendorCDR_20' ) end [2025-04-24 22:42:17] Production.INFO: ProcessCDR(1,14982730,1,1,2) [2025-04-24 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982730', 'tblTempUsageDetail_20' ) start [2025-04-24 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982730', 'tblTempUsageDetail_20' ) end [2025-04-24 22:42:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:42:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:42:20] Production.INFO: ==24192== Releasing lock... [2025-04-24 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:42:20] Production.INFO: 38.5 MB #Memory Used# [2025-04-24 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:43:05 [end_date_ymd] => 2025-04-24 22:43:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:43:05' and `end` < '2025-04-24 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-04-24 22:43:17] Production.INFO: count ==1273 [2025-04-24 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:43:05 - End Time 2025-04-24 22:43:05 [2025-04-24 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982735', 'tblTempUsageDetail_20' ) start [2025-04-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982735', 'tblTempUsageDetail_20' ) end [2025-04-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982735', 'tblTempVendorCDR_20' ) start [2025-04-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982735', 'tblTempVendorCDR_20' ) end [2025-04-24 22:43:18] Production.INFO: ProcessCDR(1,14982735,1,1,2) [2025-04-24 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982735', 'tblTempUsageDetail_20' ) start [2025-04-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982735', 'tblTempUsageDetail_20' ) end [2025-04-24 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:43:21] Production.INFO: ==24266== Releasing lock... [2025-04-24 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:44:05 [end_date_ymd] => 2025-04-24 22:44:05 [RateCDR] => 1 ) [2025-04-24 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:44:05' and `end` < '2025-04-24 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:44:18] Production.INFO: count ==1269 [2025-04-24 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:44:05 - End Time 2025-04-24 22:44:05 [2025-04-24 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982740', 'tblTempUsageDetail_20' ) start [2025-04-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982740', 'tblTempUsageDetail_20' ) end [2025-04-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982740', 'tblTempVendorCDR_20' ) start [2025-04-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982740', 'tblTempVendorCDR_20' ) end [2025-04-24 22:44:18] Production.INFO: ProcessCDR(1,14982740,1,1,2) [2025-04-24 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982740', 'tblTempUsageDetail_20' ) start [2025-04-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982740', 'tblTempUsageDetail_20' ) end [2025-04-24 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:44:22] Production.INFO: ==24337== Releasing lock... [2025-04-24 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:44:22] Production.INFO: 38 MB #Memory Used# [2025-04-24 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:45:04 [end_date_ymd] => 2025-04-24 22:45:04 [RateCDR] => 1 ) [2025-04-24 22:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:45:04' and `end` < '2025-04-24 22:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:45:17] Production.INFO: count ==1263 [2025-04-24 22:45:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:45:04 - End Time 2025-04-24 22:45:04 [2025-04-24 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982745', 'tblTempUsageDetail_20' ) start [2025-04-24 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982745', 'tblTempUsageDetail_20' ) end [2025-04-24 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982745', 'tblTempVendorCDR_20' ) start [2025-04-24 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982745', 'tblTempVendorCDR_20' ) end [2025-04-24 22:45:17] Production.INFO: ProcessCDR(1,14982745,1,1,2) [2025-04-24 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982745', 'tblTempUsageDetail_20' ) start [2025-04-24 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982745', 'tblTempUsageDetail_20' ) end [2025-04-24 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:45:20] Production.INFO: ==24416== Releasing lock... [2025-04-24 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:45:20] Production.INFO: 38.25 MB #Memory Used# [2025-04-24 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:46:05 [end_date_ymd] => 2025-04-24 22:46:05 [RateCDR] => 1 ) [2025-04-24 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:46:05' and `end` < '2025-04-24 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:46:18] Production.INFO: count ==1261 [2025-04-24 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:46:05 - End Time 2025-04-24 22:46:05 [2025-04-24 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982750', 'tblTempUsageDetail_20' ) start [2025-04-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982750', 'tblTempUsageDetail_20' ) end [2025-04-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982750', 'tblTempVendorCDR_20' ) start [2025-04-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982750', 'tblTempVendorCDR_20' ) end [2025-04-24 22:46:18] Production.INFO: ProcessCDR(1,14982750,1,1,2) [2025-04-24 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982750', 'tblTempUsageDetail_20' ) start [2025-04-24 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982750', 'tblTempUsageDetail_20' ) end [2025-04-24 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:46:22] Production.INFO: ==24490== Releasing lock... [2025-04-24 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:46:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:47:04 [end_date_ymd] => 2025-04-24 22:47:04 [RateCDR] => 1 ) [2025-04-24 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:47:04' and `end` < '2025-04-24 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:47:17] Production.INFO: count ==1256 [2025-04-24 22:47:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:47:04 - End Time 2025-04-24 22:47:04 [2025-04-24 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982755', 'tblTempUsageDetail_20' ) start [2025-04-24 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982755', 'tblTempUsageDetail_20' ) end [2025-04-24 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982755', 'tblTempVendorCDR_20' ) start [2025-04-24 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982755', 'tblTempVendorCDR_20' ) end [2025-04-24 22:47:17] Production.INFO: ProcessCDR(1,14982755,1,1,2) [2025-04-24 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982755', 'tblTempUsageDetail_20' ) start [2025-04-24 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982755', 'tblTempUsageDetail_20' ) end [2025-04-24 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:47:21] Production.INFO: ==24561== Releasing lock... [2025-04-24 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:47:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:48:05 [end_date_ymd] => 2025-04-24 22:48:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:48:05' and `end` < '2025-04-24 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-04-24 22:48:18] Production.INFO: count ==1258 [2025-04-24 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:48:05 - End Time 2025-04-24 22:48:05 [2025-04-24 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982760', 'tblTempUsageDetail_20' ) start [2025-04-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982760', 'tblTempUsageDetail_20' ) end [2025-04-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982760', 'tblTempVendorCDR_20' ) start [2025-04-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982760', 'tblTempVendorCDR_20' ) end [2025-04-24 22:48:19] Production.INFO: ProcessCDR(1,14982760,1,1,2) [2025-04-24 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982760', 'tblTempUsageDetail_20' ) start [2025-04-24 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982760', 'tblTempUsageDetail_20' ) end [2025-04-24 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:48:22] Production.INFO: ==24642== Releasing lock... [2025-04-24 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:49:05 [end_date_ymd] => 2025-04-24 22:49:05 [RateCDR] => 1 ) [2025-04-24 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:49:05' and `end` < '2025-04-24 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:49:18] Production.INFO: count ==1249 [2025-04-24 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:49:05 - End Time 2025-04-24 22:49:05 [2025-04-24 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982765', 'tblTempUsageDetail_20' ) start [2025-04-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982765', 'tblTempUsageDetail_20' ) end [2025-04-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982765', 'tblTempVendorCDR_20' ) start [2025-04-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982765', 'tblTempVendorCDR_20' ) end [2025-04-24 22:49:19] Production.INFO: ProcessCDR(1,14982765,1,1,2) [2025-04-24 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982765', 'tblTempUsageDetail_20' ) start [2025-04-24 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982765', 'tblTempUsageDetail_20' ) end [2025-04-24 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:49:24] Production.INFO: ==24712== Releasing lock... [2025-04-24 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:49:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:50:06 [end_date_ymd] => 2025-04-24 22:50:06 [RateCDR] => 1 ) [2025-04-24 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:50:06' and `end` < '2025-04-24 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:50:18] Production.INFO: count ==1235 [2025-04-24 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:50:06 - End Time 2025-04-24 22:50:06 [2025-04-24 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982771', 'tblTempUsageDetail_20' ) start [2025-04-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982771', 'tblTempUsageDetail_20' ) end [2025-04-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982771', 'tblTempVendorCDR_20' ) start [2025-04-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982771', 'tblTempVendorCDR_20' ) end [2025-04-24 22:50:19] Production.INFO: ProcessCDR(1,14982771,1,1,2) [2025-04-24 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982771', 'tblTempUsageDetail_20' ) start [2025-04-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982771', 'tblTempUsageDetail_20' ) end [2025-04-24 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:50:22] Production.INFO: ==24783== Releasing lock... [2025-04-24 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:51:05 [end_date_ymd] => 2025-04-24 22:51:05 [RateCDR] => 1 ) [2025-04-24 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:51:05' and `end` < '2025-04-24 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:51:18] Production.INFO: count ==1192 [2025-04-24 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:51:05 - End Time 2025-04-24 22:51:05 [2025-04-24 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982776', 'tblTempUsageDetail_20' ) start [2025-04-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982776', 'tblTempUsageDetail_20' ) end [2025-04-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982776', 'tblTempVendorCDR_20' ) start [2025-04-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982776', 'tblTempVendorCDR_20' ) end [2025-04-24 22:51:18] Production.INFO: ProcessCDR(1,14982776,1,1,2) [2025-04-24 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982776', 'tblTempUsageDetail_20' ) start [2025-04-24 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982776', 'tblTempUsageDetail_20' ) end [2025-04-24 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:51:22] Production.INFO: ==24857== Releasing lock... [2025-04-24 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:51:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:52:05 [end_date_ymd] => 2025-04-24 22:52:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:52:05' and `end` < '2025-04-24 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-04-24 22:52:17] Production.INFO: count ==1189 [2025-04-24 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:52:05 - End Time 2025-04-24 22:52:05 [2025-04-24 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982781', 'tblTempUsageDetail_20' ) start [2025-04-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982781', 'tblTempUsageDetail_20' ) end [2025-04-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982781', 'tblTempVendorCDR_20' ) start [2025-04-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982781', 'tblTempVendorCDR_20' ) end [2025-04-24 22:52:18] Production.INFO: ProcessCDR(1,14982781,1,1,2) [2025-04-24 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982781', 'tblTempUsageDetail_20' ) start [2025-04-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982781', 'tblTempUsageDetail_20' ) end [2025-04-24 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:52:21] Production.INFO: ==24927== Releasing lock... [2025-04-24 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:53:05 [end_date_ymd] => 2025-04-24 22:53:05 [RateCDR] => 1 ) [2025-04-24 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:53:05' and `end` < '2025-04-24 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:53:17] Production.INFO: count ==1190 [2025-04-24 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:53:05 - End Time 2025-04-24 22:53:05 [2025-04-24 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982786', 'tblTempUsageDetail_20' ) start [2025-04-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982786', 'tblTempUsageDetail_20' ) end [2025-04-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982786', 'tblTempVendorCDR_20' ) start [2025-04-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982786', 'tblTempVendorCDR_20' ) end [2025-04-24 22:53:18] Production.INFO: ProcessCDR(1,14982786,1,1,2) [2025-04-24 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982786', 'tblTempUsageDetail_20' ) start [2025-04-24 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982786', 'tblTempUsageDetail_20' ) end [2025-04-24 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:53:23] Production.INFO: ==25003== Releasing lock... [2025-04-24 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:53:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:54:05 [end_date_ymd] => 2025-04-24 22:54:05 [RateCDR] => 1 ) [2025-04-24 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:54:05' and `end` < '2025-04-24 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:54:18] Production.INFO: count ==1191 [2025-04-24 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:54:05 - End Time 2025-04-24 22:54:05 [2025-04-24 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982791', 'tblTempUsageDetail_20' ) start [2025-04-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982791', 'tblTempUsageDetail_20' ) end [2025-04-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982791', 'tblTempVendorCDR_20' ) start [2025-04-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982791', 'tblTempVendorCDR_20' ) end [2025-04-24 22:54:18] Production.INFO: ProcessCDR(1,14982791,1,1,2) [2025-04-24 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982791', 'tblTempUsageDetail_20' ) start [2025-04-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982791', 'tblTempUsageDetail_20' ) end [2025-04-24 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:54:22] Production.INFO: ==25113== Releasing lock... [2025-04-24 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:55:05 [end_date_ymd] => 2025-04-24 22:55:05 [RateCDR] => 1 ) [2025-04-24 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:55:05' and `end` < '2025-04-24 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:55:17] Production.INFO: count ==1188 [2025-04-24 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:55:05 - End Time 2025-04-24 22:55:05 [2025-04-24 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982796', 'tblTempUsageDetail_20' ) start [2025-04-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982796', 'tblTempUsageDetail_20' ) end [2025-04-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982796', 'tblTempVendorCDR_20' ) start [2025-04-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982796', 'tblTempVendorCDR_20' ) end [2025-04-24 22:55:18] Production.INFO: ProcessCDR(1,14982796,1,1,2) [2025-04-24 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982796', 'tblTempUsageDetail_20' ) start [2025-04-24 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982796', 'tblTempUsageDetail_20' ) end [2025-04-24 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:55:21] Production.INFO: ==25186== Releasing lock... [2025-04-24 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-24 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:56:06 [end_date_ymd] => 2025-04-24 22:56:06 [RateCDR] => 1 ) [2025-04-24 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:56:06' and `end` < '2025-04-24 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:56:19] Production.INFO: count ==1185 [2025-04-24 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-24 19:56:06 - End Time 2025-04-24 22:56:06 [2025-04-24 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982801', 'tblTempUsageDetail_20' ) start [2025-04-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982801', 'tblTempUsageDetail_20' ) end [2025-04-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982801', 'tblTempVendorCDR_20' ) start [2025-04-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982801', 'tblTempVendorCDR_20' ) end [2025-04-24 22:56:19] Production.INFO: ProcessCDR(1,14982801,1,1,2) [2025-04-24 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982801', 'tblTempUsageDetail_20' ) start [2025-04-24 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982801', 'tblTempUsageDetail_20' ) end [2025-04-24 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:56:23] Production.INFO: ==25260== Releasing lock... [2025-04-24 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:57:05 [end_date_ymd] => 2025-04-24 22:57:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 19:57:05' and `end` < '2025-04-24 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-04-24 22:57:18] Production.INFO: count ==1184 [2025-04-24 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:57:05 - End Time 2025-04-24 22:57:05 [2025-04-24 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982806', 'tblTempUsageDetail_20' ) start [2025-04-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982806', 'tblTempUsageDetail_20' ) end [2025-04-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982806', 'tblTempVendorCDR_20' ) start [2025-04-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982806', 'tblTempVendorCDR_20' ) end [2025-04-24 22:57:18] Production.INFO: ProcessCDR(1,14982806,1,1,2) [2025-04-24 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982806', 'tblTempUsageDetail_20' ) start [2025-04-24 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982806', 'tblTempUsageDetail_20' ) end [2025-04-24 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:57:22] Production.INFO: ==25330== Releasing lock... [2025-04-24 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:58:05 [end_date_ymd] => 2025-04-24 22:58:05 [RateCDR] => 1 ) [2025-04-24 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:58:05' and `end` < '2025-04-24 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:58:18] Production.INFO: count ==1181 [2025-04-24 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 19:58:05 - End Time 2025-04-24 22:58:05 [2025-04-24 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982811', 'tblTempUsageDetail_20' ) start [2025-04-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982811', 'tblTempUsageDetail_20' ) end [2025-04-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982811', 'tblTempVendorCDR_20' ) start [2025-04-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982811', 'tblTempVendorCDR_20' ) end [2025-04-24 22:58:18] Production.INFO: ProcessCDR(1,14982811,1,1,2) [2025-04-24 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982811', 'tblTempUsageDetail_20' ) start [2025-04-24 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982811', 'tblTempUsageDetail_20' ) end [2025-04-24 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:58:22] Production.INFO: ==25400== Releasing lock... [2025-04-24 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:58:22] Production.INFO: 37 MB #Memory Used# [2025-04-24 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 19:59:05 [end_date_ymd] => 2025-04-24 22:59:05 [RateCDR] => 1 ) [2025-04-24 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 19:59:05' and `end` < '2025-04-24 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 22:59:17] Production.INFO: count ==1174 [2025-04-24 22:59:17] Production.ERROR: pbx CDR StartTime 2025-04-24 19:59:05 - End Time 2025-04-24 22:59:05 [2025-04-24 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982816', 'tblTempUsageDetail_20' ) start [2025-04-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982816', 'tblTempUsageDetail_20' ) end [2025-04-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982816', 'tblTempVendorCDR_20' ) start [2025-04-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982816', 'tblTempVendorCDR_20' ) end [2025-04-24 22:59:18] Production.INFO: ProcessCDR(1,14982816,1,1,2) [2025-04-24 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982816', 'tblTempUsageDetail_20' ) start [2025-04-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982816', 'tblTempUsageDetail_20' ) end [2025-04-24 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 22:59:21] Production.INFO: ==25471== Releasing lock... [2025-04-24 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 22:59:21] Production.INFO: 37 MB #Memory Used# [2025-04-24 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:00:07 [end_date_ymd] => 2025-04-24 23:00:07 [RateCDR] => 1 ) [2025-04-24 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:00:07' and `end` < '2025-04-24 23:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:00:19] Production.INFO: count ==1178 [2025-04-24 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-24 20:00:07 - End Time 2025-04-24 23:00:07 [2025-04-24 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982822', 'tblTempUsageDetail_20' ) start [2025-04-24 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982822', 'tblTempUsageDetail_20' ) end [2025-04-24 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982822', 'tblTempVendorCDR_20' ) start [2025-04-24 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982822', 'tblTempVendorCDR_20' ) end [2025-04-24 23:00:20] Production.INFO: ProcessCDR(1,14982822,1,1,2) [2025-04-24 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982822', 'tblTempUsageDetail_20' ) start [2025-04-24 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982822', 'tblTempUsageDetail_20' ) end [2025-04-24 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:00:23] Production.INFO: ==25553== Releasing lock... [2025-04-24 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:01:05 [end_date_ymd] => 2025-04-24 23:01:05 [RateCDR] => 1 ) [2025-04-24 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:01:05' and `end` < '2025-04-24 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:01:18] Production.INFO: count ==1164 [2025-04-24 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:01:05 - End Time 2025-04-24 23:01:05 [2025-04-24 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982827', 'tblTempUsageDetail_20' ) start [2025-04-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982827', 'tblTempUsageDetail_20' ) end [2025-04-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982827', 'tblTempVendorCDR_20' ) start [2025-04-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982827', 'tblTempVendorCDR_20' ) end [2025-04-24 23:01:18] Production.INFO: ProcessCDR(1,14982827,1,1,2) [2025-04-24 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982827', 'tblTempUsageDetail_20' ) start [2025-04-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982827', 'tblTempUsageDetail_20' ) end [2025-04-24 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:01:21] Production.INFO: ==25678== Releasing lock... [2025-04-24 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:02:06 [end_date_ymd] => 2025-04-24 23:02:06 [RateCDR] => 1 ) [2025-04-24 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:02:06' and `end` < '2025-04-24 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:02:19] Production.INFO: count ==1164 [2025-04-24 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:02:06 - End Time 2025-04-24 23:02:06 [2025-04-24 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982832', 'tblTempUsageDetail_20' ) start [2025-04-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982832', 'tblTempUsageDetail_20' ) end [2025-04-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982832', 'tblTempVendorCDR_20' ) start [2025-04-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982832', 'tblTempVendorCDR_20' ) end [2025-04-24 23:02:19] Production.INFO: ProcessCDR(1,14982832,1,1,2) [2025-04-24 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982832', 'tblTempUsageDetail_20' ) start [2025-04-24 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982832', 'tblTempUsageDetail_20' ) end [2025-04-24 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:02:24] Production.INFO: ==25795== Releasing lock... [2025-04-24 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:02:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:03:05 [end_date_ymd] => 2025-04-24 23:03:05 [RateCDR] => 1 ) [2025-04-24 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:03:05' and `end` < '2025-04-24 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:03:18] Production.INFO: count ==1163 [2025-04-24 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:03:05 - End Time 2025-04-24 23:03:05 [2025-04-24 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982837', 'tblTempUsageDetail_20' ) start [2025-04-24 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982837', 'tblTempUsageDetail_20' ) end [2025-04-24 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982837', 'tblTempVendorCDR_20' ) start [2025-04-24 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982837', 'tblTempVendorCDR_20' ) end [2025-04-24 23:03:18] Production.INFO: ProcessCDR(1,14982837,1,1,2) [2025-04-24 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982837', 'tblTempUsageDetail_20' ) start [2025-04-24 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982837', 'tblTempUsageDetail_20' ) end [2025-04-24 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:03:22] Production.INFO: ==25865== Releasing lock... [2025-04-24 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:04:05 [end_date_ymd] => 2025-04-24 23:04:05 [RateCDR] => 1 ) [2025-04-24 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:04:05' and `end` < '2025-04-24 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:04:18] Production.INFO: count ==1158 [2025-04-24 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:04:05 - End Time 2025-04-24 23:04:05 [2025-04-24 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982842', 'tblTempUsageDetail_20' ) start [2025-04-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982842', 'tblTempUsageDetail_20' ) end [2025-04-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982842', 'tblTempVendorCDR_20' ) start [2025-04-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982842', 'tblTempVendorCDR_20' ) end [2025-04-24 23:04:18] Production.INFO: ProcessCDR(1,14982842,1,1,2) [2025-04-24 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982842', 'tblTempUsageDetail_20' ) start [2025-04-24 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982842', 'tblTempUsageDetail_20' ) end [2025-04-24 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:04:22] Production.INFO: ==25948== Releasing lock... [2025-04-24 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:04:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:05:05 [end_date_ymd] => 2025-04-24 23:05:05 [RateCDR] => 1 ) [2025-04-24 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:05:05' and `end` < '2025-04-24 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:05:17] Production.INFO: count ==1151 [2025-04-24 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:05:05 - End Time 2025-04-24 23:05:05 [2025-04-24 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982847', 'tblTempUsageDetail_20' ) start [2025-04-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982847', 'tblTempUsageDetail_20' ) end [2025-04-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982847', 'tblTempVendorCDR_20' ) start [2025-04-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982847', 'tblTempVendorCDR_20' ) end [2025-04-24 23:05:18] Production.INFO: ProcessCDR(1,14982847,1,1,2) [2025-04-24 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982847', 'tblTempUsageDetail_20' ) start [2025-04-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982847', 'tblTempUsageDetail_20' ) end [2025-04-24 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:05:21] Production.INFO: ==26097== Releasing lock... [2025-04-24 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:06:05 [end_date_ymd] => 2025-04-24 23:06:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:06:05' and `end` < '2025-04-24 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-04-24 23:06:18] Production.INFO: count ==1151 [2025-04-24 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:06:05 - End Time 2025-04-24 23:06:05 [2025-04-24 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982852', 'tblTempUsageDetail_20' ) start [2025-04-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982852', 'tblTempUsageDetail_20' ) end [2025-04-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982852', 'tblTempVendorCDR_20' ) start [2025-04-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982852', 'tblTempVendorCDR_20' ) end [2025-04-24 23:06:18] Production.INFO: ProcessCDR(1,14982852,1,1,2) [2025-04-24 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982852', 'tblTempUsageDetail_20' ) start [2025-04-24 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982852', 'tblTempUsageDetail_20' ) end [2025-04-24 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:06:21] Production.INFO: ==26169== Releasing lock... [2025-04-24 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:06:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:07:05 [end_date_ymd] => 2025-04-24 23:07:05 [RateCDR] => 1 ) [2025-04-24 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:07:05' and `end` < '2025-04-24 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:07:17] Production.INFO: count ==1147 [2025-04-24 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:07:05 - End Time 2025-04-24 23:07:05 [2025-04-24 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982857', 'tblTempUsageDetail_20' ) start [2025-04-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982857', 'tblTempUsageDetail_20' ) end [2025-04-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982857', 'tblTempVendorCDR_20' ) start [2025-04-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982857', 'tblTempVendorCDR_20' ) end [2025-04-24 23:07:18] Production.INFO: ProcessCDR(1,14982857,1,1,2) [2025-04-24 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982857', 'tblTempUsageDetail_20' ) start [2025-04-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982857', 'tblTempUsageDetail_20' ) end [2025-04-24 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:07:21] Production.INFO: ==26241== Releasing lock... [2025-04-24 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:08:05 [end_date_ymd] => 2025-04-24 23:08:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:08:05' and `end` < '2025-04-24 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-04-24 23:08:18] Production.INFO: count ==1147 [2025-04-24 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:08:05 - End Time 2025-04-24 23:08:05 [2025-04-24 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982862', 'tblTempUsageDetail_20' ) start [2025-04-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982862', 'tblTempUsageDetail_20' ) end [2025-04-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982862', 'tblTempVendorCDR_20' ) start [2025-04-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982862', 'tblTempVendorCDR_20' ) end [2025-04-24 23:08:18] Production.INFO: ProcessCDR(1,14982862,1,1,2) [2025-04-24 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982862', 'tblTempUsageDetail_20' ) start [2025-04-24 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982862', 'tblTempUsageDetail_20' ) end [2025-04-24 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:08:21] Production.INFO: ==26391== Releasing lock... [2025-04-24 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-24 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:09:06 [end_date_ymd] => 2025-04-24 23:09:06 [RateCDR] => 1 ) [2025-04-24 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:09:06' and `end` < '2025-04-24 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:09:18] Production.INFO: count ==1148 [2025-04-24 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:09:06 - End Time 2025-04-24 23:09:06 [2025-04-24 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982867', 'tblTempUsageDetail_20' ) start [2025-04-24 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982867', 'tblTempUsageDetail_20' ) end [2025-04-24 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982867', 'tblTempVendorCDR_20' ) start [2025-04-24 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982867', 'tblTempVendorCDR_20' ) end [2025-04-24 23:09:19] Production.INFO: ProcessCDR(1,14982867,1,1,2) [2025-04-24 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982867', 'tblTempUsageDetail_20' ) start [2025-04-24 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982867', 'tblTempUsageDetail_20' ) end [2025-04-24 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:09:22] Production.INFO: ==26466== Releasing lock... [2025-04-24 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-24 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:10:06 [end_date_ymd] => 2025-04-24 23:10:06 [RateCDR] => 1 ) [2025-04-24 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:10:06' and `end` < '2025-04-24 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:10:18] Production.INFO: count ==1134 [2025-04-24 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:10:06 - End Time 2025-04-24 23:10:06 [2025-04-24 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982873', 'tblTempUsageDetail_20' ) start [2025-04-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982873', 'tblTempUsageDetail_20' ) end [2025-04-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982873', 'tblTempVendorCDR_20' ) start [2025-04-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982873', 'tblTempVendorCDR_20' ) end [2025-04-24 23:10:19] Production.INFO: ProcessCDR(1,14982873,1,1,2) [2025-04-24 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982873', 'tblTempUsageDetail_20' ) start [2025-04-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982873', 'tblTempUsageDetail_20' ) end [2025-04-24 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:10:22] Production.INFO: ==26580== Releasing lock... [2025-04-24 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:10:22] Production.INFO: 37 MB #Memory Used# [2025-04-24 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:11:05 [end_date_ymd] => 2025-04-24 23:11:05 [RateCDR] => 1 ) [2025-04-24 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:11:05' and `end` < '2025-04-24 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:11:18] Production.INFO: count ==1080 [2025-04-24 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:11:05 - End Time 2025-04-24 23:11:05 [2025-04-24 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982878', 'tblTempUsageDetail_20' ) start [2025-04-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982878', 'tblTempUsageDetail_20' ) end [2025-04-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982878', 'tblTempVendorCDR_20' ) start [2025-04-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982878', 'tblTempVendorCDR_20' ) end [2025-04-24 23:11:18] Production.INFO: ProcessCDR(1,14982878,1,1,2) [2025-04-24 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982878', 'tblTempUsageDetail_20' ) start [2025-04-24 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982878', 'tblTempUsageDetail_20' ) end [2025-04-24 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:11:21] Production.INFO: ==26652== Releasing lock... [2025-04-24 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:11:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:12:05 [end_date_ymd] => 2025-04-24 23:12:05 [RateCDR] => 1 ) [2025-04-24 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:12:05' and `end` < '2025-04-24 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:12:18] Production.INFO: count ==1078 [2025-04-24 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:12:05 - End Time 2025-04-24 23:12:05 [2025-04-24 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982883', 'tblTempUsageDetail_20' ) start [2025-04-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982883', 'tblTempUsageDetail_20' ) end [2025-04-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982883', 'tblTempVendorCDR_20' ) start [2025-04-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982883', 'tblTempVendorCDR_20' ) end [2025-04-24 23:12:18] Production.INFO: ProcessCDR(1,14982883,1,1,2) [2025-04-24 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982883', 'tblTempUsageDetail_20' ) start [2025-04-24 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982883', 'tblTempUsageDetail_20' ) end [2025-04-24 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:12:22] Production.INFO: ==26801== Releasing lock... [2025-04-24 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:13:05 [end_date_ymd] => 2025-04-24 23:13:05 [RateCDR] => 1 ) [2025-04-24 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:13:05' and `end` < '2025-04-24 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:13:18] Production.INFO: count ==1076 [2025-04-24 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:13:05 - End Time 2025-04-24 23:13:05 [2025-04-24 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982888', 'tblTempUsageDetail_20' ) start [2025-04-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982888', 'tblTempUsageDetail_20' ) end [2025-04-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982888', 'tblTempVendorCDR_20' ) start [2025-04-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982888', 'tblTempVendorCDR_20' ) end [2025-04-24 23:13:18] Production.INFO: ProcessCDR(1,14982888,1,1,2) [2025-04-24 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982888', 'tblTempUsageDetail_20' ) start [2025-04-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982888', 'tblTempUsageDetail_20' ) end [2025-04-24 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:13:22] Production.INFO: ==26875== Releasing lock... [2025-04-24 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:14:06 [end_date_ymd] => 2025-04-24 23:14:06 [RateCDR] => 1 ) [2025-04-24 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:14:06' and `end` < '2025-04-24 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:14:18] Production.INFO: count ==1076 [2025-04-24 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:14:06 - End Time 2025-04-24 23:14:06 [2025-04-24 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982893', 'tblTempUsageDetail_20' ) start [2025-04-24 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982893', 'tblTempUsageDetail_20' ) end [2025-04-24 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982893', 'tblTempVendorCDR_20' ) start [2025-04-24 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982893', 'tblTempVendorCDR_20' ) end [2025-04-24 23:14:19] Production.INFO: ProcessCDR(1,14982893,1,1,2) [2025-04-24 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982893', 'tblTempUsageDetail_20' ) start [2025-04-24 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982893', 'tblTempUsageDetail_20' ) end [2025-04-24 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:14:22] Production.INFO: ==26947== Releasing lock... [2025-04-24 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:14:22] Production.INFO: 37 MB #Memory Used# [2025-04-24 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:15:05 [end_date_ymd] => 2025-04-24 23:15:05 [RateCDR] => 1 ) [2025-04-24 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:15:05' and `end` < '2025-04-24 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:15:18] Production.INFO: count ==1077 [2025-04-24 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:15:05 - End Time 2025-04-24 23:15:05 [2025-04-24 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982898', 'tblTempUsageDetail_20' ) start [2025-04-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982898', 'tblTempUsageDetail_20' ) end [2025-04-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982898', 'tblTempVendorCDR_20' ) start [2025-04-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982898', 'tblTempVendorCDR_20' ) end [2025-04-24 23:15:18] Production.INFO: ProcessCDR(1,14982898,1,1,2) [2025-04-24 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982898', 'tblTempUsageDetail_20' ) start [2025-04-24 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982898', 'tblTempUsageDetail_20' ) end [2025-04-24 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:15:21] Production.INFO: ==27100== Releasing lock... [2025-04-24 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:15:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:16:05 [end_date_ymd] => 2025-04-24 23:16:05 [RateCDR] => 1 ) [2025-04-24 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:16:05' and `end` < '2025-04-24 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:16:18] Production.INFO: count ==1071 [2025-04-24 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:16:05 - End Time 2025-04-24 23:16:05 [2025-04-24 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982903', 'tblTempUsageDetail_20' ) start [2025-04-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982903', 'tblTempUsageDetail_20' ) end [2025-04-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982903', 'tblTempVendorCDR_20' ) start [2025-04-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982903', 'tblTempVendorCDR_20' ) end [2025-04-24 23:16:18] Production.INFO: ProcessCDR(1,14982903,1,1,2) [2025-04-24 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982903', 'tblTempUsageDetail_20' ) start [2025-04-24 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982903', 'tblTempUsageDetail_20' ) end [2025-04-24 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:16:22] Production.INFO: ==27174== Releasing lock... [2025-04-24 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:17:05 [end_date_ymd] => 2025-04-24 23:17:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:17:05' and `end` < '2025-04-24 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-04-24 23:17:17] Production.INFO: count ==1069 [2025-04-24 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:17:05 - End Time 2025-04-24 23:17:05 [2025-04-24 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982908', 'tblTempUsageDetail_20' ) start [2025-04-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982908', 'tblTempUsageDetail_20' ) end [2025-04-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982908', 'tblTempVendorCDR_20' ) start [2025-04-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982908', 'tblTempVendorCDR_20' ) end [2025-04-24 23:17:18] Production.INFO: ProcessCDR(1,14982908,1,1,2) [2025-04-24 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982908', 'tblTempUsageDetail_20' ) start [2025-04-24 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982908', 'tblTempUsageDetail_20' ) end [2025-04-24 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:17:21] Production.INFO: ==27256== Releasing lock... [2025-04-24 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:17:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:18:05 [end_date_ymd] => 2025-04-24 23:18:05 [RateCDR] => 1 ) [2025-04-24 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:18:05' and `end` < '2025-04-24 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:18:18] Production.INFO: count ==1064 [2025-04-24 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:18:05 - End Time 2025-04-24 23:18:05 [2025-04-24 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982913', 'tblTempUsageDetail_20' ) start [2025-04-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982913', 'tblTempUsageDetail_20' ) end [2025-04-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982913', 'tblTempVendorCDR_20' ) start [2025-04-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982913', 'tblTempVendorCDR_20' ) end [2025-04-24 23:18:18] Production.INFO: ProcessCDR(1,14982913,1,1,2) [2025-04-24 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982913', 'tblTempUsageDetail_20' ) start [2025-04-24 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982913', 'tblTempUsageDetail_20' ) end [2025-04-24 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:18:22] Production.INFO: ==27328== Releasing lock... [2025-04-24 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:19:05 [end_date_ymd] => 2025-04-24 23:19:05 [RateCDR] => 1 ) [2025-04-24 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:19:05' and `end` < '2025-04-24 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:19:18] Production.INFO: count ==1064 [2025-04-24 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:19:05 - End Time 2025-04-24 23:19:05 [2025-04-24 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982918', 'tblTempUsageDetail_20' ) start [2025-04-24 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982918', 'tblTempUsageDetail_20' ) end [2025-04-24 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982918', 'tblTempVendorCDR_20' ) start [2025-04-24 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982918', 'tblTempVendorCDR_20' ) end [2025-04-24 23:19:18] Production.INFO: ProcessCDR(1,14982918,1,1,2) [2025-04-24 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982918', 'tblTempUsageDetail_20' ) start [2025-04-24 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982918', 'tblTempUsageDetail_20' ) end [2025-04-24 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:19:22] Production.INFO: ==27398== Releasing lock... [2025-04-24 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:20:06 [end_date_ymd] => 2025-04-24 23:20:06 [RateCDR] => 1 ) [2025-04-24 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:20:06' and `end` < '2025-04-24 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:20:18] Production.INFO: count ==1060 [2025-04-24 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:20:06 - End Time 2025-04-24 23:20:06 [2025-04-24 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982923', 'tblTempUsageDetail_20' ) start [2025-04-24 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982923', 'tblTempUsageDetail_20' ) end [2025-04-24 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982923', 'tblTempVendorCDR_20' ) start [2025-04-24 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982923', 'tblTempVendorCDR_20' ) end [2025-04-24 23:20:19] Production.INFO: ProcessCDR(1,14982923,1,1,2) [2025-04-24 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982923', 'tblTempUsageDetail_20' ) start [2025-04-24 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982923', 'tblTempUsageDetail_20' ) end [2025-04-24 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:20:22] Production.INFO: ==27472== Releasing lock... [2025-04-24 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:20:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:21:05 [end_date_ymd] => 2025-04-24 23:21:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:21:05' and `end` < '2025-04-24 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-04-24 23:21:18] Production.INFO: count ==1052 [2025-04-24 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:21:05 - End Time 2025-04-24 23:21:05 [2025-04-24 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982929', 'tblTempUsageDetail_20' ) start [2025-04-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982929', 'tblTempUsageDetail_20' ) end [2025-04-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982929', 'tblTempVendorCDR_20' ) start [2025-04-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982929', 'tblTempVendorCDR_20' ) end [2025-04-24 23:21:18] Production.INFO: ProcessCDR(1,14982929,1,1,2) [2025-04-24 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982929', 'tblTempUsageDetail_20' ) start [2025-04-24 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982929', 'tblTempUsageDetail_20' ) end [2025-04-24 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:21:21] Production.INFO: ==27546== Releasing lock... [2025-04-24 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:22:05 [end_date_ymd] => 2025-04-24 23:22:05 [RateCDR] => 1 ) [2025-04-24 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:22:05' and `end` < '2025-04-24 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:22:18] Production.INFO: count ==1047 [2025-04-24 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:22:05 - End Time 2025-04-24 23:22:05 [2025-04-24 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982934', 'tblTempUsageDetail_20' ) start [2025-04-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982934', 'tblTempUsageDetail_20' ) end [2025-04-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982934', 'tblTempVendorCDR_20' ) start [2025-04-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982934', 'tblTempVendorCDR_20' ) end [2025-04-24 23:22:18] Production.INFO: ProcessCDR(1,14982934,1,1,2) [2025-04-24 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982934', 'tblTempUsageDetail_20' ) start [2025-04-24 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982934', 'tblTempUsageDetail_20' ) end [2025-04-24 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:22:21] Production.INFO: ==27617== Releasing lock... [2025-04-24 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:23:06 [end_date_ymd] => 2025-04-24 23:23:06 [RateCDR] => 1 ) [2025-04-24 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:23:06' and `end` < '2025-04-24 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:23:18] Production.INFO: count ==1045 [2025-04-24 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:23:06 - End Time 2025-04-24 23:23:06 [2025-04-24 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982939', 'tblTempUsageDetail_20' ) start [2025-04-24 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982939', 'tblTempUsageDetail_20' ) end [2025-04-24 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982939', 'tblTempVendorCDR_20' ) start [2025-04-24 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982939', 'tblTempVendorCDR_20' ) end [2025-04-24 23:23:19] Production.INFO: ProcessCDR(1,14982939,1,1,2) [2025-04-24 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982939', 'tblTempUsageDetail_20' ) start [2025-04-24 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982939', 'tblTempUsageDetail_20' ) end [2025-04-24 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:23:23] Production.INFO: ==27692== Releasing lock... [2025-04-24 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:23:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:24:05 [end_date_ymd] => 2025-04-24 23:24:05 [RateCDR] => 1 ) [2025-04-24 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:24:05' and `end` < '2025-04-24 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:24:17] Production.INFO: count ==1036 [2025-04-24 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:24:05 - End Time 2025-04-24 23:24:05 [2025-04-24 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982944', 'tblTempUsageDetail_20' ) start [2025-04-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982944', 'tblTempUsageDetail_20' ) end [2025-04-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982944', 'tblTempVendorCDR_20' ) start [2025-04-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982944', 'tblTempVendorCDR_20' ) end [2025-04-24 23:24:18] Production.INFO: ProcessCDR(1,14982944,1,1,2) [2025-04-24 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982944', 'tblTempUsageDetail_20' ) start [2025-04-24 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982944', 'tblTempUsageDetail_20' ) end [2025-04-24 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:24:22] Production.INFO: ==27762== Releasing lock... [2025-04-24 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:24:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:25:05 [end_date_ymd] => 2025-04-24 23:25:05 [RateCDR] => 1 ) [2025-04-24 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:25:05' and `end` < '2025-04-24 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:25:18] Production.INFO: count ==1028 [2025-04-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:25:05 - End Time 2025-04-24 23:25:05 [2025-04-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982949', 'tblTempUsageDetail_20' ) start [2025-04-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982949', 'tblTempUsageDetail_20' ) end [2025-04-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982949', 'tblTempVendorCDR_20' ) start [2025-04-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982949', 'tblTempVendorCDR_20' ) end [2025-04-24 23:25:18] Production.INFO: ProcessCDR(1,14982949,1,1,2) [2025-04-24 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982949', 'tblTempUsageDetail_20' ) start [2025-04-24 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982949', 'tblTempUsageDetail_20' ) end [2025-04-24 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:25:21] Production.INFO: ==27871== Releasing lock... [2025-04-24 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:25:22] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:26:05 [end_date_ymd] => 2025-04-24 23:26:05 [RateCDR] => 1 ) [2025-04-24 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:26:05' and `end` < '2025-04-24 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:26:17] Production.INFO: count ==1024 [2025-04-24 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:26:05 - End Time 2025-04-24 23:26:05 [2025-04-24 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982954', 'tblTempUsageDetail_20' ) start [2025-04-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982954', 'tblTempUsageDetail_20' ) end [2025-04-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982954', 'tblTempVendorCDR_20' ) start [2025-04-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982954', 'tblTempVendorCDR_20' ) end [2025-04-24 23:26:18] Production.INFO: ProcessCDR(1,14982954,1,1,2) [2025-04-24 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982954', 'tblTempUsageDetail_20' ) start [2025-04-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982954', 'tblTempUsageDetail_20' ) end [2025-04-24 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:26:21] Production.INFO: ==27941== Releasing lock... [2025-04-24 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:26:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-24 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:27:05 [end_date_ymd] => 2025-04-24 23:27:05 [RateCDR] => 1 ) [2025-04-24 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:27:05' and `end` < '2025-04-24 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:27:18] Production.INFO: count ==1024 [2025-04-24 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:27:05 - End Time 2025-04-24 23:27:05 [2025-04-24 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982959', 'tblTempUsageDetail_20' ) start [2025-04-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982959', 'tblTempUsageDetail_20' ) end [2025-04-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982959', 'tblTempVendorCDR_20' ) start [2025-04-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982959', 'tblTempVendorCDR_20' ) end [2025-04-24 23:27:18] Production.INFO: ProcessCDR(1,14982959,1,1,2) [2025-04-24 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982959', 'tblTempUsageDetail_20' ) start [2025-04-24 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982959', 'tblTempUsageDetail_20' ) end [2025-04-24 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:27:21] Production.INFO: ==28012== Releasing lock... [2025-04-24 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:27:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-24 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:28:05 [end_date_ymd] => 2025-04-24 23:28:05 [RateCDR] => 1 ) [2025-04-24 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:28:05' and `end` < '2025-04-24 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:28:18] Production.INFO: count ==1021 [2025-04-24 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:28:05 - End Time 2025-04-24 23:28:05 [2025-04-24 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982964', 'tblTempUsageDetail_20' ) start [2025-04-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982964', 'tblTempUsageDetail_20' ) end [2025-04-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982964', 'tblTempVendorCDR_20' ) start [2025-04-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982964', 'tblTempVendorCDR_20' ) end [2025-04-24 23:28:18] Production.INFO: ProcessCDR(1,14982964,1,1,2) [2025-04-24 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982964', 'tblTempUsageDetail_20' ) start [2025-04-24 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982964', 'tblTempUsageDetail_20' ) end [2025-04-24 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:28:21] Production.INFO: ==28085== Releasing lock... [2025-04-24 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:28:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:29:04 [end_date_ymd] => 2025-04-24 23:29:04 [RateCDR] => 1 ) [2025-04-24 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:29:04' and `end` < '2025-04-24 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:29:17] Production.INFO: count ==1015 [2025-04-24 23:29:17] Production.ERROR: pbx CDR StartTime 2025-04-24 20:29:04 - End Time 2025-04-24 23:29:04 [2025-04-24 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982969', 'tblTempUsageDetail_20' ) start [2025-04-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982969', 'tblTempUsageDetail_20' ) end [2025-04-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982969', 'tblTempVendorCDR_20' ) start [2025-04-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982969', 'tblTempVendorCDR_20' ) end [2025-04-24 23:29:18] Production.INFO: ProcessCDR(1,14982969,1,1,2) [2025-04-24 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982969', 'tblTempUsageDetail_20' ) start [2025-04-24 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982969', 'tblTempUsageDetail_20' ) end [2025-04-24 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:29:21] Production.INFO: ==28160== Releasing lock... [2025-04-24 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:30:05 [end_date_ymd] => 2025-04-24 23:30:05 [RateCDR] => 1 ) [2025-04-24 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:30:05' and `end` < '2025-04-24 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:30:18] Production.INFO: count ==1014 [2025-04-24 23:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:30:05 - End Time 2025-04-24 23:30:05 [2025-04-24 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982974', 'tblTempUsageDetail_20' ) start [2025-04-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982974', 'tblTempUsageDetail_20' ) end [2025-04-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982974', 'tblTempVendorCDR_20' ) start [2025-04-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982974', 'tblTempVendorCDR_20' ) end [2025-04-24 23:30:18] Production.INFO: ProcessCDR(1,14982974,1,1,2) [2025-04-24 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982974', 'tblTempUsageDetail_20' ) start [2025-04-24 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982974', 'tblTempUsageDetail_20' ) end [2025-04-24 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:30:22] Production.INFO: ==28234== Releasing lock... [2025-04-24 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-24 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:31:04 [end_date_ymd] => 2025-04-24 23:31:04 [RateCDR] => 1 ) [2025-04-24 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:31:04' and `end` < '2025-04-24 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:31:17] Production.INFO: count ==974 [2025-04-24 23:31:17] Production.ERROR: pbx CDR StartTime 2025-04-24 20:31:04 - End Time 2025-04-24 23:31:04 [2025-04-24 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982980', 'tblTempUsageDetail_20' ) start [2025-04-24 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982980', 'tblTempUsageDetail_20' ) end [2025-04-24 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982980', 'tblTempVendorCDR_20' ) start [2025-04-24 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982980', 'tblTempVendorCDR_20' ) end [2025-04-24 23:31:17] Production.INFO: ProcessCDR(1,14982980,1,1,2) [2025-04-24 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982980', 'tblTempUsageDetail_20' ) start [2025-04-24 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982980', 'tblTempUsageDetail_20' ) end [2025-04-24 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:31:21] Production.INFO: ==28307== Releasing lock... [2025-04-24 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:32:05 [end_date_ymd] => 2025-04-24 23:32:05 [RateCDR] => 1 ) [2025-04-24 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:32:05' and `end` < '2025-04-24 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:32:18] Production.INFO: count ==970 [2025-04-24 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:32:05 - End Time 2025-04-24 23:32:05 [2025-04-24 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982985', 'tblTempUsageDetail_20' ) start [2025-04-24 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982985', 'tblTempUsageDetail_20' ) end [2025-04-24 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982985', 'tblTempVendorCDR_20' ) start [2025-04-24 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982985', 'tblTempVendorCDR_20' ) end [2025-04-24 23:32:18] Production.INFO: ProcessCDR(1,14982985,1,1,2) [2025-04-24 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982985', 'tblTempUsageDetail_20' ) start [2025-04-24 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982985', 'tblTempUsageDetail_20' ) end [2025-04-24 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:32:21] Production.INFO: ==28382== Releasing lock... [2025-04-24 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:32:21] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:33:05 [end_date_ymd] => 2025-04-24 23:33:05 [RateCDR] => 1 ) [2025-04-24 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:33:05' and `end` < '2025-04-24 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:33:18] Production.INFO: count ==969 [2025-04-24 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:33:05 - End Time 2025-04-24 23:33:05 [2025-04-24 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982990', 'tblTempUsageDetail_20' ) start [2025-04-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982990', 'tblTempUsageDetail_20' ) end [2025-04-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982990', 'tblTempVendorCDR_20' ) start [2025-04-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982990', 'tblTempVendorCDR_20' ) end [2025-04-24 23:33:18] Production.INFO: ProcessCDR(1,14982990,1,1,2) [2025-04-24 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982990', 'tblTempUsageDetail_20' ) start [2025-04-24 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982990', 'tblTempUsageDetail_20' ) end [2025-04-24 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:33:22] Production.INFO: ==28455== Releasing lock... [2025-04-24 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:33:22] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:34:05 [end_date_ymd] => 2025-04-24 23:34:05 [RateCDR] => 1 ) [2025-04-24 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:34:05' and `end` < '2025-04-24 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:34:18] Production.INFO: count ==967 [2025-04-24 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:34:05 - End Time 2025-04-24 23:34:05 [2025-04-24 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982995', 'tblTempUsageDetail_20' ) start [2025-04-24 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14982995', 'tblTempUsageDetail_20' ) end [2025-04-24 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982995', 'tblTempVendorCDR_20' ) start [2025-04-24 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14982995', 'tblTempVendorCDR_20' ) end [2025-04-24 23:34:18] Production.INFO: ProcessCDR(1,14982995,1,1,2) [2025-04-24 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14982995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14982995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14982995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14982995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982995', 'tblTempUsageDetail_20' ) start [2025-04-24 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14982995', 'tblTempUsageDetail_20' ) end [2025-04-24 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:34:21] Production.INFO: ==28526== Releasing lock... [2025-04-24 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:35:05 [end_date_ymd] => 2025-04-24 23:35:05 [RateCDR] => 1 ) [2025-04-24 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:35:05' and `end` < '2025-04-24 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:35:18] Production.INFO: count ==959 [2025-04-24 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:35:05 - End Time 2025-04-24 23:35:05 [2025-04-24 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983000', 'tblTempUsageDetail_20' ) start [2025-04-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983000', 'tblTempUsageDetail_20' ) end [2025-04-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983000', 'tblTempVendorCDR_20' ) start [2025-04-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983000', 'tblTempVendorCDR_20' ) end [2025-04-24 23:35:18] Production.INFO: ProcessCDR(1,14983000,1,1,2) [2025-04-24 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983000', 'tblTempUsageDetail_20' ) start [2025-04-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983000', 'tblTempUsageDetail_20' ) end [2025-04-24 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:35:22] Production.INFO: ==28600== Releasing lock... [2025-04-24 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-24 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:36:05 [end_date_ymd] => 2025-04-24 23:36:05 [RateCDR] => 1 ) [2025-04-24 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:36:05' and `end` < '2025-04-24 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:36:18] Production.INFO: count ==958 [2025-04-24 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:36:05 - End Time 2025-04-24 23:36:05 [2025-04-24 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983005', 'tblTempUsageDetail_20' ) start [2025-04-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983005', 'tblTempUsageDetail_20' ) end [2025-04-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983005', 'tblTempVendorCDR_20' ) start [2025-04-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983005', 'tblTempVendorCDR_20' ) end [2025-04-24 23:36:18] Production.INFO: ProcessCDR(1,14983005,1,1,2) [2025-04-24 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983005', 'tblTempUsageDetail_20' ) start [2025-04-24 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983005', 'tblTempUsageDetail_20' ) end [2025-04-24 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:36:21] Production.INFO: ==28670== Releasing lock... [2025-04-24 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:37:05 [end_date_ymd] => 2025-04-24 23:37:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:37:05' and `end` < '2025-04-24 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-04-24 23:37:18] Production.INFO: count ==957 [2025-04-24 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:37:05 - End Time 2025-04-24 23:37:05 [2025-04-24 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983010', 'tblTempUsageDetail_20' ) start [2025-04-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983010', 'tblTempUsageDetail_20' ) end [2025-04-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983010', 'tblTempVendorCDR_20' ) start [2025-04-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983010', 'tblTempVendorCDR_20' ) end [2025-04-24 23:37:18] Production.INFO: ProcessCDR(1,14983010,1,1,2) [2025-04-24 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983010', 'tblTempUsageDetail_20' ) start [2025-04-24 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983010', 'tblTempUsageDetail_20' ) end [2025-04-24 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:37:22] Production.INFO: ==28755== Releasing lock... [2025-04-24 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:37:22] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:38:05 [end_date_ymd] => 2025-04-24 23:38:05 [RateCDR] => 1 ) [2025-04-24 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:38:05' and `end` < '2025-04-24 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:38:18] Production.INFO: count ==956 [2025-04-24 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:38:05 - End Time 2025-04-24 23:38:05 [2025-04-24 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983015', 'tblTempUsageDetail_20' ) start [2025-04-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983015', 'tblTempUsageDetail_20' ) end [2025-04-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983015', 'tblTempVendorCDR_20' ) start [2025-04-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983015', 'tblTempVendorCDR_20' ) end [2025-04-24 23:38:18] Production.INFO: ProcessCDR(1,14983015,1,1,2) [2025-04-24 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983015', 'tblTempUsageDetail_20' ) start [2025-04-24 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983015', 'tblTempUsageDetail_20' ) end [2025-04-24 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:38:21] Production.INFO: ==28825== Releasing lock... [2025-04-24 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:38:21] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:39:05 [end_date_ymd] => 2025-04-24 23:39:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:39:05' and `end` < '2025-04-24 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-04-24 23:39:18] Production.INFO: count ==952 [2025-04-24 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:39:05 - End Time 2025-04-24 23:39:05 [2025-04-24 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983020', 'tblTempUsageDetail_20' ) start [2025-04-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983020', 'tblTempUsageDetail_20' ) end [2025-04-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983020', 'tblTempVendorCDR_20' ) start [2025-04-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983020', 'tblTempVendorCDR_20' ) end [2025-04-24 23:39:18] Production.INFO: ProcessCDR(1,14983020,1,1,2) [2025-04-24 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983020', 'tblTempUsageDetail_20' ) start [2025-04-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983020', 'tblTempUsageDetail_20' ) end [2025-04-24 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:39:21] Production.INFO: ==28896== Releasing lock... [2025-04-24 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:39:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-24 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:40:06 [end_date_ymd] => 2025-04-24 23:40:06 [RateCDR] => 1 ) [2025-04-24 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:40:06' and `end` < '2025-04-24 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:40:18] Production.INFO: count ==949 [2025-04-24 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:40:06 - End Time 2025-04-24 23:40:06 [2025-04-24 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983026', 'tblTempUsageDetail_20' ) start [2025-04-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983026', 'tblTempUsageDetail_20' ) end [2025-04-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983026', 'tblTempVendorCDR_20' ) start [2025-04-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983026', 'tblTempVendorCDR_20' ) end [2025-04-24 23:40:19] Production.INFO: ProcessCDR(1,14983026,1,1,2) [2025-04-24 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983026', 'tblTempUsageDetail_20' ) start [2025-04-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983026', 'tblTempUsageDetail_20' ) end [2025-04-24 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:40:22] Production.INFO: ==28967== Releasing lock... [2025-04-24 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:41:05 [end_date_ymd] => 2025-04-24 23:41:05 [RateCDR] => 1 ) [2025-04-24 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:41:05' and `end` < '2025-04-24 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:41:18] Production.INFO: count ==939 [2025-04-24 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:41:05 - End Time 2025-04-24 23:41:05 [2025-04-24 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983031', 'tblTempUsageDetail_20' ) start [2025-04-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983031', 'tblTempUsageDetail_20' ) end [2025-04-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983031', 'tblTempVendorCDR_20' ) start [2025-04-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983031', 'tblTempVendorCDR_20' ) end [2025-04-24 23:41:18] Production.INFO: ProcessCDR(1,14983031,1,1,2) [2025-04-24 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983031', 'tblTempUsageDetail_20' ) start [2025-04-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983031', 'tblTempUsageDetail_20' ) end [2025-04-24 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:41:21] Production.INFO: ==29080== Releasing lock... [2025-04-24 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:42:05 [end_date_ymd] => 2025-04-24 23:42:05 [RateCDR] => 1 ) [2025-04-24 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:42:05' and `end` < '2025-04-24 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:42:18] Production.INFO: count ==937 [2025-04-24 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:42:05 - End Time 2025-04-24 23:42:05 [2025-04-24 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983036', 'tblTempUsageDetail_20' ) start [2025-04-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983036', 'tblTempUsageDetail_20' ) end [2025-04-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983036', 'tblTempVendorCDR_20' ) start [2025-04-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983036', 'tblTempVendorCDR_20' ) end [2025-04-24 23:42:18] Production.INFO: ProcessCDR(1,14983036,1,1,2) [2025-04-24 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983036', 'tblTempUsageDetail_20' ) start [2025-04-24 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983036', 'tblTempUsageDetail_20' ) end [2025-04-24 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:42:21] Production.INFO: ==29153== Releasing lock... [2025-04-24 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:42:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:43:05 [end_date_ymd] => 2025-04-24 23:43:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:43:05' and `end` < '2025-04-24 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-04-24 23:43:17] Production.INFO: count ==939 [2025-04-24 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:43:05 - End Time 2025-04-24 23:43:05 [2025-04-24 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983041', 'tblTempUsageDetail_20' ) start [2025-04-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983041', 'tblTempUsageDetail_20' ) end [2025-04-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983041', 'tblTempVendorCDR_20' ) start [2025-04-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983041', 'tblTempVendorCDR_20' ) end [2025-04-24 23:43:18] Production.INFO: ProcessCDR(1,14983041,1,1,2) [2025-04-24 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983041', 'tblTempUsageDetail_20' ) start [2025-04-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983041', 'tblTempUsageDetail_20' ) end [2025-04-24 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:43:21] Production.INFO: ==29229== Releasing lock... [2025-04-24 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:43:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:44:05 [end_date_ymd] => 2025-04-24 23:44:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:44:05' and `end` < '2025-04-24 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:44:18] Production.INFO: count ==941 [2025-04-24 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:44:05 - End Time 2025-04-24 23:44:05 [2025-04-24 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983046', 'tblTempUsageDetail_20' ) start [2025-04-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983046', 'tblTempUsageDetail_20' ) end [2025-04-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983046', 'tblTempVendorCDR_20' ) start [2025-04-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983046', 'tblTempVendorCDR_20' ) end [2025-04-24 23:44:18] Production.INFO: ProcessCDR(1,14983046,1,1,2) [2025-04-24 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983046', 'tblTempUsageDetail_20' ) start [2025-04-24 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983046', 'tblTempUsageDetail_20' ) end [2025-04-24 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:44:21] Production.INFO: ==29300== Releasing lock... [2025-04-24 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:44:21] Production.INFO: 35 MB #Memory Used# [2025-04-24 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:45:05 [end_date_ymd] => 2025-04-24 23:45:05 [RateCDR] => 1 ) [2025-04-24 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:45:05' and `end` < '2025-04-24 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:45:18] Production.INFO: count ==941 [2025-04-24 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:45:05 - End Time 2025-04-24 23:45:05 [2025-04-24 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983051', 'tblTempUsageDetail_20' ) start [2025-04-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983051', 'tblTempUsageDetail_20' ) end [2025-04-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983051', 'tblTempVendorCDR_20' ) start [2025-04-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983051', 'tblTempVendorCDR_20' ) end [2025-04-24 23:45:18] Production.INFO: ProcessCDR(1,14983051,1,1,2) [2025-04-24 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983051', 'tblTempUsageDetail_20' ) start [2025-04-24 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983051', 'tblTempUsageDetail_20' ) end [2025-04-24 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:45:23] Production.INFO: ==29370== Releasing lock... [2025-04-24 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:45:23] Production.INFO: 35 MB #Memory Used# [2025-04-24 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:46:05 [end_date_ymd] => 2025-04-24 23:46:05 [RateCDR] => 1 ) [2025-04-24 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:46:05' and `end` < '2025-04-24 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:46:18] Production.INFO: count ==938 [2025-04-24 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:46:05 - End Time 2025-04-24 23:46:05 [2025-04-24 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983056', 'tblTempUsageDetail_20' ) start [2025-04-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983056', 'tblTempUsageDetail_20' ) end [2025-04-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983056', 'tblTempVendorCDR_20' ) start [2025-04-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983056', 'tblTempVendorCDR_20' ) end [2025-04-24 23:46:18] Production.INFO: ProcessCDR(1,14983056,1,1,2) [2025-04-24 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983056', 'tblTempUsageDetail_20' ) start [2025-04-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983056', 'tblTempUsageDetail_20' ) end [2025-04-24 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:46:21] Production.INFO: ==29441== Releasing lock... [2025-04-24 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:46:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-24 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:47:05 [end_date_ymd] => 2025-04-24 23:47:05 [RateCDR] => 1 ) [2025-04-24 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:47:05' and `end` < '2025-04-24 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:47:17] Production.INFO: count ==937 [2025-04-24 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:47:05 - End Time 2025-04-24 23:47:05 [2025-04-24 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983061', 'tblTempUsageDetail_20' ) start [2025-04-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983061', 'tblTempUsageDetail_20' ) end [2025-04-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983061', 'tblTempVendorCDR_20' ) start [2025-04-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983061', 'tblTempVendorCDR_20' ) end [2025-04-24 23:47:18] Production.INFO: ProcessCDR(1,14983061,1,1,2) [2025-04-24 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983061', 'tblTempUsageDetail_20' ) start [2025-04-24 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983061', 'tblTempUsageDetail_20' ) end [2025-04-24 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:47:21] Production.INFO: ==29515== Releasing lock... [2025-04-24 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-24 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:48:05 [end_date_ymd] => 2025-04-24 23:48:05 [RateCDR] => 1 ) [2025-04-24 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:48:05' and `end` < '2025-04-24 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:48:17] Production.INFO: count ==935 [2025-04-24 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:48:05 - End Time 2025-04-24 23:48:05 [2025-04-24 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983066', 'tblTempUsageDetail_20' ) start [2025-04-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983066', 'tblTempUsageDetail_20' ) end [2025-04-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983066', 'tblTempVendorCDR_20' ) start [2025-04-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983066', 'tblTempVendorCDR_20' ) end [2025-04-24 23:48:18] Production.INFO: ProcessCDR(1,14983066,1,1,2) [2025-04-24 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983066', 'tblTempUsageDetail_20' ) start [2025-04-24 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983066', 'tblTempUsageDetail_20' ) end [2025-04-24 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:48:21] Production.INFO: ==29588== Releasing lock... [2025-04-24 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:48:21] Production.INFO: 36 MB #Memory Used# [2025-04-24 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:49:06 [end_date_ymd] => 2025-04-24 23:49:06 [RateCDR] => 1 ) [2025-04-24 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:49:06' and `end` < '2025-04-24 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:49:18] Production.INFO: count ==932 [2025-04-24 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:49:06 - End Time 2025-04-24 23:49:06 [2025-04-24 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983071', 'tblTempUsageDetail_20' ) start [2025-04-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983071', 'tblTempUsageDetail_20' ) end [2025-04-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983071', 'tblTempVendorCDR_20' ) start [2025-04-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983071', 'tblTempVendorCDR_20' ) end [2025-04-24 23:49:19] Production.INFO: ProcessCDR(1,14983071,1,1,2) [2025-04-24 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983071', 'tblTempUsageDetail_20' ) start [2025-04-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983071', 'tblTempUsageDetail_20' ) end [2025-04-24 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:49:22] Production.INFO: ==29662== Releasing lock... [2025-04-24 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:49:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-24 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:50:06 [end_date_ymd] => 2025-04-24 23:50:06 [RateCDR] => 1 ) [2025-04-24 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:50:06' and `end` < '2025-04-24 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:50:19] Production.INFO: count ==928 [2025-04-24 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:50:06 - End Time 2025-04-24 23:50:06 [2025-04-24 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983077', 'tblTempUsageDetail_20' ) start [2025-04-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983077', 'tblTempUsageDetail_20' ) end [2025-04-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983077', 'tblTempVendorCDR_20' ) start [2025-04-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983077', 'tblTempVendorCDR_20' ) end [2025-04-24 23:50:19] Production.INFO: ProcessCDR(1,14983077,1,1,2) [2025-04-24 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983077', 'tblTempUsageDetail_20' ) start [2025-04-24 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983077', 'tblTempUsageDetail_20' ) end [2025-04-24 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:50:24] Production.INFO: ==29738== Releasing lock... [2025-04-24 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:50:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:51:05 [end_date_ymd] => 2025-04-24 23:51:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:51:05' and `end` < '2025-04-24 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-04-24 23:51:17] Production.INFO: count ==868 [2025-04-24 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:51:05 - End Time 2025-04-24 23:51:05 [2025-04-24 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983082', 'tblTempUsageDetail_20' ) start [2025-04-24 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983082', 'tblTempUsageDetail_20' ) end [2025-04-24 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983082', 'tblTempVendorCDR_20' ) start [2025-04-24 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983082', 'tblTempVendorCDR_20' ) end [2025-04-24 23:51:18] Production.INFO: ProcessCDR(1,14983082,1,1,2) [2025-04-24 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983082', 'tblTempUsageDetail_20' ) start [2025-04-24 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983082', 'tblTempUsageDetail_20' ) end [2025-04-24 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:51:21] Production.INFO: ==29811== Releasing lock... [2025-04-24 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:51:21] Production.INFO: 35 MB #Memory Used# [2025-04-24 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:52:05 [end_date_ymd] => 2025-04-24 23:52:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:52:05' and `end` < '2025-04-24 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-04-24 23:52:17] Production.INFO: count ==866 [2025-04-24 23:52:17] Production.ERROR: pbx CDR StartTime 2025-04-24 20:52:05 - End Time 2025-04-24 23:52:05 [2025-04-24 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983087', 'tblTempUsageDetail_20' ) start [2025-04-24 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983087', 'tblTempUsageDetail_20' ) end [2025-04-24 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983087', 'tblTempVendorCDR_20' ) start [2025-04-24 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983087', 'tblTempVendorCDR_20' ) end [2025-04-24 23:52:17] Production.INFO: ProcessCDR(1,14983087,1,1,2) [2025-04-24 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983087', 'tblTempUsageDetail_20' ) start [2025-04-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983087', 'tblTempUsageDetail_20' ) end [2025-04-24 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:52:21] Production.INFO: ==29884== Releasing lock... [2025-04-24 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-24 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:53:06 [end_date_ymd] => 2025-04-24 23:53:06 [RateCDR] => 1 ) [2025-04-24 23:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:53:06' and `end` < '2025-04-24 23:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:53:19] Production.INFO: count ==862 [2025-04-24 23:53:19] Production.ERROR: pbx CDR StartTime 2025-04-24 20:53:06 - End Time 2025-04-24 23:53:06 [2025-04-24 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983092', 'tblTempUsageDetail_20' ) start [2025-04-24 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983092', 'tblTempUsageDetail_20' ) end [2025-04-24 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983092', 'tblTempVendorCDR_20' ) start [2025-04-24 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983092', 'tblTempVendorCDR_20' ) end [2025-04-24 23:53:19] Production.INFO: ProcessCDR(1,14983092,1,1,2) [2025-04-24 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983092', 'tblTempUsageDetail_20' ) start [2025-04-24 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983092', 'tblTempUsageDetail_20' ) end [2025-04-24 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:53:23] Production.INFO: ==29955== Releasing lock... [2025-04-24 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:53:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:54:05 [end_date_ymd] => 2025-04-24 23:54:05 [RateCDR] => 1 ) [2025-04-24 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:54:05' and `end` < '2025-04-24 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:54:18] Production.INFO: count ==862 [2025-04-24 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:54:05 - End Time 2025-04-24 23:54:05 [2025-04-24 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983097', 'tblTempUsageDetail_20' ) start [2025-04-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983097', 'tblTempUsageDetail_20' ) end [2025-04-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983097', 'tblTempVendorCDR_20' ) start [2025-04-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983097', 'tblTempVendorCDR_20' ) end [2025-04-24 23:54:18] Production.INFO: ProcessCDR(1,14983097,1,1,2) [2025-04-24 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983097', 'tblTempUsageDetail_20' ) start [2025-04-24 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983097', 'tblTempUsageDetail_20' ) end [2025-04-24 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:54:23] Production.INFO: ==30025== Releasing lock... [2025-04-24 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:54:23] Production.INFO: 35 MB #Memory Used# [2025-04-24 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:55:05 [end_date_ymd] => 2025-04-24 23:55:05 [RateCDR] => 1 ) [2025-04-24 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:55:05' and `end` < '2025-04-24 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-04-24 23:55:18] Production.INFO: count ==859 [2025-04-24 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:55:05 - End Time 2025-04-24 23:55:05 [2025-04-24 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983102', 'tblTempUsageDetail_20' ) start [2025-04-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983102', 'tblTempUsageDetail_20' ) end [2025-04-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983102', 'tblTempVendorCDR_20' ) start [2025-04-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983102', 'tblTempVendorCDR_20' ) end [2025-04-24 23:55:18] Production.INFO: ProcessCDR(1,14983102,1,1,2) [2025-04-24 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983102', 'tblTempUsageDetail_20' ) start [2025-04-24 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983102', 'tblTempUsageDetail_20' ) end [2025-04-24 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:55:21] Production.INFO: ==30096== Releasing lock... [2025-04-24 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-24 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:56:05 [end_date_ymd] => 2025-04-24 23:56:05 [RateCDR] => 1 ) [2025-04-24 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:56:05' and `end` < '2025-04-24 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:56:17] Production.INFO: count ==857 [2025-04-24 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:56:05 - End Time 2025-04-24 23:56:05 [2025-04-24 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983107', 'tblTempUsageDetail_20' ) start [2025-04-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983107', 'tblTempUsageDetail_20' ) end [2025-04-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983107', 'tblTempVendorCDR_20' ) start [2025-04-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983107', 'tblTempVendorCDR_20' ) end [2025-04-24 23:56:18] Production.INFO: ProcessCDR(1,14983107,1,1,2) [2025-04-24 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983107', 'tblTempUsageDetail_20' ) start [2025-04-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983107', 'tblTempUsageDetail_20' ) end [2025-04-24 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:56:21] Production.INFO: ==30209== Releasing lock... [2025-04-24 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-24 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:57:05 [end_date_ymd] => 2025-04-24 23:57:05 [RateCDR] => 1 ) [2025-04-24 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-04-24 20:57:05' and `end` < '2025-04-24 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-04-24 23:57:18] Production.INFO: count ==856 [2025-04-24 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:57:05 - End Time 2025-04-24 23:57:05 [2025-04-24 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983112', 'tblTempUsageDetail_20' ) start [2025-04-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983112', 'tblTempUsageDetail_20' ) end [2025-04-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983112', 'tblTempVendorCDR_20' ) start [2025-04-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983112', 'tblTempVendorCDR_20' ) end [2025-04-24 23:57:18] Production.INFO: ProcessCDR(1,14983112,1,1,2) [2025-04-24 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983112', 'tblTempUsageDetail_20' ) start [2025-04-24 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983112', 'tblTempUsageDetail_20' ) end [2025-04-24 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:57:23] Production.INFO: ==30282== Releasing lock... [2025-04-24 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:57:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-24 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:58:04 [end_date_ymd] => 2025-04-24 23:58:04 [RateCDR] => 1 ) [2025-04-24 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:58:04' and `end` < '2025-04-24 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:58:17] Production.INFO: count ==854 [2025-04-24 23:58:17] Production.ERROR: pbx CDR StartTime 2025-04-24 20:58:04 - End Time 2025-04-24 23:58:04 [2025-04-24 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983117', 'tblTempUsageDetail_20' ) start [2025-04-24 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983117', 'tblTempUsageDetail_20' ) end [2025-04-24 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983117', 'tblTempVendorCDR_20' ) start [2025-04-24 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983117', 'tblTempVendorCDR_20' ) end [2025-04-24 23:58:17] Production.INFO: ProcessCDR(1,14983117,1,1,2) [2025-04-24 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983117', 'tblTempUsageDetail_20' ) start [2025-04-24 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983117', 'tblTempUsageDetail_20' ) end [2025-04-24 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:58:22] Production.INFO: ==30352== Releasing lock... [2025-04-24 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:58:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-24 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 20:59:05 [end_date_ymd] => 2025-04-24 23:59:05 [RateCDR] => 1 ) [2025-04-24 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 20:59:05' and `end` < '2025-04-24 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-24 23:59:18] Production.INFO: count ==854 [2025-04-24 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 20:59:05 - End Time 2025-04-24 23:59:05 [2025-04-24 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983122', 'tblTempUsageDetail_20' ) start [2025-04-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983122', 'tblTempUsageDetail_20' ) end [2025-04-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983122', 'tblTempVendorCDR_20' ) start [2025-04-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983122', 'tblTempVendorCDR_20' ) end [2025-04-24 23:59:18] Production.INFO: ProcessCDR(1,14983122,1,1,2) [2025-04-24 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-24 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983122', 'tblTempUsageDetail_20' ) start [2025-04-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983122', 'tblTempUsageDetail_20' ) end [2025-04-24 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-24 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-24 23:59:21] Production.INFO: ==30423== Releasing lock... [2025-04-24 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-24 23:59:21] Production.INFO: 34.75 MB #Memory Used#