X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fphone_shellcommands.pm;h=71445bf2779b613e8689f316ebf3ea56d68c7af1;hb=9d818957e724dc5ea2673163855fd84c274cd460;hp=411c263d2ef078beb2a8dd2e63b7890940f82fc3;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm index 411c263d2..71445bf27 100644 --- a/FS/FS/part_export/phone_shellcommands.pm +++ b/FS/FS/part_export/phone_shellcommands.pm @@ -53,7 +53,9 @@ old_ for replace operations):
$cust_name
- Customer name (quoted for the shell)
$pkgnum
- Internal package number
$custnum
- Internal customer number
+ $phone_name
- Phone name (quoted for the shell)
$mac_addr
- MAC address (Device MAC address insert and delete commands only)
+ $devicename
- Device type (Device type insert and delete commands only)
END
);
@@ -83,14 +85,16 @@ sub _export_unsuspend {
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,
- 'mac_addr'=>$phone_device->mac_addr
+ mac_addr => $phone_device->mac_addr,
+ devicename => $phone_device->part_device->devicename,
);
}
@@ -112,6 +116,7 @@ sub _export_command {
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,