Satope Oladayo
Satope Oladayo

Reputation: 21

Creating a simple IVR Menu

I'm an asterisk newbie to asterisk and i'm yet to fully understand the demo menu below. I have an overview but i'm not quite clear on the s's and the n's, the 1's, 2's. The basic functions like playback, goto etc, are quite clear. But not how n(loop) affects the menu. Any help to clarify this would be appreciated.

[demo-menu]
exten => s,1,Answer(500)
   same => n(loop),Background(press-1&or&press-2)
   same => n,WaitExten()

exten => 1,1,Playback(you-entered)
   same => n,SayNumber(1)
   same => n,Goto(s,loop)

exten => 2,1,Playback(you-entered)
   same => n,SayNumber(2)
   same => n,Goto(s,loop)

Upvotes: 1

Views: 749

Answers (1)

arheops
arheops

Reputation: 15259

Description

same => n(loop),Background(press-1&or&press-2)

"Same" here is "exten => s", "n" is next-pririty, "(loop)" is label for goto.

I recommend you read "Asterisk the future of telephony" O'Relly's book.

Upvotes: 1

Related Questions