#include <ccss.h>
Data Fields | |
void(* | ack )(struct ast_cc_agent *agent) |
Acknowledge CC request. | |
int(* | callee_available )(struct ast_cc_agent *agent) |
Alert the caller that it is time to try recalling. | |
void(* | destructor )(struct ast_cc_agent *agent) |
Destroy private data on the agent. | |
int(* | init )(struct ast_cc_agent *agent, struct ast_channel *chan) |
CC agent initialization. | |
int(* | party_b_free )(struct ast_cc_agent *agent) |
Let the caller know that the callee has become free but that the caller cannot attempt to call back because he is either busy or there is congestion on his line. | |
int(* | start_monitoring )(struct ast_cc_agent *agent) |
Begin monitoring a busy device. | |
int(* | start_offer_timer )(struct ast_cc_agent *agent) |
Start the offer timer. | |
int(* | status_request )(struct ast_cc_agent *agent) |
Request the status of the agent's device. | |
int(* | stop_offer_timer )(struct ast_cc_agent *agent) |
Stop the offer timer. | |
int(* | stop_ringing )(struct ast_cc_agent *agent) |
Request for an agent's phone to stop ringing. | |
const char * | type |
Type of agent the callbacks belong to. |
Definition at line 861 of file ccss.h.
void(* ack)(struct ast_cc_agent *agent) |
Acknowledge CC request.
agent | CC core agent control. |
The duty of this is to accept a CC request from the caller by acknowledging receipt of that request.
Referenced by cc_active().
int(* callee_available)(struct ast_cc_agent *agent) |
Alert the caller that it is time to try recalling.
agent | CC core agent control. |
The agent's job is to send a message to the caller to notify it of such a change. If the agent is able to discern that the caller is currently unavailable, then the agent should react by calling the ast_cc_caller_unavailable function.
0 | on success. | |
-1 | on error. |
Referenced by cc_callee_ready().
void(* destructor)(struct ast_cc_agent *agent) |
Destroy private data on the agent.
agent | CC core agent control. |
Referenced by agent_destroy().
int(* init)(struct ast_cc_agent *agent, struct ast_channel *chan) |
CC agent initialization.
agent | CC core agent control. | |
chan | Original channel the agent will attempt to recall. |
0 | on success. | |
-1 | on error. |
int(* party_b_free)(struct ast_cc_agent *agent) |
Let the caller know that the callee has become free but that the caller cannot attempt to call back because he is either busy or there is congestion on his line.
agent | CC core agent control. |
0 | on success. | |
-1 | on error. |
Referenced by cc_party_b_free().
int(* start_monitoring)(struct ast_cc_agent *agent) |
Begin monitoring a busy device.
agent | CC core agent control. |
0 | on success. | |
-1 | on error. |
Referenced by cc_caller_busy().
int(* start_offer_timer)(struct ast_cc_agent *agent) |
Start the offer timer.
agent | CC core agent control. |
The primary reason why this functionality is left to the specific agent implementations is due to the differing use of schedulers throughout the code. Some channel drivers may already have a scheduler context they wish to use, and amongst those, some may use the ast_sched API while others may use the ast_sched_thread API, which are incompatible.
0 | on success. | |
-1 | on error. |
Referenced by cc_caller_offered().
int(* status_request)(struct ast_cc_agent *agent) |
Request the status of the agent's device.
agent | CC core agent control. |
0 | on success. | |
-1 | on error. |
Referenced by cc_status_request().
int(* stop_offer_timer)(struct ast_cc_agent *agent) |
Stop the offer timer.
agent | CC core agent control. |
0 | on success. | |
-1 | on error. |
Referenced by cc_caller_requested().
int(* stop_ringing)(struct ast_cc_agent *agent) |
Request for an agent's phone to stop ringing.
agent | CC core agent control. |
0 | on success. | |
-1 | on error. |
Referenced by cc_stop_ringing().
const char* type |
Type of agent the callbacks belong to.
Definition at line 868 of file ccss.h.
Referenced by cc_agent_callback_helper(), cccancel_exec(), ccreq_exec(), and find_agent_callbacks().