can you explain how this can be done simpler?<br><br><div class="gmail_quote">On Fri, Apr 8, 2011 at 10:10 AM, Satish Patel <span dir="ltr">&lt;<a href="mailto:satish_lx@hotmail.com">satish_lx@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF"><div>Why are you using agi for this ? They are inbuild features of asterisk. </div><div><br></div>
<div>Or may be I am missing something </div><div><br><font color="#888888"><div>--</div>Sent from my iPhone</font></div><div><div></div><div class="h5"><div><br>On Apr 8, 2011, at 8:26 AM, vip killa &lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>&gt; wrote:<br>
<br></div><div></div><blockquote type="cite"><div>Wow, thanks, that worked...<div>in case anyone is interested this is what i did....</div><div><div><br></div><div>[voicemail]</div><div>exten =&gt; a,1,VoiceMailMain(${MAILBOXID}@${MAILBOXCONTEXT},p)</div>
<div><br></div><div>
in AGI...</div><div><br></div><div><div>$AGI-&gt;set_variable(&quot;MAILBOXID&quot;, $options);</div><div>$AGI-&gt;set_variable(&quot;MAILBOXCONTEXT&quot;,&quot;4&quot;);</div></div><div>$AGI-&gt;set_context(&quot;voicemail&quot;);</div>

<div>$AGI-&gt;exec(&quot;VoiceMail&quot;, $options);</div><div><br></div><div>now the question is how to I get the VoiceMailMain to not ask for &quot;Mailbox&quot; and already know which mailbox and just prompt for &quot;Password&quot;</div>

<div><br></div><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 6:44 PM, Dan Journo <span dir="ltr">&lt;<a href="mailto:dan@keshercommunications.com" target="_blank"></a><a href="mailto:dan@keshercommunications.com" target="_blank">dan@keshercommunications.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#1F497D">&gt; </span>Unfortunately, that solution will not work for me... The user must be able to hit * during the greeting of any voicemail and be prompted for the &quot;Password&quot; to that particular mailbox.... looks like i got a lot of programming to do to create a work around for this... thanks for your help...<span style="color:#1F497D"></span></p>

</div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">Forgive me if i&#39;m wrong, but you guys seem to be over complicating things.</span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

<span style="font-size:11.0pt;color:#1F497D">Taken from: <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail" target="_blank"></a><a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail</a></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">
during the prompt if the caller presses: <br><span style="font-family:&quot;Courier New&quot;"> &#39;*&#39; - the call jumps to extension &#39;a&#39; in the current voicemail context.  </span><br><span style="font-family:&quot;Courier New&quot;">    <strong><span style="font-family:&quot;Courier New&quot;">Example:</span></strong> </span><br>

<span style="font-family:&quot;Courier New&quot;">    Exten =&gt; a, 1, VoicemailMain(@default) </span><br><span style="font-family:&quot;Courier New&quot;">    Exten =&gt; a, 2, Hangup</span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

When using the star &#39;*&#39; it&#39;s important to note that the context you placed the application voicemail in is irrelevant, it&#39;s the context for the voicemail box that we&#39;re looking for in the dialplan for the jump to the &#39;a&#39; extension. <br>

<br><span style="font-size:11.0pt;color:#1F497D"></span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">So this is what i do...</span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

<span style="font-size:11.0pt;color:#1F497D">Before passing the call to the voicemail app, i set ${MAILBOXCONTEXT} to the correct context, and i set ${MAILBOXID} to the mailbox name.</span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

<span style="font-size:11.0pt;color:#1F497D">Then, in extensions.conf, I added this:-</span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">[voicemail]<br>exten =&gt; a,1,Playback(astcc-please-enter-your)<br>

exten =&gt; a,n,VoicemailMain(${MAILBOXID}@${MAILBOXCONTEXT})</span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">When the user presses *, they are passed to the &#39;a&#39; extension above and into VoicemailMain.</span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">I&#39;m sure you can turn this into AGI easily enough if needed.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Dan Journo</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Kesher Communications (UK)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><a href="http://www.keshercommunications.com/" target="_blank">Business Phone Systems</a> | <a href="http://www.keshercommunications.com/hostedpbx.html" target="_blank">Hosted PBX</a></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D"> </span></p></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br>
<span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span>               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br>
<span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</blockquote></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>