Asterisk - The Open Source Telephony Project
21.4.1
|
Call Parking Manager Actions and Events. More...
#include "asterisk.h"
#include "res_parking.h"
#include "asterisk/config.h"
#include "asterisk/config_options.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/cli.h"
#include "asterisk/astobj2.h"
#include "asterisk/features.h"
#include "asterisk/manager.h"
#include "asterisk/bridge.h"
Go to the source code of this file.
Data Structures | |
struct | park_list_data |
Functions | |
int | load_parking_manager (void) |
Register manager actions and setup subscriptions for stasis events. More... | |
static int | manager_append_event_parking_lot_data_cb (void *obj, void *arg, void *data, int flags) |
static struct ast_str * | manager_build_parked_call_string (const struct ast_parked_call_payload *payload) |
Builds a manager string based on the contents of a parked call payload. | |
static int | manager_park (struct mansession *s, const struct message *m) |
static void | manager_park_bridged (struct mansession *s, const struct message *m, struct ast_channel *chan, struct ast_channel *parker_chan, const char *parkinglot, int timeout_override) |
static void | manager_park_unbridged (struct mansession *s, const struct message *m, struct ast_channel *chan, const char *parkinglot, int timeout_override) |
static int | manager_parking_lot_list (struct mansession *s, const struct message *m) |
static int | manager_parking_status (struct mansession *s, const struct message *m) |
static void | manager_parking_status_all_lots (struct mansession *s, const struct message *m, const char *id_text) |
static void | manager_parking_status_single_lot (struct mansession *s, const struct message *m, const char *id_text, const char *lot_name) |
static void | parked_call_message_response (struct ast_parked_call_payload *parked_call) |
static struct ast_parked_call_payload * | parked_call_payload_from_failure (struct ast_channel *chan) |
static struct ast_parked_call_payload * | parked_call_payload_from_parked_user (struct parked_user *pu, enum ast_parked_call_event_type event_type) |
static void | parking_event_cb (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
static void | parking_manager_disable_stasis (void) |
static void | parking_manager_enable_stasis (void) |
void | publish_parked_call (struct parked_user *pu, enum ast_parked_call_event_type event_type) |
Publish a stasis parked call message for a given parked user. More... | |
void | publish_parked_call_failure (struct ast_channel *parkee) |
Publish a stasis parked call message for the channel indicating failure to park. More... | |
void | unload_parking_manager (void) |
Unregister manager actions and remove subscriptions for stasis events. More... | |
Variables | |
static struct stasis_subscription * | parking_sub |
subscription to the parking lot topic | |
Call Parking Manager Actions and Events.
Definition in file parking_manager.c.
int load_parking_manager | ( | void | ) |
Register manager actions and setup subscriptions for stasis events.
Definition at line 704 of file parking_manager.c.
References ast_manager_register_xml.
void publish_parked_call | ( | struct parked_user * | pu, |
enum ast_parked_call_event_type | event_type | ||
) |
Publish a stasis parked call message for a given parked user.
pu | pointer to a parked_user that we are generating the message for |
event_type | What parked call event type is provoking this message |
Definition at line 627 of file parking_manager.c.
References ast_parked_call_type(), ast_parking_topic(), RAII_VAR, stasis_message_create(), and stasis_publish().
void publish_parked_call_failure | ( | struct ast_channel * | parkee | ) |
Publish a stasis parked call message for the channel indicating failure to park.
parkee | channel belonging to the failed parkee |
Definition at line 605 of file parking_manager.c.
References ast_parked_call_type(), ast_parking_topic(), RAII_VAR, stasis_message_create(), and stasis_publish().
void unload_parking_manager | ( | void | ) |
Unregister manager actions and remove subscriptions for stasis events.
Definition at line 720 of file parking_manager.c.
References ast_manager_unregister().