[Asterisk-Users] IVR - newbie question

Mark Charlton mcwebtree at gmail.com
Thu Apr 7 12:04:53 MST 2005


On Apr 7, 2005 5:50 PM, Paul Hewlett <hewlett at netactive.co.za> wrote:
> On Thursday 07 April 2005 18:03, Wiley Siler wrote:
> > Go here and look at 'i'...
> >
> > http://www.voip-info.org/wiki-Asterisk+standard+extensions
> >
> > Thanks,
> > Wiely
> >
> 
> Thanx. So I would change it to
> 
> exten => _.,1,Playback(invalid)
> 
> > exten => i,1,Playback(invalid)
> 

I use i in my dial plan and have no problems, as shown below.  The
only difference I see is I am using contexts and you are using is as a
macro.  Both invalid and timeout work.

[incoming]
exten => s,1,Goto(mainivr|s|1)

[mainivr]
exten => s,1,Answer
exten => s,2,DigitTimeout,2
exten => s,3,ResponseTimeout,2
exten => s,4,BackGround(my-greeting)
exten => s,5,BackGround(main-menu)
exten => s,6,wait(10)
exten => s,7,Background(main-menu)
exten => s,8,wait(10)
exten => s,9,playback(thank-call)
exten => s,10,hangup

exten => i,1,Playback,pbx-invalid
exten => i,2,Goto(s|1)

exten => 1,1,SetVar(mm_opt=Sales)
exten => 1,2,Goto(sales|s|1)

exten => 2,1,SetVar(mm_opt=Support)
exten => 2,2,Goto(support|s|1)

exten => 0,1,Goto(s|1)

exten => 7,1,musiconhold()

exten => t,1,Goto(myextensions|200|1)
exten => t,2,Hangup



More information about the asterisk-users mailing list