diff options
author | mark <mark> | 2011-12-10 01:03:14 +0000 |
---|---|---|
committer | mark <mark> | 2011-12-10 01:03:14 +0000 |
commit | ecb7665dc7dadd32cdfa5a1b98be57f0850c234d (patch) | |
tree | 668adca2223f4363f5cb0ffe1a055e7f24161528 /httemplate | |
parent | 573139dbd6c37808697bfa72a3a468bb0980d4dd (diff) |
option to keep track of unrateable CDRs, #15502
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/menu.html | 1 | ||||
-rw-r--r-- | httemplate/search/cdr.html | 14 | ||||
-rw-r--r-- | httemplate/search/report_cdr.html | 7 | ||||
-rw-r--r-- | httemplate/view/svc_phone.cgi | 1 |
4 files changed, 16 insertions, 7 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index df45e058d..8e6937303 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -252,6 +252,7 @@ tie my %report_inventory, 'Tie::IxHash', tie my %report_rating, 'Tie::IxHash', 'RADIUS sessions' => [ $fsurl.'search/sqlradius.html', '' ], 'Call Detail Records (CDRs)' => [ $fsurl.'search/report_cdr.html', '' ], + 'Unrateable CDRs' => [ $fsurl.'search/cdr.html?freesidestatus=failed' ], 'Time worked' => [ $fsurl.'search/report_rt_transaction.html', '' ], 'Time worked summary' => [ $fsurl.'search/report_rt_ticket.html', '' ], ; 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 @@ <TD ALIGN="right">Status: </TD> <TD> <SELECT NAME="freesidestatus"> - <OPTION VALUE="">(all) - <OPTION VALUE="NULL">unprocessed - <OPTION VALUE="done">processed + <OPTION VALUE="">(all)</OPTION> + <OPTION VALUE="NULL">unprocessed</OPTION> + <OPTION VALUE="done">processed</OPTION> + <OPTION VALUE="failed">skipped</OPTION> </SELECT> </TD> </TR> diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi index ffb6fcc4a..40c8d850b 100644 --- a/httemplate/view/svc_phone.cgi +++ b/httemplate/view/svc_phone.cgi @@ -127,6 +127,7 @@ my $html_foot = sub { tie my %what, 'Tie::IxHash', 'pending' => 'NULL', 'billed' => 'done', + 'skipped' => 'failed', ; my $number = $svc_phone->phonenum; |