[Asterisk-cvs] asterisk/configs extensions.ael.sample,NONE,1.1

markster at lists.digium.com markster at lists.digium.com
Thu Jun 16 04:45:43 CDT 2005


Update of /usr/cvsroot/asterisk/configs
In directory mongoose.digium.com:/tmp/cvs-serv22688/configs

Added Files:
	extensions.ael.sample 
Log Message:
Add Asterisk Extension Language support (AEL) from Astricon talk


--- NEW FILE: extensions.ael.sample ---
//
// 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 at 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);
};





More information about the svn-commits mailing list