Reset Voice Mailbox

Discussion in 'General' started by trymes, Nov 17, 2010.

  1. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    OK, so this is super basic, but they way I used to do it seems to not work on the more recent version of Asterisk we are running, and nothing obvious popped up on Google.

    Anyhow, I need to reset a voice mailbox for a new user. Basically, I would like for them to start with a blank slate. I used to do this on our old Asterisk 1.2 box:

    1.) Log in to VM for that extension.
    2.) Check to see if there are any old messages that should be dealt with.
    3.) Reset the VM password to be the same as the extension.
    4.) Remove the /var/spool/asterisk/voicemail/default/XXX directory (where XXX is the extension)

    This used to prompt the user to change their password, and to record their name and both greetings. However, this no longer happens.

    Ideas?

    Tom

    PS: An easier method would be appreciated, too!
     
  2. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    Some more Google spelunking unearthed this:

     
  3. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    OK, so I have answered my own question and I'm posting the results here for anyone else looking.

    Add the forcename=yes and forcegreetings=yes to your /etc/asterisk/vm_general.inc file and Asterisk will prompt the user to change their password and record their name and greetings whenever their password is set to the same as their extension.

    Any idea why this:
    1.) Isn't set to be this way by default?
    2.) Isn't configurable in the GUI?

    Also, I wonder if it's likely to be overwritten at some point by FreePBX?

    Tom
     
  4. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    answers to all three questions are "no", as to why, the first two,well they have always been like that, the third is that FreePBX don't want to p.off their users. :)
     
  5. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    OK, I can understand that some users don't want to have the functionality provided by the forcegreetings and forcename options. I can even understand that it may be a large enough proportion of people that it should be off by default. However, I can't imagine why FreePBX offering the ability to enable that functionality would p.off their users.

    Tom

    PS: I opened a feature request ticket with FreePBX. http://www.freepbx.org/trac/ticket/4641
     
  6. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    The voicemail system is a legacy software from before Asterisk was a twinkle in Mark's eye (That's why it says "Comedian Mail", ) It stores it's data in flat files that start with v in /etc/asterisk/ . All the other conf files in the early days of Asterisk were moved to the Berkely Datbase system, and are more compliant to extracting and storing/restoring in mysql databases, the VM system has many many other adhoc options to allow you to call other programs to turn PBX light on and off, etc. etc. so in general the Voicemail system is just left alone apart from the realtively easy voicemail.conf as there is really no possible abstraction of all it's options reasonably.

    JM2CWAE

    dicko
     
  7. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    Hmmm... I figured that, if the existing VM options in the "General Settings" worked, that those would work, too, but I guess they really control the dialplan more than the VM conf files.

    Thanks for the info. We'll see what becomes of it.

    Tom
     
  8. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    Thanks for the info, we'll see where it goes.

    Tom
     

Share This Page