<html><div style='background-color:'><P>Sir, I cant use this script. i know that this script parse the contents of voicemail.conf file, now i m telling u what my snerio is.</P>
<P>I have php script which creates username.conf files after reading&nbsp;username info from database,&nbsp;like jamshed.conf, riz.conf for each voicemail box configuration and these files are created in the /etc/asterisk/voicemail&nbsp; folder. i include the path of this folder in default context of voicemail.conf&nbsp;like this #include /etc/asterisk/voicemail/*.conf. so when i change my voicemail password through commedian mail then change will not be appeared in username.conf file but asterisk set the new entered password. so i want that password to process it. i dont know asterisk sets which variable against 123456=&gt;vm_password,mailbox,jamshed_z@hotmail.com etc... </P>
<P>i want to know that variable which is set by asterisk when password change occurs through commedian mail and how do i access this variable through php or perl code ?????????</P>
<P>i guess u got my point.<BR><BR><IMG height=2 src="http://graphics.hotmail.com/greypixel.gif" width="100%" vspace=9></P>
<DIV><PRE class=quote><FONT face="Courier New, Courier, Monospace" color=#000033 size=2>Syed Jamshed Zaidi
<BR>Asterisk Admin/Developer
<BR>@ Axvoice +92-0321-4087492
<BR>(JAMY-VIRUS)</FONT></PRE><PRE class=quote><PRE class=quote><FONT face="Courier New, Courier, Monospace" color=#000033 size=2>"Shoot for the moon. Even if you miss, you'll land among the stars"</FONT></PRE></PRE></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>Philipp Kempgen &lt;philipp.kempgen@amooma.de&gt;</I><BR>Reply-To: <I>Asterisk Users Mailing List - Non-Commercial Discussion&lt;asterisk-users@lists.digium.com&gt;</I><BR>To: <I>Asterisk Users Mailing List - Non-Commercial Discussion&lt;asterisk-users@lists.digium.com&gt;</I><BR>Subject: <I>Re: [asterisk-users] How to access Voicemail Passwordin Asteriskwithout using V</I><BR>Date: <I>Sat, 10 Mar 2007 17:04:01 +0100</I><BR>&gt;jamshed zaidi wrote:<BR>&gt;<BR>&gt; &gt; sir, i have configured voicemail already but the problem is i want a<BR>&gt; &gt; variable which holds a value of password just like ${VM_CALLERID} variable<BR>&gt; &gt; holds Voicemail Caller ID (Person leaving vm). i want to process password<BR>&gt; &gt; set by the user through comedian mail. my snerio does not allow me to pick<BR>&gt; &gt; password value from voicemail.cof file???? How do i come up with 
this<BR>&gt; &gt; situation????<BR>&gt;<BR>&gt;If all else fails you might use an AGI script like this (put it<BR>&gt;in /var/lib/asterisk/agi-bin/):<BR>&gt;<BR>&gt;<BR>&gt;#!/usr/bin/php -q<BR>&gt;&lt;?php<BR>&gt;$mailbox = @$argv[1];<BR>&gt;$pass = '';<BR>&gt;if (preg_match( '/^\d*$/', $mailbox )) {<BR>&gt; $vmConf = file_get_contents( '/etc/asterisk/voicemail.conf' );<BR>&gt; if (preg_match( '/^'.$mailbox.'\s*=&gt;\s*(\d*)/m', $vmConf, $m )) {<BR>&gt; $pass = $m[1];<BR>&gt; }<BR>&gt;}<BR>&gt;echo 'SET VARIABLE vm_pass ', $pass, "\n";<BR>&gt;fFlush(STDOUT);<BR>&gt;?&gt;<BR>&gt;<BR>&gt;<BR>&gt;and call the script from within the dial plan:<BR>&gt;<BR>&gt;exten =&gt; 123,1,Set(my_mailbox=555)<BR>&gt;exten =&gt; 123,n,AGI(get-vm-password.php|${my_mailbox})<BR>&gt;exten =&gt; 123,n,SayDigits(${vm_pass})<BR>&gt;<BR>&gt;<BR>&gt;But maybe there is a better solution to 
this.<BR>&gt;<BR>&gt;Regards,<BR>&gt; Philipp<BR>&gt;<BR>&gt;--<BR>&gt;amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de<BR>&gt; Let's use IT to solve problems and not to create new ones.<BR>&gt; Asterisk? -&gt; http://www.das-asterisk-buch.de<BR>&gt;<BR>&gt;Geschäftsführer: Stefan Wintermeyer<BR>&gt;Handelsregister: Neuwied B 14998<BR>&gt;_______________________________________________<BR>&gt;--Bandwidth and Colocation provided by Easynews.com --<BR>&gt;<BR>&gt;asterisk-users mailing list<BR>&gt;To UNSUBSCRIBE or update options visit:<BR>&gt; http://lists.digium.com/mailman/listinfo/asterisk-users<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>FREE pop-up blocking with the new MSN Toolbar <a href="http://g.msn.com/8HMAEN/2752??PS=47575" target="_top">MSN Toolbar</a> Get it now!</html>