diff options
author | mark <mark> | 2011-12-10 00:58:15 +0000 |
---|---|---|
committer | mark <mark> | 2011-12-10 00:58:15 +0000 |
commit | d8c2d2e79098ec7e0936b50f215eb41de00bc122 (patch) | |
tree | 6da3ea3c3d87c8bc7e9e07d71c43352e079a37fa /httemplate/search/cdr.html | |
parent | e6f7e02b32ebaa471230819d36a88f88b98bed6a (diff) |
option to keep track of unrateable CDRs, #15502
Diffstat (limited to 'httemplate/search/cdr.html')
-rw-r--r-- | httemplate/search/cdr.html | 14 |
1 files changed, 10 insertions, 4 deletions
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'"; |