[freeside-commits] freeside/httemplate/misc phonenums.cgi, 1.1.8.1, 1.1.8.2
Erik Levinson
levinse at wavetail.420.am
Tue Jan 11 07:49:15 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv19033/httemplate/misc
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.1.8.1
retrieving revision 1.1.8.2
diff -u -w -d -r1.1.8.1 -r1.1.8.2
--- phonenums.cgi 10 Jan 2011 19:46:13 -0000 1.1.8.1
+++ phonenums.cgi 11 Jan 2011 15:49:13 -0000 1.1.8.2
@@ -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