[Asterisk-Users] Interrupting voicemail with "*", dropping
to"a" extension. Does it work?
John Lange
john.lange at open-it.ca
Fri May 13 11:27:18 MST 2005
Well I finally got it working but the solution doesn't make sense to me.
If you send a user to voicemail as such:
[stdexten]
exten => 1234,1,Dial(1234,20)
exten => 1234,2,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u1234)
When the user presses "*" (or 0 if you have that set), they are returned
in the context "voicemail", NOT [stdexten] ! The call is NEVER in the
context "voicemail" so why would it return there? All I can think of is
it conflicts with the command Voicemail in some way...
So to make "*" work you must have:
[voicemail]
exten => a,1,VoiceMailMain()
Does this make sense to anyone?
--
John Lange
President OpenIT ltd. www.Open-IT.ca (204) 885 0872
VoIP, Web services, Linux Consulting, Server Co-Location
On Thu, 2005-05-12 at 20:09 -0700, Jim Sturtevant wrote:
> You should set operator=yes in voicemail.conf to get "0" out to work.
>
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of John Lange
> Sent: Thursday, May 12, 2005 7:38 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Interrupting voicemail with "*", dropping
> to"a" extension. Does it work?
>
> On Fri, 2005-05-13 at 12:25 +1000, Adam Goryachev wrote:
> > On Thu, 2005-05-12 at 20:44 -0500, John Lange wrote:
> > > Very very odd.
> > >
> > > Its not a DTMF problem because other tones work fine. # for example
> > > skips the OGM as it should.
> > >
> > > So could it possible be a config issue?
> > >
> > > The voicemail box in question is in the [default] context inside
> > > voicemail.conf.
> > >
> > > [default]
> > > 2048850872 => XXXX,John Lange,john.lange at open-it.ca
> > >
> > > That tells me I need a this in extensions.conf:
> >
> > Does it??
> >
> > > [default]
> > > exten => a,1,VoicemailMain() ; If they press *, send the user into
> VoicemailMain
> > >
> > > Am I missing something blazingly obvious?
> >
> > I thought that it should be like this:
> > [somecontext]
> > exten => 1234,1,Voicemail(1234 at default) <--- Standard check VM
> > exten => a,1,VoiceMailMain() <--- press * to get here
> >
> > ie, the a extension should be in the same context as the voicemail
> > extension, the voicemail context (default) is irrelevant in all this...
> > It is ONLY used internally by the voicemail app to determine which
> > mailbox this is. Don't confuse them just because they are both called
> > context's.
>
> I created this bare-bones example to test it.
>
> [mycontext]
> exten => 8761234,1,Voicemail(u2048761234)
> exten => a,1,VoiceMailMain()
>
> It does not work. As mentioned I can skip the OGM by pressing #, but *
> (and 0) do nothing.
>
> With verbose set to 9 I see nothing on the console for any of the key
> presses.
>
> By the way, I'm using a recent CVS version of Asterisk.
>
> Asterisk CVS-HEAD-05/03/05-16:21:27
>
> This is very baffling.
>
> Are there any other ways of trouble shooting it?
>
> > > I didn't think it could be a config issue because I thought it should at
> > > least show the "*" in the console and then complain about no "a"
> > > extension or something but I get absolutely nothing in the console.
> >
> > Dunno, but try the above... and let us know.
> >
> > Regards,
> > Adam
More information about the asterisk-users
mailing list