<html><body bgcolor="#FFFFFF"><div>Why are you using agi for this ? They are inbuild features of asterisk.&nbsp;</div><div><br></div><div>Or may be I am missing something&nbsp;</div><div><br><div>--</div>Sent from my iPhone</div><div><br>On Apr 8, 2011, at 8:26 AM, vip killa &lt;<a href="mailto:vipkilla@gmail.com">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("MAILBOXID", $options);</div><div>$AGI-&gt;set_variable("MAILBOXCONTEXT","4");</div></div><div>$AGI-&gt;set_context("voicemail");</div>
<div>$AGI-&gt;exec("VoiceMail", $options);</div><div><br></div><div>now the question is how to I get the VoiceMailMain to not ask for "Mailbox" and already know which mailbox and just prompt for "Password"</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"><a href="mailto:dan@keshercommunications.com">dan@keshercommunications.com</a></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 class="im"><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 "Password" 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'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 href="http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail">http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail</a></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;">&nbsp;'*'&nbsp;-&nbsp;the&nbsp;call&nbsp;jumps&nbsp;to&nbsp;extension&nbsp;'a'&nbsp;in&nbsp;the&nbsp;current&nbsp;voicemail&nbsp;context.&nbsp; </span><br><span style="font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;<strong><span style="font-family:&quot;Courier New&quot;">Example:</span></strong> </span><br>
<span style="font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;Exten&nbsp;=&gt;&nbsp;a,&nbsp;1,&nbsp;VoicemailMain(@default) </span><br><span style="font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;Exten&nbsp;=&gt;&nbsp;a,&nbsp;2,&nbsp;Hangup</span></p><p class="MsoNormal" style="margin-bottom:12.0pt">
When using the star '*' it's important to note that the context you placed the application voicemail in is irrelevant, it's the context for the voicemail box that we're looking for in the dialplan for the jump to the 'a' 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 'a' extension above and into VoicemailMain.</span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">I'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">&nbsp;</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">&nbsp;</span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;color:#1F497D">&nbsp;</span></p></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></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">http://www.api-digital.com</a> --</span><br><span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a></span><br><span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>