[Asterisk-Users] system() app changed drastically! How do I use
it now?
Jim Gottlieb
jimmy at nccom.com
Mon Sep 26 19:22:16 MST 2005
On 2005-09-26 at 18:15, Jim Gottlieb (jimmy at nccom.com) wrote:
> But since (as far as I know, without using AEL) there is no conditional
> branching based on a variable, how am I supposed to use this?
OK, I forgot about GotoIf. However, the doc is wrong (or at least
incomplete), because it only mentions SUCCESS and FAILURE, but I'm
finding SYSTEMSTATUS set to APPERROR.
So I'm doing:
exten => s,5,GotoIf($["${SYSTEMSTATUS}" = "APPERROR"]?105:6)
More information about the asterisk-users
mailing list