Estimated reading time: 4 min

GENERAL INFORMATIONTo Top

Tegsoft voice records are saved in “Monitor” director. Voice records should be archived and moved because of size and security. According to this, voice records in Monitor are archived in MonitorArchive directory with mp3 format every night. You can set the the archiving time when it should be done from project based Tegsoft screen.

At this step, we will see the mount and umount terms.

Mount command mount a storage device or file system and make them accessible. And then adds it to an existing directory structure.

Umount command detaches the mounted file system. Notify the system to complete pending read or write operations and safely unmount them.

All accessed files in a UNIX or in a Linux similar to UNIX system are arranged in form of a big tree, file hierarchy is rooted at ‘/’. These files can be spread out on various devices.

Mount command mounts file system found on a device or on another place to file tree (Storage). Conersly, umount command unmounts it from the tree.

For more details, use this link : https://www.computerhope.com/unix/umount.htm

VOICE RECORDING ARCHIVINGTo Top

If you follow the next steps, archive files can be moved to windows share.

  1. Connect to Tegsoft server with SSH.
  2.  mkdir -p /var/spool/asterisk/monitorArchive
  3. mount -t cifs //SHARED_SERVER_IP_ADDRESS/SHARED_FOLDER -o username=USER,password=PASSWORD /var/spool/asterisk/monitorArchive
  4. From the Tegsoft servers screen, archive destination should be set as “/var/spool/asterisk/monitorArchive”.
  5. Archive time is set from Tegsoft servers screen.

If there is no password, this command should be written instead of step 3.

mount -t cifs //SHARED_SERVER_IP_ADDRESS/SHARED_FOLDER /var/spool/asterisk/monitorArchive

VOICE RECORD ACCESS PROBLEMTo Top

Sometimes files cannot be mounted to storage because of the system failure. Umount/mount operation is required to access these files physically located in monitorArchive.

Picture below show that.

The Windows shared PC must have access to both MonitorArchive and Storage.

First, umount operation and then mount operation will allow access to the files again.

The operation steps are below.

  1. Connect to Tegsoft server with SSH.
  2. umount /var/spool/asterisk/monitorArchive
  3. mount -t cifs //SHARED_SERVER_IP_ADDRESS/SHARED_FOLDER -o username=USER,password=PASSWORD /var/spool/asterisk/monitorArchive
  4. From the Tegsoft servers screen, archive destination should be set as “/var/spool/asterisk/monitorArchive”.
  5. Archive time is set from Tegsoft servers screen.

If there is no password, this command should be written instead of step 3.

mount -t cifs //SHARED_SERVER_IP_ADDRESS/SHARED_FOLDER /var/spool/asterisk/monitorArchive