1 <% include('elements/svc_Common.html',
2 'table' => 'svc_phone',
11 'countrycode' => 'Country code',
12 'phonenum' => 'Phone number',
13 'sip_password' => 'SIP password',
15 'phone_name' => 'Name',
17 'html_foot' => $html_foot,
23 my $svc_phone = shift;
25 tie my %what, 'Tie::IxHash',
30 #XXX src & charged party (& default prefix) as per voip_cdr.pm
31 #XXX handle toll free too
33 my $number = $svc_phone->phonenum;
34 $number = $svc_phone->countrycode. $number
35 unless $svc_phone->countrycode eq '1';
38 # qq(<A HREF="${p}search/cdr.html?src=$number;freesidestatus=$what{$_}">).
42 qq(<A HREF="${p}search/cdr.html?cdrbatch=__ALL__;charged_party=$number;freesidestatus=$what{$_}">).
46 my @ilinks = ( qq(<A HREF="${p}search/cdr.html?dst=$number">).
47 'View incoming CDRs</A>' );
49 join(' | ', @links ). '<BR>'.
50 join(' | ', @ilinks). '<BR>';