[Asterisk-Users] extensions rules
Steven Critchfield
critch at basesys.com
Sat Mar 15 12:57:40 MST 2003
On Sat, 2003-03-15 at 13:40, steve wrote:
> On Saturday 15 March 2003 14:23, Steven Critchfield wrote:
> > On Sat, 2003-03-15 at 13:06, steve wrote:
> > > Example:
> > > exten => s,1,Dial,Zap/2|5
> > > exten => s,2,Voicemail,u100
> > > exten => s,2,Background,demo-thanks
> > > exten => s,3,Goto,2
> > > exten => s,4,Hangup
> > > exten => 1,1,Voicemail,u100
> > > exten => 2,1,Goto,s|4
> > > exten => i,1,Goto,s|2
> > > exten => t,1,Goto,s|2
>
> But why are we going back to 1 after menu? How do you know it's time
> to go back to 1.
I use blank lines to show they are definitions of different extensions.
Consider each bunch of connected lines like a subroutine. There is the
routine for the s extension, then the 1 extension, 2 extension, t and i
extensions. You can only move from one subroutine to the next either via
keypresses or some form of Goto, or other extension directives that can
act on extention and priority like an AGI script.
> > [example]
> > exten => s,1,answer
> > exten => s,2,Background,Your_greeting_file
> > exten => s,3,Background,Your_menu_file
> >
> > exten => 1,1,Dial,Zap/2|5 ; maybe this should be longer
> > exten => 1,2,Voicemail,u100 ; unavailable fall through
> > exten => 1,102,Voicemail,b100 ; Busy skip n+101
>
> Where did 101 come from?
in asterisk issue
show application dial
This will prompt you with how dial works. Dial will jump to n+101 if
n+101 exists and the channels you specify are busy.
> > exten => 2,1,Hangup
> >
> > exten => t,1,Goto,s|3
> >
> > exten => i,1,Goto,s|3
> >
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list