X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fphone_shellcommands.pm;h=593b14e47e0d47a2940bb237d71592dad4fd67ed;hb=4d75191d9cc9ef91b82cd6ff4be96cdc8f82e480;hp=411c263d2ef078beb2a8dd2e63b7890940f82fc3;hpb=013646e6629fc94b4cda03c495aa56677f2de381;p=freeside.git diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm index 411c263d2..593b14e47 100644 --- a/FS/FS/part_export/phone_shellcommands.pm +++ b/FS/FS/part_export/phone_shellcommands.pm @@ -54,6 +54,7 @@ old_ for replace operations):
  • $pkgnum - Internal package number
  • $custnum - Internal customer number
  • $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 +84,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, ); }