[freeside-commits] freeside/FS/FS/part_export vitelity.pm,1.5,1.6
Erik Levinson
levinse at wavetail.420.am
Mon Jan 10 18:03:46 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv26210/FS/FS/part_export
Modified Files:
vitelity.pm
Log Message:
Vitelity API improvements for toll-free and vfax, RT11009
Index: vitelity.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/vitelity.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- vitelity.pm 10 Jan 2011 19:44:43 -0000 1.5
+++ vitelity.pm 11 Jan 2011 02:03:44 -0000 1.6
@@ -15,6 +15,11 @@
'routesip' => { label=>'routesip (optional sub-account)' },
'type' => { label=>'type (optional DID type to order)' },
'fax' => { label=>'vfax service', type=>'checkbox' },
+ 'restrict_selection' => { type=>'select',
+ label=>'Restrict DID Selection',
+ options=>[ '', 'tollfree', 'non-tollfree' ],
+ }
+
;
%info = (
@@ -247,15 +252,13 @@
$vparams{'type'} = $self->option('type')
if defined $self->option('type');
-
$command = 'getlocaldid';
$success = 'success';
# this is OK as Vitelity for now is US/CA only; it's not a hack
- $command = 'gettollfree' if $vparams{'did'} =~ /^800|^88[8765]/;
+ $command = 'gettollfree' if $vparams{'did'} =~ /^800|^888|^877|^866|^855/;
if($self->option('fax')) {
- # supposedly should work for toll-free fax too
$command = 'getdid';
$success = 'ok';
}
More information about the freeside-commits
mailing list