Show the call type graph for all numbers - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 772b9eccbebf473d60ffe78cd613ff0d2daacf37
(DIR) parent 5a5e904aa64833ce0396d91497a3d21971f71854
(HTM) Author: HD Moore <hd_moore@rapid7.com>
Date: Thu, 5 Mar 2009 14:34:12 +0000
Show the call type graph for all numbers
Diffstat:
M web/app/controllers/analyze_contro… | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/web/app/controllers/analyze_controller.rb b/web/app/controllers/analyze_controller.rb
@@ -19,6 +19,11 @@ class AnalyzeController < ApplicationController
:per_page => 10,
:conditions => [ 'completed = ? and processed = ? and busy = ?', true, true, false ]
)
+
+ @results_all = DialResult.find_all_by_dial_job_id(
+ @job_id,
+ :conditions => [ 'completed = ? and processed = ? and busy = ?', true, true, false ]
+ )
@g1 = Ezgraphix::Graphic.new(:c_type => 'col3d', :div_name => 'calls_pie1')
@g1.render_options(:caption => 'Detected Lines by Type', :y_name => 'Lines')
@@ -29,7 +34,7 @@ class AnalyzeController < ApplicationController
res_types = {}
res_rings = {}
- @results.each do |r|
+ @results_all.each do |r|
res_rings[ r.ringtime ] ||= 0
res_rings[ r.ringtime ] += 1
res_types[ r.line_type.capitalize.to_sym ] ||= 0