Hi Tim, Think of the vm-password in the lineId.xml file as an alternate or back-door password. Mod_voicemail stores the user's main voicemail password in its database (db/voicemail.db is the default), set via the VM IVR. It only uses the alternate if the main password check fails. You can set the lineId.xml file vm-password to "user-choose" to get part of the functionality you want: i.e. there is no alternate password set by default. Regards, Robert -----Original Message----- From: Tim St. Pierre [mailto:fs-list@communicatefreely.net] Sent: Tuesday, July 06, 2010 7:04 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] VM Force Password Change If you use this method, what happens when a user tries to change their password from within the voicemail app? Is there some sort of hook in mod_voicemail that we can use to push the update to the database via the web server? -Tim Steven Ayre wrote:
Try using mod_xml_curl to provide the user directory.
voicemail password is a param in the user directory, you can generate that dynamically querying a database (e.g. MySQL) via a scripting language (e.g. PHP) using mod_xml_curl to get the current password (or a1 hash if you want to store it encrypted).
You can have a dialplan extension that's executed prior to the extension that connects them to their voicemail if there's no password set that collects DTMF and then sends it to the webserver to update the database using Mod_curl
http://wiki.freeswitch.org/wiki/Mod_voicemail#vm-password http://wiki.freeswitch.org/wiki/Mod_xml_curl http://wiki.freeswitch.org/wiki/Mod_curl
On 6 July 2010 17:12, Ghulam Mustafa <mustafa.pk <http://mustafa.pk>@gmail.com <http://gmail.com>> wrote:
i have not done something like this before, but you can create an event socket script to check first time login (possibly by checking _default_ password in db/xml) and then and then ask user to change the password.
check it out http://wiki.freeswitch.org/wiki/IVR
-m
On Tue, Jul 6, 2010 at 8:54 PM, Peder <peder@networkoblivion.com <mailto:peder@networkoblivion.com>> wrote: > Any idea how? > > -----Original Message----- > From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Ghulam Mustafa > Sent: Tuesday, July 06, 2010 10:35 AM > To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re: [Freeswitch-users] VM Force Password Change > > i don't think so, but you can definitely make it possible in dialplan. > > -m > > On Tue, Jul 6, 2010 at 5:58 PM, Peder <peder@networkoblivion.com <mailto:peder@networkoblivion.com>> wrote: >> Is there a way to force a password change upon first login to a voicemail >> account? We set the password to 1234 and would like to force users to >> change it the first time they login to the account. >> >> Peder >> >> >> >>