Asterisk - The Open Source Telephony Project
18.5.0
|
#include "asterisk/stringfields.h"
Go to the source code of this file.
Data Structures | |
struct | ast_applicationmap_item |
An applicationmap configuration item. More... | |
struct | ast_featuremap_config |
Configuration for the builtin features. More... | |
struct | ast_features_general_config |
General features configuration items. More... | |
struct | ast_features_pickup_config |
Configuration relating to call pickup. More... | |
struct | ast_features_xfer_config |
Feature configuration relating to transfers. More... | |
Macros | |
#define | AST_FEATURE_MAX_LEN 11 |
Functions | |
int | ast_get_builtin_feature (struct ast_channel *chan, const char *feature, char *buf, size_t len) |
Get the DTMF code for a builtin feature. More... | |
struct ao2_container * | ast_get_chan_applicationmap (struct ast_channel *chan) |
Get the applicationmap for a given channel. More... | |
struct ast_featuremap_config * | ast_get_chan_featuremap_config (struct ast_channel *chan) |
Get the featuremap configuration options for a channel. More... | |
char * | ast_get_chan_features_atxferabort (struct ast_channel *chan) |
Get the transfer configuration option atxferabort. More... | |
struct ast_features_general_config * | ast_get_chan_features_general_config (struct ast_channel *chan) |
Get the general configuration options for a channel. More... | |
struct ast_features_pickup_config * | ast_get_chan_features_pickup_config (struct ast_channel *chan) |
Get the pickup configuration options for a channel. More... | |
struct ast_features_xfer_config * | ast_get_chan_features_xfer_config (struct ast_channel *chan) |
Get the transfer configuration options for a channel. More... | |
char * | ast_get_chan_features_xferfailsound (struct ast_channel *chan) |
Get the transfer configuration option xferfailsound. More... | |
int | ast_get_feature (struct ast_channel *chan, const char *feature, char *buf, size_t len) |
Get the DTMF code for a call feature. More... | |
#define AST_FEATURE_MAX_LEN 11 |
Definition at line 231 of file include/asterisk/features_config.h.
Referenced by action_atxfer(), attended_transfer_exec(), bridge_agent_hold_push(), builtin_features_helper(), detect_disconnect(), handle_incoming_request(), handle_request_info(), and wait_for_answer().
int ast_get_builtin_feature | ( | struct ast_channel * | chan, |
const char * | feature, | ||
char * | buf, | ||
size_t | len | ||
) |
Get the DTMF code for a builtin feature.
If no channel is provided, then the global setting for the option is returned.
chan | The channel to get the option from | |
feature | The short name of the feature (as it appears in features.conf) | |
[out] | buf | The buffer to write the DTMF value into |
size | The size of the buffer in bytes |
0 | Success |
non-zero | Unrecognized builtin feature name |
Definition at line 1233 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, featuremap_get(), get_feature_ds(), globals, NULL, and RAII_VAR.
Referenced by action_atxfer(), ast_get_feature(), attended_transfer_exec(), builtin_feature_get_exten(), detect_disconnect(), and internal_featuremap_read().
struct ao2_container* ast_get_chan_applicationmap | ( | struct ast_channel * | chan | ) |
Get the applicationmap for a given channel.
This uses the value of the DYNAMIC_FEATURES channel variable to build a custom applicationmap for this channel. The returned container has applicationmap_items inside.
chan | The channel for which applicationmap is being retrieved. |
NULL | An error occurred or the channel has no dynamic features. |
non-NULL | A container of applicationmap_items pertaining to the channel. |
Definition at line 1325 of file features_config.c.
References add_item(), ao2_callback, ao2_cleanup, ao2_container_count(), ao2_find, ao2_global_obj_ref, ao2_link, ao2_ref, applicationmap_alloc(), ast_assert, ast_channel_name(), ast_log, ast_strdupa, ast_strlen_zero, globals, item, LOG_WARNING, name, NULL, OBJ_KEY, pbx_builtin_getvar_helper(), RAII_VAR, S_OR, and strsep().
Referenced by ast_get_feature(), set_config_flags(), and setup_bridge_features_dynamic().
struct ast_featuremap_config* ast_get_chan_featuremap_config | ( | struct ast_channel * | chan | ) |
Get the featuremap configuration options for a channel.
If no channel is provided, then the global featuremap configuration is returned.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The pickup features configuration |
Definition at line 1213 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, ao2_ref, ast_assert, get_feature_ds(), globals, NULL, and RAII_VAR.
Referenced by testsuite_notify_feature_success().
char* ast_get_chan_features_atxferabort | ( | struct ast_channel * | chan | ) |
Get the transfer configuration option atxferabort.
If no channel is provided, then option is pulled from the global transfer configuration.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The atxferabort |
Definition at line 1178 of file features_config.c.
References ao2_ref, ast_get_chan_features_xfer_config(), ast_strdup, ast_features_xfer_config::atxferabort, and NULL.
Referenced by action_cancel_atxfer().
struct ast_features_general_config* ast_get_chan_features_general_config | ( | struct ast_channel * | chan | ) |
Get the general configuration options for a channel.
If no channel is provided, then the global features configuration is returned.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The general features configuration |
Definition at line 1123 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, ao2_ref, ast_assert, get_feature_ds(), globals, NULL, and RAII_VAR.
Referenced by bridge_channel_feature_digit_timeout(), feature_automixmonitor(), and feature_automonitor().
struct ast_features_pickup_config* ast_get_chan_features_pickup_config | ( | struct ast_channel * | chan | ) |
Get the pickup configuration options for a channel.
If no channel is provided, then the global pickup configuration is returned.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The pickup features configuration |
Definition at line 1193 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, ao2_ref, ast_assert, get_feature_ds(), globals, NULL, and RAII_VAR.
Referenced by __analog_ss_thread(), analog_ss_thread(), ast_pickup_call(), call_pickup_incoming_request(), cb_events(), get_destination(), handle_call_outgoing(), handle_request_invite(), key_main_page(), and mgcp_ss().
struct ast_features_xfer_config* ast_get_chan_features_xfer_config | ( | struct ast_channel * | chan | ) |
Get the transfer configuration options for a channel.
If no channel is provided, then the global transfer configuration is returned.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The transfer features configuration |
Definition at line 1143 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, ao2_ref, ast_assert, get_feature_ds(), globals, NULL, and RAII_VAR.
Referenced by action_bridge(), add_transferer_role(), ast_get_chan_features_atxferabort(), ast_get_chan_features_xferfailsound(), attended_transfer_properties_alloc(), bridge_exec(), grab_transfer(), and testsuite_notify_feature_success().
char* ast_get_chan_features_xferfailsound | ( | struct ast_channel * | chan | ) |
Get the transfer configuration option xferfailsound.
If no channel is provided, then option is pulled from the global transfer configuration.
chan | The channel to get configuration options for |
NULL | Failed to get configuration |
non-NULL | The xferfailsound |
Definition at line 1163 of file features_config.c.
References ao2_ref, ast_get_chan_features_xfer_config(), ast_strdup, NULL, and ast_features_xfer_config::xferfailsound.
Referenced by play_failsound(), and stream_failsound().
int ast_get_feature | ( | struct ast_channel * | chan, |
const char * | feature, | ||
char * | buf, | ||
size_t | len | ||
) |
Get the DTMF code for a call feature.
If no channel is provided, then the global setting for the option is returned.
This function is like ast_get_builtin_feature except that it will also check the applicationmap in addition to the builtin features.
chan | The channel to get the option from | |
feature | The short name of the feature | |
[out] | buf | The buffer to write the DTMF value into |
size | The size of the buffer in bytes |
0 | Success |
non-zero | Unrecognized feature name |
Definition at line 1250 of file features_config.c.
References ao2_cleanup, ao2_find, ast_copy_string(), ast_get_builtin_feature(), ast_get_chan_applicationmap(), item, NULL, OBJ_KEY, and RAII_VAR.
Referenced by handle_incoming_request(), and handle_request_info().