From d8c2d2e79098ec7e0936b50f215eb41de00bc122 Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 10 Dec 2011 00:58:15 +0000 Subject: option to keep track of unrateable CDRs, #15502 --- httemplate/search/cdr.html | 14 ++++++++++---- httemplate/search/report_cdr.html | 7 ++++--- httemplate/view/svc_phone.cgi | 1 + 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 1e3c57cae..5e917db2e 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -80,15 +80,21 @@ my @qsearch = @search; # freesidestatus ### -if ( $cgi->param('freesidestatus') eq 'NULL' ) { +my $status = $cgi->param('freesidestatus'); +if ( $status eq 'NULL' ) { $title = "Unprocessed $title"; $hashref->{'freesidestatus'} = ''; # Record.pm will take care of it push @search, "( freesidestatus IS NULL OR freesidestatus = '' )"; -} elsif ( $cgi->param('freesidestatus') =~ /^([\w ]+)$/ ) { - - $title = "Processed $title"; +} elsif ( $status =~ /^([\w ]+)$/ ) { + + if ( $status eq 'done' ) { + $title = "Processed $title"; + } + elsif ( $status eq 'failed' ) { + $title = "Skipped $title"; + } $hashref->{'freesidestatus'} = $1; push @search, "freesidestatus = '$1'"; diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html index b9f883777..f305ed913 100644 --- a/httemplate/search/report_cdr.html +++ b/httemplate/search/report_cdr.html @@ -22,9 +22,10 @@ Status: diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi index 2943c5857..323be63dc 100644 --- a/httemplate/view/svc_phone.cgi +++ b/httemplate/view/svc_phone.cgi @@ -68,6 +68,7 @@ my $html_foot = sub { tie my %what, 'Tie::IxHash', 'pending' => 'NULL', 'billed' => 'done', + 'skipped' => 'failed', ; my $number = $svc_phone->phonenum; -- cgit v1.2.1