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 => a,1,VoiceMailMain(${MAILBOXID}@${MAILBOXCONTEXT},p)</div><div><br></div><div>
in AGI...</div><div><br></div><div><div>$AGI->set_variable("MAILBOXID", $options);</div><div>$AGI->set_variable("MAILBOXCONTEXT","4");</div></div><div>$AGI->set_context("voicemail");</div>
<div>$AGI->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"><<a href="mailto:dan@keshercommunications.com">dan@keshercommunications.com</a>></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">> </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">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:"Courier New""> '*' - the call jumps to extension 'a' in the current voicemail context. </span><br><span style="font-family:"Courier New""> <strong><span style="font-family:"Courier New"">Example:</span></strong> </span><br>
<span style="font-family:"Courier New""> Exten => a, 1, VoicemailMain(@default) </span><br><span style="font-family:"Courier New""> Exten => a, 2, 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 => a,1,Playback(astcc-please-enter-your)<br>
exten => 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"> </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">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></div>