projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
default service location is cust_main ship_ address when present! RT#4499
[freeside.git]
/
httemplate
/
view
/
svc_phone.cgi
diff --git
a/httemplate/view/svc_phone.cgi
b/httemplate/view/svc_phone.cgi
index
6f39860
..
f604daa
100644
(file)
--- a/
httemplate/view/svc_phone.cgi
+++ b/
httemplate/view/svc_phone.cgi
@@
-1,10
+1,18
@@
<% include('elements/svc_Common.html',
'table' => 'svc_phone',
<% include('elements/svc_Common.html',
'table' => 'svc_phone',
- 'fields' => [qw( countrycode phonenum pin )],
+ 'fields' => [qw(
+ countrycode
+ phonenum
+ sip_password
+ pin
+ phone_name
+ )],
'labels' => {
'labels' => {
- 'countrycode' => 'Country code',
- 'phonenum' => 'Phone number',
- 'pin' => 'PIN',
+ 'countrycode' => 'Country code',
+ 'phonenum' => 'Phone number',
+ 'sip_password' => 'SIP password',
+ 'pin' => 'PIN',
+ 'phone_name' => 'Name',
},
'html_foot' => $html_foot,
)
},
'html_foot' => $html_foot,
)
@@
-23,17
+31,23
@@
my $html_foot = sub {
#XXX handle toll free too
my $number = $svc_phone->phonenum;
#XXX handle toll free too
my $number = $svc_phone->phonenum;
+ $number = $svc_phone->countrycode. $number
+ unless $svc_phone->countrycode eq '1';
#my @links = map {
# qq(<A HREF="${p}search/cdr.html?src=$number;freesidestatus=$what{$_}">).
# "View $_ CDRs</A>";
#} keys(%what);
my @links = map {
#my @links = map {
# qq(<A HREF="${p}search/cdr.html?src=$number;freesidestatus=$what{$_}">).
# "View $_ CDRs</A>";
#} keys(%what);
my @links = map {
- qq(<A HREF="${p}search/cdr.html?charged_party=$number;freesidestatus=$what{$_}">).
+ qq(<A HREF="${p}search/cdr.html?c
drbatch=__ALL__;c
harged_party=$number;freesidestatus=$what{$_}">).
"View $_ CDRs</A>";
} keys(%what);
"View $_ CDRs</A>";
} keys(%what);
- join(' | ', @links). '<BR>';
+ my @ilinks = ( qq(<A HREF="${p}search/cdr.html?dst=$number">).
+ 'View incoming CDRs</A>' );
+
+ join(' | ', @links ). '<BR>'.
+ join(' | ', @ilinks). '<BR>';
};
};