[freeside-commits] freeside/httemplate/misc phonenums.cgi,1.2,1.3
Erik Levinson
levinse at wavetail.420.am
Tue Jan 11 07:49:14 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv19028/httemplate/misc
Modified Files:
phonenums.cgi
Log Message:
Vitelity DID selection improvements, RT4868
Index: phonenums.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/phonenums.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- phonenums.cgi 10 Jan 2011 19:44:43 -0000 1.2
+++ phonenums.cgi 11 Jan 2011 15:49:12 -0000 1.3
@@ -18,6 +18,10 @@
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";
More information about the freeside-commits
mailing list