[asterisk-users] 'System' application in asterisk

Steve Edwards asterisk.org at sedwards.com
Tue Aug 10 02:12:56 CDT 2010


Un-top-posting...

On Tue, 10 Aug 2010, Tino wrote:

> >Is there any  way to capture the output of the 'System' application in 
> >asterisk dialplan and evaluate it.

> On Mon, Aug 9, 2010 at 11:51 PM, Danny Nicholas <danny at debsinc.com> 
> wrote:

> I think this answer is no.  system only returns ${SYSTEMSTATUS} as 
> SUCCESS or FAILURE to tell you that the command finished or died.  You 
> could however do a bash AGI that would set a variable with the result of 
> what you would have sent to system

On Tue, 10 Aug 2010, Tino wrote:

> Sorry Dany, I am new to agi scripting. If you do not mind can you please 
> give me a sample script for this. That would be really helpful to me.

Unless the output from your system command is trivial, you should parse it 
in the AGI and set channel variables as needed.

If you provide a bit more detail, you may get a more specific answer. 
System() may not be the "best" approach.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list