[Asterisk-Users] system() app changed drastically! How do I useit
now?
Alexander Lopez
alex.lopez at opsys.com
Mon Sep 26 19:30:31 MST 2005
It would be prudent the test for success and continue rather than
failure and drop.
For example:
exten => s,5,GotoIf($["${SYSTEMSTATUS}" != "SUCCESS"]?105:6)
That way only the result that you know is good, Will continue a call..
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Jim Gottlieb
> Sent: Monday, September 26, 2005 10:22 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] system() app changed
> drastically! How do I useit now?
>
> 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)
> _______________________________________________
> --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
>
>
More information about the asterisk-users
mailing list