[Asterisk-Users] extensions rules

Steven Critchfield critch at basesys.com
Sat Mar 15 12:23:01 MST 2003


On Sat, 2003-03-15 at 13:06, steve wrote:
> Hi guys, I need a hand with extension rules. I just finished the old 
> manual but after doing some test I'm not sure about the sequence of 
> greeting/hold music/and so on. It's supposed to play a greeting and 
> read a menu of options, then try the extension and record message.  
> I understand what each line item is but what got me confused is how 
> the priority number jumps back to 1 when it lists te extensions. 
> What are the exact rules here? When is it OK to decrease priority 
> and why would you?

Think of priorities as line numbers in Basic, but with out gaps.

> 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


[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

exten => 2,1,Hangup

exten => t,1,Goto,s|3

exten => i,1,Goto,s|3



Hope this helps clear it up.
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list