[freeside-commits] freeside/FS/FS/part_export netsapiens.pm, 1.13, 1.14
Ivan,,,
ivan at wavetail.420.am
Thu Jun 23 16:07:15 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv11204
Modified Files:
netsapiens.pm
Log Message:
update per netsapiens, RT#12447
Index: netsapiens.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/netsapiens.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- netsapiens.pm 3 Jun 2011 16:33:01 -0000 1.13
+++ netsapiens.pm 23 Jun 2011 23:07:13 -0000 1.14
@@ -1,8 +1,6 @@
package FS::part_export::netsapiens;
use vars qw(@ISA $me %info);
-use URI; #needed?
-use URI::Escape;
use MIME::Base64;
use Tie::IxHash;
use FS::part_export;
@@ -91,7 +89,7 @@
my($self, $svc_phone) = (shift, shift);
$self->ns_subscriber($svc_phone).
- '/registrar_config/'. uri_escape($self->ns_devicename($svc_phone));
+ '/registrar_config/'. $self->ns_devicename($svc_phone);
}
sub ns_devicename {
@@ -112,7 +110,7 @@
my $phonenum = $svc_phone->phonenum;
#"/dialplans/DID+Table/dialplan_config/sip:$countrycode$phonenum\@*"
- "/dialplans/DID+Table/dialplan_config/". uri_escape("sip:$phonenum\@*")
+ "/domains_config/admin-only/dialplans/DID+Table/dialplan_config/sip:$phonenum\@*,*,*,*,*,*,*";
}
sub ns_device {
@@ -247,7 +245,6 @@
my $domain = $self->ns_domain($svc_phone);
my $countrycode = $svc_phone->countrycode;
my $phonenum = $svc_phone->phonenum;
- #my $device = $self->ns_devicename($svc_phone);
my $ns = $self->ns_device_command(
'PUT', $self->ns_device($svc_phone, $phone_device),
More information about the freeside-commits
mailing list