can you explain how this can be done simpler? On Fri, Apr 8, 2011 at 10:10 AM, Satish Patel <satish...@hotmail.com> wrote:
> Why are you using agi for this ? They are inbuild features of asterisk. > > Or may be I am missing something > > -- > Sent from my iPhone > > On Apr 8, 2011, at 8:26 AM, vip killa <vipki...@gmail.com> wrote: > > Wow, thanks, that worked... > in case anyone is interested this is what i did.... > > [voicemail] > exten => a,1,VoiceMailMain(${MAILBOXID}@${MAILBOXCONTEXT},p) > > in AGI... > > $AGI->set_variable("MAILBOXID", $options); > $AGI->set_variable("MAILBOXCONTEXT","4"); > $AGI->set_context("voicemail"); > $AGI->exec("VoiceMail", $options); > > 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" > > > On Thu, Apr 7, 2011 at 6:44 PM, Dan Journo <<d...@keshercommunications.com> > d...@keshercommunications.com> wrote: > >> > 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... >> >> Forgive me if i'm wrong, but you guys seem to be over complicating things. >> >> Taken from: <http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail> >> http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail >> >> during the prompt if the caller presses: >> '*' - the call jumps to extension 'a' in the current voicemail context. >> *Example:* >> Exten => a, 1, VoicemailMain(@default) >> Exten => a, 2, Hangup >> >> 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. >> >> So this is what i do... >> >> Before passing the call to the voicemail app, i set ${MAILBOXCONTEXT} to >> the correct context, and i set ${MAILBOXID} to the mailbox name. >> >> Then, in extensions.conf, I added this:- >> >> [voicemail] >> exten => a,1,Playback(astcc-please-enter-your) >> exten => a,n,VoicemailMain(${MAILBOXID}@${MAILBOXCONTEXT}) >> >> When the user presses *, they are passed to the 'a' extension above and >> into VoicemailMain. >> >> I'm sure you can turn this into AGI easily enough if needed. >> >> >> >> Dan Journo >> >> Kesher Communications (UK) >> >> Business Phone Systems <http://www.keshercommunications.com/> | Hosted >> PBX <http://www.keshercommunications.com/hostedpbx.html> >> >> >> >> >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by <http://www.api-digital.com> >> http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> <http://www.asterisk.org/hello> >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> <http://lists.digium.com/mailman/listinfo/asterisk-users> >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > <http://www.asterisk.org/hello> > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > <http://lists.digium.com/mailman/listinfo/asterisk-users> > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users