MT#11667 Some features to calllist

- The option to show more entries per site.
- The option to show only outgoing or only incoming calls
  (use seach with words outcoming or incoming accordingly)
- Show the subscriber phone number instead of the sip-username
  Not instead, but near
- Show the Billing Fee Description of the outgoing calls

Change-Id: I85205afb8735f4a5dec0a95f5d6b13f1890579d4
changes/67/1767/6
Irina Peshinskaya 10 years ago
parent 03aaaa2362
commit 1538654760

@ -2044,8 +2044,10 @@ sub master :Chained('base') :PathPart('details') :CaptureArgs(0) {
my $call_cols = [
{ name => "id", title => $c->loc('#') },
{ name => "direction", search => 1, literal_sql => 'if(source_user_id = "'.$c->stash->{subscriber}->uuid.'", "outcoming", "incoming")' },
{ name => "source_user", search => 1, title => $c->loc('Caller') },
{ name => "destination_user", search => 1, title => $c->loc('Callee') },
{ name => "source_customer_billing_zones_history.detail", search => 1, title => $c->loc('Billing zone') },
{ name => "call_status", search => 1, title => $c->loc('Status') },
{ name => "start_time", search_from_epoch => 1, search_to_epoch => 1, title => $c->loc('Start Time') },
{ name => "duration", search => 1, title => $c->loc('Duration'), show_total => 'sum' },

@ -1,4 +1,4 @@
[% site_config.title = c.loc('Call List for [_1]@[_2]', subscriber.username, subscriber.domain.domain) -%]
[% site_config.title = c.loc('Call List for [_1]@[_2] ([_3] [_4] [_5])', subscriber.username, subscriber.domain.domain, subscriber.primary_number.cc, subscriber.primary_number.ac, subscriber.primary_number.sn) -%]
<div class="row">
<span class="pull-left" style="margin:0 5px 0 5px;">
@ -12,6 +12,7 @@
[%
helper.name = 'Calls';
helper.dt_columns = calls_dt_columns;
helper.length_change = 1;
helper.column_sort = 'start_time';
helper.form_object = form;
helper.ajax_uri = c.uri_for_action('/subscriber/ajax_calls', [c.req.captures.0]);

Loading…
Cancel
Save