def executeCommand(self, command):
self._sendAction("<STR_LIT>", (<EOL>("<STR_LIT>", command),<EOL>))<EOL>resp = self._getResponse()<EOL>result = resp.get("<STR_LIT>")<EOL>if result == "<STR_LIT>":<EOL><INDENT>return resp.get("<STR_LIT>")<EOL><DEDENT>elif result == "<STR_LIT>":<EOL><INDENT>raise Exception("<STR_LIT>"<EOL>"<STR_LIT>" % <EOL>(command, str(resp.get("<STR_LIT>"))))<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>"<EOL>"<STR_LIT>" % command)<EOL><DEDENT>
Send Action to Asterisk Manager Interface to execute CLI Command.

        @param command: CLI command to execute.
        @return:        Command response string.