[freeside-commits] branch master updated. bc46f7537fffb7019185d12ee4302d1f5b6da901

Ivan ivan at 420.am
Wed May 2 16:57:28 PDT 2012


The branch, master has been updated
       via  bc46f7537fffb7019185d12ee4302d1f5b6da901 (commit)
      from  3bbe0f73c2afbbe182fe8a0a6490ba1700152742 (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 bc46f7537fffb7019185d12ee4302d1f5b6da901
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed May 2 16:57:27 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