Skip to end of metadata
Go to start of metadata

System()

Synopsis

Execute a system command.

Description

Executes a command by using system(). If the command fails, the console should report a fallthrough.

Result of execution is returned in the SYSTEMSTATUS channel variable:

  • SYSTEMSTATUS
    • FAILURE - Could not execute the specified command.
    • SUCCESS - Specified command successfully executed.

Syntax

System(command)
Arguments
  • command - Command to execute

    Warning

    Icon

    Do not use untrusted strings such as CALLERID(num) or CALLERID(name) as part of the command parameters. You risk a command injection attack executing arbitrary commands if the untrusted strings aren't filtered to remove dangerous characters. See function FILTER().

See Also

Import Version

This documentation was imported from Asterisk Version GIT-13-13.15.0-rc1-1494-g6dbecc2319

  • No labels