[Asterisk-Users] extensions rules
steve
steve at szmidt.org
Sat Mar 15 15:11:29 MST 2003
On Saturday 15 March 2003 14:57, Steven Critchfield wrote:
> >
> > 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.
Ah! Lightbulb Flash! That was a very good way to put it!
> > > [example]
> > > exten => s,1,answer
> > > exten => s,2,Background,Your_greeting_file
> > > exten => s,3,Background,Your_menu_file
So we play and do whatever intro stuff we want. Now why is Dial on
priority 1 and not 4? OK, I see it has extension one on it, that's
why. So I can group the handling/steps for each extension and list
what to do with them in sequence. If they deal with something not
pressed it will be skipped.
> > > 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
Catchink! Another lightbulb! OK, time to implement my newfound
wealth! Thanks a lot Stephen! You really should spend a few min and
vrite down a few of these concepts for implementation into the new
howto/doc version 2! You have cut out a huge chunk of confusion!
> 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
--
Steve Szmidt
___________________________________________________________
HTML in e-mail is not safe. It let's spammers know to spam you more,
and sets you up for online attack through IE 4.x and above.
Using HTML in e-mail only promotes it as safe to the uninitiated.
More information about the asterisk-users
mailing list