+ ###
+ # Piece 1.5 - feature creation
+ ###
+ 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' => $param,
+ 'hour_match' => '*',
+ 'time_frame' => '*',
+ 'activation' => 'now',
+ );
+
+ if ( $nsf->responseCode !~ /^2/ ) {
+ return $nsf->responseCode. ' '.
+ join(', ', $self->ns_parse_response( $ns->responseContent ) );
+ }
+
+ }
+
+ ###
+ # Piece 2 - sip device creation
+ ###