#include <astxx/manager/action/command.h>


This action is some what of a hack. If possible use manager actions instead of CLI commands.
Definition at line 41 of file command.h.
Public Member Functions | |
| message::action | action () const |
| Format this command as a header for sending to Asterisk. | |
| virtual void | action_id (const std::string &id) |
| Set the ActionID for this action. | |
| virtual std::string | action_id () const |
| Get the ActionID for this action. | |
| command (const std::string &command) | |
| Execute an Asterisk CLI command. | |
| message::response | handle_response (message::response response) |
| Handle the response from Asterisk. | |
| message::response | operator() (connection &c) |
| Send this action over this connection and handle the response. | |
| std::string | result () |
| Get the result of the command. | |
| astxx::manager::action::command::command | ( | const std::string & | command | ) | [inline] |
| message::action astxx::manager::action::command::action | ( | ) | const [inline, virtual] |
Format this command as a header for sending to Asterisk.
This function is called by manager::connection::send_action() to get the data to send to Asterisk.
Implements astxx::manager::basic_action.
| virtual std::string astxx::manager::basic_action::action_id | ( | ) | const [inline, virtual, inherited] |
Get the ActionID for this action.
Definition at line 62 of file basic_action.h.
Referenced by astxx::manager::action::status::action(), and astxx::manager::connection::send_action_async().
| message::response astxx::manager::action::command::handle_response | ( | message::response | response | ) | [inline, virtual] |
Handle the response from Asterisk.
| response | the response |
Reimplemented from astxx::manager::basic_action.
Definition at line 59 of file command.h.
References astxx::manager::message::basic_message< message_traits >::data, and astxx::manager::basic_action::handle_response().
| message::response astxx::manager::basic_action::operator() | ( | connection & | c | ) | [inherited] |
Send this action over this connection and handle the response.
| c | the connection to use |
Definition at line 103 of file basic_action.cc.
References astxx::manager::basic_action::handle_response().
| std::string astxx::manager::action::command::result | ( | ) | [inline] |
1.5.6