Engine.command
(Created page with "This message is used to send commands from the Remote Manager or from the command line. An alternative form of this message is used to perform command line completion. This m...") |
Revision as of 16:15, 8 October 2012
This message is used to send commands from the Remote Manager or from the command line. An alternative form of this message is used to perform command line completion.
This message is always dispatched synchronously.
Mandatory parameters
line
- the text of the command line supplied from Remote Manager. If this parameter is missing the message requests a line completion
partial
- the partial line that should be completed
partline
- the partial line without the last, incomplete, word
partword
- the partial word that is currently completed
Return value
A module that handles the command should acknowledge the message. This is not required for command completion.
The textual return value is displayed either to the requesting remote client or to the logging output (for commands placed on the command line). The lines must be terminated by CR LF (DOS style). For completion requests a list of tab-separated suitable matches should be returned.
Examples
"line"="debug sip level 8"
returns: "Module sip debug on level 8^M^J"
"partial"="debug s" "partline"="debug" "partword"="s"
returns: "sip^Iss7"