[freeside-commits] freeside/FS/FS/part_export netsapiens.pm, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Sun Mar 7 23:03:00 PST 2010
- Previous message: [freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.12, 1.13
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.27, 1.324.2.28 Schema.pm, 1.168.2.20, 1.168.2.21 svc_phone.pm, 1.20.2.2, 1.20.2.3 svc_Domain_Mixin.pm, NONE, 1.1.2.2 svc_acct.pm, 1.268.2.18, 1.268.2.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv12478/FS/FS/part_export
Modified Files:
netsapiens.pm
Log Message:
domain names in netsapiens export (domain name association w/svc_phone), RT#5864
Index: netsapiens.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/netsapiens.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- netsapiens.pm 8 Feb 2010 15:37:28 -0000 1.11
+++ netsapiens.pm 8 Mar 2010 07:02:58 -0000 1.12
@@ -72,10 +72,15 @@
$ns;
}
+sub ns_domain {
+ my($self, $svc_phone) = (shift, shift);
+ $svc_phone->domain || $self->option('domain');
+}
+
sub ns_subscriber {
my($self, $svc_phone) = (shift, shift);
- my $domain = $self->option('domain');
+ my $domain = $self->ns_domain($svc_phone);
my $phonenum = $svc_phone->phonenum;
"/domains_config/$domain/subscriber_config/$phonenum";
@@ -91,7 +96,7 @@
sub ns_devicename {
my( $self, $svc_phone ) = (shift, shift);
- my $domain = $self->option('domain');
+ my $domain = $self->ns_domain($svc_phone);
#my $countrycode = $svc_phone->countrycode;
my $phonenum = $svc_phone->phonenum;
@@ -121,7 +126,7 @@
sub ns_create_or_update {
my($self, $svc_phone, $dial_policy) = (shift, shift, shift);
- my $domain = $self->option('domain');
+ my $domain = $self->ns_domain($svc_phone);
#my $countrycode = $svc_phone->countrycode;
my $phonenum = $svc_phone->phonenum;
@@ -238,7 +243,7 @@
sub export_device_insert {
my( $self, $svc_phone, $phone_device ) = (shift, shift, shift);
- #my $domain = $self->option('domain');
+ my $domain = $self->ns_domain($svc_phone);
my $countrycode = $svc_phone->countrycode;
my $phonenum = $svc_phone->phonenum;
@@ -256,7 +261,7 @@
#'notes' =>
'server' => 'SiPbx',
- 'domain' => $self->option('domain'),
+ 'domain' => $domain,
'brand' => $phone_device->part_device->devicename,
- Previous message: [freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.12, 1.13
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.27, 1.324.2.28 Schema.pm, 1.168.2.20, 1.168.2.21 svc_phone.pm, 1.20.2.2, 1.20.2.3 svc_Domain_Mixin.pm, NONE, 1.1.2.2 svc_acct.pm, 1.268.2.18, 1.268.2.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list