[freeside-commits] branch FREESIDE_2_3_BRANCH updated. de1a54d9bc43092548662a8c3eb6b03e9d0c608d
Ivan
ivan at 420.am
Wed May 2 16:57:29 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via de1a54d9bc43092548662a8c3eb6b03e9d0c608d (commit)
from 7bef15b442c2dbc34b7e30ee4a8f9fe753bd456d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit de1a54d9bc43092548662a8c3eb6b03e9d0c608d
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed May 2 16:57:28 2012 -0700
set required parameters for netsapiens DND and simul ring features, RT#17319
diff --git a/FS/FS/part_export/netsapiens.pm b/FS/FS/part_export/netsapiens.pm
index aa89d47..6e2ee8a 100644
--- a/FS/FS/part_export/netsapiens.pm
+++ b/FS/FS/part_export/netsapiens.pm
@@ -43,6 +43,11 @@ my %features = (
'sim' => 'Simultaneous Ring',
);
+my %feature_param = (
+ 'dnd' => 'n/a',
+ 'sim' => '$phonenum',
+);
+
tie my %options, 'Tie::IxHash',
'login' => { label=>'NetSapiens tac2 User API username' },
'password' => { label=>'NetSapiens tac2 User API password' },
@@ -262,11 +267,14 @@ sub ns_create_or_update {
###
foreach $feature (split /\s+/, $self->option('features') ) {
+ my $param= exists($feature_param{$feature}) ? $feature_param{$feature} : '';
+ $param = $phonenum if $param eq '$phonenum';
+
my $nsf = $self->ns_command( 'PUT', $self->ns_feature($svc_phone, $feature),
'control' => 'd', #User Control, disable
'expires' => 'never',
#'ts' => '', #?
- #'parameters' => '',
+ 'parameters' => $param,
'hour_match' => '*',
'time_frame' => '*',
'activation' => 'now',
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_export/netsapiens.pm | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list