projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netsapiens integration: deb dep on REST::Client rather than throw a runtime error...
[freeside.git]
/
FS
/
FS
/
part_export
/
phone_shellcommands.pm
diff --git
a/FS/FS/part_export/phone_shellcommands.pm
b/FS/FS/part_export/phone_shellcommands.pm
index
161ffe0
..
71445bf
100644
(file)
--- a/
FS/FS/part_export/phone_shellcommands.pm
+++ b/
FS/FS/part_export/phone_shellcommands.pm
@@
-52,7
+52,10
@@
old_ for replace operations):
<LI><code>$pin</code> - Personal identification number
<LI><code>$cust_name</code> - Customer name (quoted for the shell)
<LI><code>$pkgnum</code> - Internal package number
<LI><code>$pin</code> - Personal identification number
<LI><code>$cust_name</code> - Customer name (quoted for the shell)
<LI><code>$pkgnum</code> - Internal package number
+ <LI><code>$custnum</code> - Internal customer number
+ <LI><code>$phone_name</code> - Phone name (quoted for the shell)
<LI><code>$mac_addr</code> - MAC address (Device MAC address insert and delete commands only)
<LI><code>$mac_addr</code> - MAC address (Device MAC address insert and delete commands only)
+ <LI><code>$devicename</code> - Device type (Device type insert and delete commands only)
</UL>
END
);
</UL>
END
);
@@
-82,14
+85,16
@@
sub _export_unsuspend {
sub export_device_insert {
my( $self, $svc_phone, $phone_device ) = @_;
$self->_export_command('mac_insert', $svc_phone,
sub export_device_insert {
my( $self, $svc_phone, $phone_device ) = @_;
$self->_export_command('mac_insert', $svc_phone,
- 'mac_addr'=>$phone_device->mac_addr
+ mac_addr => $phone_device->mac_addr,
+ devicename => $phone_device->part_device->devicename,
);
}
sub export_device_delete {
my( $self, $svc_phone, $phone_device ) = @_;
$self->_export_command('mac_delete', $svc_phone,
);
}
sub export_device_delete {
my( $self, $svc_phone, $phone_device ) = @_;
$self->_export_command('mac_delete', $svc_phone,
- 'mac_addr'=>$phone_device->mac_addr
+ mac_addr => $phone_device->mac_addr,
+ devicename => $phone_device->part_device->devicename,
);
}
);
}
@@
-107,9
+112,11
@@
sub _export_command {
}
my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
my $pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
}
my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
my $pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
+ my $custnum = $cust_pkg ? $cust_pkg->custnum : '';
my $cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
$cust_name = shell_quote $cust_name;
my $sip_password = shell_quote $svc_phone->sip_password;
my $cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
$cust_name = shell_quote $cust_name;
my $sip_password = shell_quote $svc_phone->sip_password;
+ my $phone_name = shell_quote $svc_phone->phone_name;
#done setting variables for the command
$self->shellcommands_queue( $svc_phone->svcnum,
#done setting variables for the command
$self->shellcommands_queue( $svc_phone->svcnum,
@@
-133,8
+140,10
@@
sub _export_replace {
my $old_cust_pkg = $old->cust_svc->cust_pkg;
my $old_pkgnum = $old_cust_pkg ? $old_cust_pkg->pkgnum : '';
my $old_cust_pkg = $old->cust_svc->cust_pkg;
my $old_pkgnum = $old_cust_pkg ? $old_cust_pkg->pkgnum : '';
+ my $old_custnum = $old_cust_pkg ? $old_cust_pkg->custnum : '';
my $cust_pkg = $new->cust_svc->cust_pkg;
my $new_pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
my $cust_pkg = $new->cust_svc->cust_pkg;
my $new_pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
+ my $new_custnum = $new_cust_pkg ? $new_cust_pkg->custnum : '';
my $new_cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
$new_cust_name = shell_quote $new_cust_name;
#done setting variables for the command
my $new_cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
$new_cust_name = shell_quote $new_cust_name;
#done setting variables for the command