diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-12-14 19:32:46 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-12-14 19:32:46 -0800 |
| commit | 5555faae43590400dbb726e8d89cfcc5d70bba2b (patch) | |
| tree | 1b1f7ae002bfc3d8ddc85d0bb7cd64a7dcd7b59d /httemplate/misc/phonenums.cgi | |
| parent | 8350bd8c54302669ded9e20285b53a1cca996473 (diff) | |
DID selection for fibernetics, RT#19883
Diffstat (limited to 'httemplate/misc/phonenums.cgi')
| -rw-r--r-- | httemplate/misc/phonenums.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/misc/phonenums.cgi b/httemplate/misc/phonenums.cgi index fd5de2ae6..5084628eb 100644 --- a/httemplate/misc/phonenums.cgi +++ b/httemplate/misc/phonenums.cgi @@ -21,13 +21,13 @@ if ( $exchangestring ) { my %opts = (); if ( $exchangestring eq 'tollfree' ) { $opts{'tollfree'} = 1; - } - #elsif ( $exchangestring =~ /^([\w\s\:\,\(\)\-]+), ([A-Z][A-Z])$/ ) { - elsif ( $exchangestring =~ /^(.+), ([A-Z][A-Z])$/ ) { + } elsif ( $exchangestring =~ /^_REGION (.*)$/ ) { + $opts{'region'} = $1; + #} elsif ( $exchangestring =~ /^([\w\s\:\,\(\)\-]+), ([A-Z][A-Z])$/ ) { + } elsif ( $exchangestring =~ /^(.+), ([A-Z][A-Z])$/ ) { $opts{'ratecenter'} = $1; $opts{'state'} = $2; - } - else { + } else { $exchangestring =~ /\((\d{3})-(\d{3})-XXXX\)\s*$/i or die "unparsable exchange: $exchangestring"; my( $areacode, $exchange ) = ( $1, $2 ); |
