<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Juan,<BR>
<BR>
I just went through the same thing here.&nbsp; I never did get it to work, i suspect it is a bug but have not had time to look into it.<BR>
<BR>
What I did was use the externpass configuration directive in voicemail.conf to run an external perl script which updates my database.<BR>
<BR>
externpass will run your perl script with 3 arguments, context, mailbox, and password once the user has entered the password 2 times and they match.<BR>
<BR>
mine looks like this<BR>
<BR>
#!/usr/bin/perl<BR>
# Takes 3 command line args, context, mailbox, password<BR>
# updates the mailbox password in mysql<BR>
<BR>
use strict;<BR>
use DBI;<BR>
<BR>
my ($Context, $MailBox, $Password) = @ARGV;<BR>
<BR>
my $dbh = DBI-&gt;connect(&quot;dbi:mysql:hostname=localhost;database=asterisk&quot;,&quot;username&quot;, &quot;password&quot;);<BR>
<BR>
$dbh-&gt;do(&quot;update voicemail_users set password = '$Password' where context = '$Context' and mailbox = '$MailBox'&quot;);<BR>
<BR>
$dbh-&gt;disconnect();<BR>
<BR>
<BR>
<BR>
Hope this helps!<BR>
<BR>
Ryan Hulsker<BR>
<BR>
<BR>
On Tue, 2005-10-11 at 15:45, Juan Salas wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hello.

One question...
When we use voicemail with flat file configuration (voicemail.conf) 
the vaicemail user can change his password by voicemailmain (voice menu)
this change the value in voicemail.conf.
When we use Realtime the password is stored in the database. What the 
voicemailmain (voice menu) application do? change the database value? 
As I see it doesn't work.

Regard.

Jsalas.









Asterisk-Users mailing list
Asterisk-Users@lists.digium.com</FONT>
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></A>
<FONT COLOR="#737373">To UNSUBSCRIBE or update options visit:
   </FONT><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></A>
<FONT COLOR="#737373">_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com</FONT>
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></A>
<FONT COLOR="#737373">To UNSUBSCRIBE or update options visit:
   </FONT><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></A>
<FONT COLOR="#737373"></I></FONT></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>