ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Storing Elastix 2 VoiceMails on NFS NAS Share

    IT Discussion
    elastix elastix 2 elastix 2.4 elastix 2.5 voip pbx
    2
    12
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      A common modification to a PBX is to store voicemails someplace other than on the PBX itself. This allows the PBX to remain essentially stateless (logging needs to go elsewhere, too) and lets storage be kept at a different priority tier. Very useful.

      The best approach to this is simply replacing the voicemail folder with an NFS mount from a NAS or fileserver. NFS works transparently for us here and is definitely the best choice. SMB, iSCSI and other options do exist, of course, but are not as ideal. Stick with NFS when possible.

      Your NFS server needs matching asterisk credentials and permissions in both places in order for the Asterisk user to be able to write to the space.

      By default, Elastix is going to store voicemail files in /var/spool/asterisk/voicemail/default. So we need to move this directory out of the way before we can continue. Be sure that Asterisk is not writing into this while you do this or you can cause problems. So stop Asterisk before beginning this process.

      /etc/init.d/asterisk stop
      mv /var/spool/asterisk/voicemail/default /var/spool/asterisk/voicemail/default_old
      

      This gets our old folder out of the way and guarantees that it is not being used. Now we just need to mount our NFS server where this folder used to be.

      We need to start by adding the proper line into /etc/fstab to do this. You will need to alter the configuration file to reflect the information from your NFS share:

      echo 'server:/share/name /var/spool/asterisk/voicemail/default nfs rsize=8192,wsize=8192,timeo=14,intr' >> /etc/fstab
      mkdir -p /var/spool/asterisk/voicemail/default
      mount /var/spool/asterisk/voicemail/default
      /etc/init.d/asterisk start
      

      If all is well, you should be back up and running at this point.

      1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller
        last edited by

        Welcome @poorizad who has joined us looking for information on this topic.

        poorizadP 1 Reply Last reply Reply Quote 1
        • poorizadP
          poorizad @scottalanmiller
          last edited by poorizad

          @scottalanmiller Thanks for the instruction. here are my question,
          voicemail files in /var/spool/asterisk/voicemail/default but i want call recordings file. i guess there are in /var/spool/asterisk/Monitor ??

          because i find the wave files in Monitor directory.
          second , is this (server:/share/name) is my nas and shared folder ?

          scottalanmillerS 3 Replies Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @poorizad
            last edited by

            @poorizad said in Storing Elastix 2 VoiceMails on NFS NAS Share:

            second , is this (server:/share/name) is my nas and shared folder ?

            Yes, that would be your NAS' hostname or IP address. If this is a very small system, my process would be to fill in the ip address and hostname into /etc/hosts and then use the hostname here. It's a bit better than using an ip address directly. If you have DNS, then use that, of course.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @poorizad
              last edited by

              @poorizad said in Storing Elastix 2 VoiceMails on NFS NAS Share:

              because i find the wave files in Monitor directory.

              Those are system wave files, not voicemails. They should not be changing.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @poorizad
                last edited by

                @poorizad said in Storing Elastix 2 VoiceMails on NFS NAS Share:

                voicemail files in /var/spool/asterisk/voicemail/default or /var/spool/asterisk/Monitor ??

                /var/spool/asterisk/voicemail/default is where voicemail files are stored.

                poorizadP 1 Reply Last reply Reply Quote 0
                • poorizadP
                  poorizad @scottalanmiller
                  last edited by

                  @scottalanmiller oh....they dont have enabled voice mail.....they just want to record all the call recordings. ( external).....

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @poorizad
                    last edited by

                    @poorizad said in Storing Elastix 2 VoiceMails on NFS NAS Share:

                    @scottalanmiller oh....they dont have enabled voice mail.....they just want to record all the call recordings. ( external).....

                    Oh, I see. Well that's different. Okay, I'll check on the location for that.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      You are correct, call recordings go to: /var/spool/asterisk/monitor

                      poorizadP 1 Reply Last reply Reply Quote 1
                      • poorizadP
                        poorizad @scottalanmiller
                        last edited by

                        @scottalanmiller it means i use your previous command with this path . right ?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          Added this thread to handle the other use case:

                          https://mangolassi.it/topic/9842/storing-elastix-2-call-recordings-on-nfs-nas-share

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @poorizad
                            last edited by

                            @poorizad said in Storing Elastix 2 VoiceMails on NFS NAS Share:

                            @scottalanmiller it means i use your previous command with this path . right ?

                            Correct

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post