diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/misc/phonenums.cgi | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/misc/phonenums.cgi')
-rw-r--r-- | httemplate/misc/phonenums.cgi | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/httemplate/misc/phonenums.cgi b/httemplate/misc/phonenums.cgi deleted file mode 100644 index 2ed0f617d..000000000 --- a/httemplate/misc/phonenums.cgi +++ /dev/null @@ -1,29 +0,0 @@ -%# [ <% join(', ', map { qq("$_") } @exchanges) %> ] -<% objToJson(\@exchanges) %> -<%init> - -my( $exchangestring, $svcpart ) = $cgi->param('arg'); - -$exchangestring =~ /\((\d{3})-(\d{3})-XXXX\)\s*$/i - or die "unparsable exchange: $exchangestring"; -my( $areacode, $exchange ) = ( $1, $2 ); -my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); -die "unknown svcpart $svcpart" unless $part_svc; - -my @exports = $part_svc->part_export_did; -if ( scalar(@exports) > 1 ) { - die "more than one DID-providing export attached to svcpart $svcpart"; -} elsif ( ! @exports ) { - die "no DID providing export attached to svcpart $svcpart"; -} -my $export = $exports[0]; - -my $something = $export->get_dids('areacode'=>$areacode, - 'exchange'=>$exchange, - ); - -#warn Dumper($something); - -my @exchanges = @{ $something }; - -</%init> |