summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-11 15:49:12 +0000
committerlevinse <levinse>2011-01-11 15:49:12 +0000
commit66102a014ef61f1873c2bb6fc2374cab7793134c (patch)
tree228781550069177c0ecc6afe3844c2794a9e5b18 /httemplate/misc
parent7934ac2de21debc15ce89405ed0f4c061c4f0236 (diff)
Vitelity DID selection improvements, RT4868
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/phonenums.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/misc/phonenums.cgi b/httemplate/misc/phonenums.cgi
index b86d03f5d..108a5f7cd 100644
--- a/httemplate/misc/phonenums.cgi
+++ b/httemplate/misc/phonenums.cgi
@@ -13,11 +13,15 @@ if ( scalar(@exports) > 1 ) {
die "no DID providing export attached to svcpart $svcpart";
}
my $export = $exports[0];
-
+
my %opts = ();
if ( $exchangestring eq 'tollfree' ) {
$opts{'tollfree'} = 1;
}
+elsif ( $exchangestring =~ /^([\w\s]+), ([A-Z][A-Z])$/ ) {
+ $opts{'ratecenter'} = $1;
+ $opts{'state'} = $2;
+}
else {
$exchangestring =~ /\((\d{3})-(\d{3})-XXXX\)\s*$/i
or die "unparsable exchange: $exchangestring";