diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-16 08:47:06 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-16 08:47:06 +0000 |
commit | 20cc8387a96393f0583cae71150c6fb3146a0f9c (patch) | |
tree | 1f680371a147be0a27779ccbad3d383df7c98226 /configs | |
parent | 09f5c8d4e6500cf8e46b600a3db64fb110086f46 (diff) |
Add Asterisk Extension Language support (AEL) from Astricon talk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5918 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rwxr-xr-x | configs/extensions.ael.sample | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/configs/extensions.ael.sample b/configs/extensions.ael.sample new file mode 100755 index 000000000..5b224b361 --- /dev/null +++ b/configs/extensions.ael.sample @@ -0,0 +1,62 @@ +// +// Example AEL config file +// + +macro std-exten-ael( ext , dev ) { + Dial(${ext}/${dev},20); + switch(${DIALSTATUS) { + case BUSY: + Voicemail(b${ext}); + break; + default: + Voicemail(u${ext}); + }; + catch a { + VoiceMailMain(${ext}); + return; + }; +}; + +context ael-demo { + s => { + Wait(1); + Answer(); + TIMEOUT(digit)=5; + TIMEOUT(response)=10; +restart: + Background(demo-congrats); +instructions: + for (x=0; ${x} < 3; x=${x} + 1) { + Background(demo-instruct); + WaitExten(); + }; + }; + 2 => { + Background(demo-moreinfo); + goto instructions; + }; + 3 => { + LANGUAGE()=fr; + goto restart; + }; + 500 => { + Playback(demo-abouttotry); + exten => 500,n,Dial(IAX2/guest@misery.digium.com) + Playback(demo-nogo); + goto instructions; + }; + 600 => { + Playback(demo-echotest); + Echo(); + Playback(demo-echodone); + goto instructions; + }; + _1234 => &std-exten-ael(${EXTEN}); + # => { + Playback(demo-thanks); + Hangup(); + }; + t => jump #; + i => Playback(invalid); +}; + |