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
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users