Alexander Lopez
2005-Sep-26 19:30 UTC
[Asterisk-Users] system() app changed drastically! How do I useit now?
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@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Jim Gottlieb > Sent: Monday, September 26, 2005 10:22 PM > To: asterisk-users@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@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@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 > >
Apparently Analagous Threads
- system() app changed drastically! How do I use it now?
- system() app changed drastically! How do I use itnow?
- Inconsistent Behavior in SYSTEMSTATUS After System() Call
- VOICEMAIL : I've tried a lot but mailing through Asterisk is just not working...
- [LLVMdev] Confusion with GetElementPtr and Defs/Uses