System( )


System( ) Executes an operating system command

 System(   command   ) 

Executes a command in the underlying operating system. If the command itself executes but is in error, and if there exists a priority n +101 (where n is the current priority), the execution of the dialplan will continue at that priority level.

This application is very similar to the trySystem( ) application, except that it will return -1 if it is unable to execute the system command, whereas the trySystem( ) application will always return .

  exten => 123,1,System(echo hello > /tmp/hello.txt)  

See Also

TrySystem( )



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net