[asterisk-users] 'System' application in asterisk

Tilghman Lesher tlesher at digium.com
Mon Aug 9 13:47:33 CDT 2010


On Monday 09 August 2010 13:08:19 Tino wrote:
> Is there any  way to capture the output of the 'System' application in
> asterisk dialplan and evaluate it.
>
> For example, i would like to get the output of following System application
> and use its value in next line
> for decision making
>
> exten => 5000,n,System(command)

No, but you may use the SHELL dialplan function in versions which support it:

Set(output=${SHELL(command)})

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list