[Asterisk-Users] Invalid/Timeout handlers in ael?

Sergey Okhapkin sos at sokhapkin.dyndns.org
Thu Nov 3 17:47:42 MST 2005


As far as I (don't:-) understand asterisk sources, extensions 't' and
'i' can be used in _context_ only, but not in macro. Application
voicemail has a special handling for 'a' extension to allow it in macro.

On Thu, 2005-11-03 at 16:32 -0800, John Biundo wrote:

> Does anybody know how to code invalid and timeout handlers in ael macros?
> 
> I tried the following, but no luck.
> 
> =========
> macro call-screen() {
> 	NoOp(Macro call-screen);
> 	Background(privacy-screening-unidentified-calls);
> tryagain:
> 	Playback(pls-rcrd-name-at-tone);
> 	Set(SCREEN_FILE=/tmp/screen-${EPOCH});
> 	Record(${SCREEN_FILE}.wav,6,25);
> 	catch i {
> 		NoOp(invalid?);
> 		goto tryagain;
> 	}
> 	catch t {
> 		NoOp(timeout?);
> 		goto tryagain;
> 	}
> };
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051103/c6cb3796/attachment.htm


More information about the asterisk-users mailing list