[Home]

Summary:ASTERISK-16809: [patch] cannot override mailbox/context per user in users.conf.
Reporter:Marc Jauvin (mjauvin)Labels:patch
Date Opened:2010-10-13 13:09:58Date Closed:2022-04-03 13:35:46
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_voicemail.c.patch
Description:There is no way to override the voicemail mailbox name and context PER USER within users.conf (as is possible for most other parameters). I have verified this against 1.4.x, 1.6.2.x and latest SVN trunk.

e.g. (users.conf)

[user1]
hassip=yes
hasvoicemail=yes
vmsecret=mysecret
mailbox=100@vmail

This would create a voicemail mailbox=user1 with context=default and a SIP peer with Mailbox=100@vmail (Notice the discrepancy)


****** ADDITIONAL INFORMATION ******

I created a patch that fixes this. The patch has been created against latest SVN trunk, but I can provide patches for earlier releases as well (1.4.x / 1.6.2.x)

The same users.conf snippet would now create a voicemail mailbox=100 and context=vmail, identical to the SIP Mailbox.
Comments:By: Marc Jauvin (mjauvin) 2010-10-15 09:57:06

Still need to patch app_directory for the same problem.

By: Sean Bright (seanbright) 2022-04-03 13:35:47.017-0500

From [{{users.conf.sample}}|https://github.com/asterisk/asterisk/blob/94df607771e579336efc0b6b9b1cf7fdd0bbfd9a/configs/samples/users.conf.sample]:

bq. Using users.conf is not intended to provide you with as much flexibility as using the separate configuration files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the simple task of adding users.