[Asterisk-Users] Invalid/Timeout handlers in ael?
John Biundo
johnbiundo at sbcglobal.net
Thu Nov 3 17:32:09 MST 2005
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;
}
};
More information about the asterisk-users
mailing list