[asterisk-bugs] [JIRA] (ASTERISK-20652) AppVoicemail creates multiple duplicates of the contents of #included users.conf files.

Craig Hoffman (JIRA) noreply at issues.asterisk.org
Mon Nov 5 21:25:21 CST 2012


Craig Hoffman created ASTERISK-20652:
----------------------------------------

             Summary: AppVoicemail creates multiple duplicates of the contents of #included users.conf files.
                 Key: ASTERISK-20652
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20652
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Applications/app_voicemail
    Affects Versions: 10.9.0
         Environment: Linux voipsrv 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux
            Reporter: Craig Hoffman
            Severity: Minor


In my users.conf file, I've added a "#include users_conf/*.conf" option.  I do this to split off each user into their own file (1000.conf, etc).  It works well given the web app that was written to manage them.  We have ~100 users.

When a user changes their voicemail password via the web app, the file is adjusted, and Asterisk is reloaded.  This works fine.

However, when a user changes their voicemail via the Comedian Mail prompts (0 and then 5), each file in the "users_conf" directory is updated.  But the update is just an appended version of the new data.  So you end up with a 1000.conf file looking like:

[1000]
fullname = Joe Test
email = none at none.com
secret = mysecret
...
[1000]
fullname = Joe Test
email = none at none.com
secret = mysecret
...
[1000]
fullname = Joe Test
email = none at none.com
secret = mysecret
...

AppVoicemail should instead just replace the vmsecret PIN, rather than copying and appending the new data.

As a workaround, I have written a python script that just replaces the PIN in the user file for that particular user.  It is called via "externpass".  This works well, and it will be what I use going forward - but I wanted to assist in documenting the bug(?) in case someone else is searching on a similar issue.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list