correct links to non-US CDRs from svc_phone view
authorivan <ivan>
Fri, 24 Oct 2008 23:21:29 +0000 (23:21 +0000)
committerivan <ivan>
Fri, 24 Oct 2008 23:21:29 +0000 (23:21 +0000)
httemplate/view/svc_phone.cgi

index 8c0c9e0..f604daa 100644 (file)
@@ -31,6 +31,8 @@ my $html_foot = sub {
   #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{$_}">).