summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2011-08-10 05:39:38 +0000
committerivan <ivan>2011-08-10 05:39:38 +0000
commit39222a44aa136114b0f88c549cc9decafc79e780 (patch)
treeb93d04838db0ea62cb74c268cf22a6578e35873d /httemplate
parent424ae31847c4fd44e6ed55ec275c8e668c7d2b51 (diff)
more forgiving DID selector with odd things in phone_avail.name, RT#13921
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/misc/phonenums.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/phonenums.cgi b/httemplate/misc/phonenums.cgi
index 784a19016..fd5de2ae6 100644
--- a/httemplate/misc/phonenums.cgi
+++ b/httemplate/misc/phonenums.cgi
@@ -22,7 +22,8 @@ if ( $exchangestring ) {
if ( $exchangestring eq 'tollfree' ) {
$opts{'tollfree'} = 1;
}
- elsif ( $exchangestring =~ /^([\w\s]+), ([A-Z][A-Z])$/ ) {
+ #elsif ( $exchangestring =~ /^([\w\s\:\,\(\)\-]+), ([A-Z][A-Z])$/ ) {
+ elsif ( $exchangestring =~ /^(.+), ([A-Z][A-Z])$/ ) {
$opts{'ratecenter'} = $1;
$opts{'state'} = $2;
}