| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
#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. | |
| struct ao2_container * | ast_get_chan_applicationmap (struct ast_channel *chan) | 
| Get the applicationmap for a given channel. | |
| struct ast_featuremap_config * | ast_get_chan_featuremap_config (struct ast_channel *chan) | 
| Get the featuremap configuration options for a channel. | |
| char * | ast_get_chan_features_atxferabort (struct ast_channel *chan) | 
| Get the transfer configuration option atxferabort. | |
| struct ast_features_general_config * | ast_get_chan_features_general_config (struct ast_channel *chan) | 
| Get the general configuration options for a channel. | |
| struct ast_features_pickup_config * | ast_get_chan_features_pickup_config (struct ast_channel *chan) | 
| Get the pickup configuration options for a channel. | |
| struct ast_features_xfer_config * | ast_get_chan_features_xfer_config (struct ast_channel *chan) | 
| Get the transfer configuration options for a channel. | |
| char * | ast_get_chan_features_xferfailsound (struct ast_channel *chan) | 
| Get the transfer configuration option xferfailsound. | |
| int | ast_get_feature (struct ast_channel *chan, const char *feature, char *buf, size_t len) | 
| Get the DTMF code for a call feature. | |
| #define AST_FEATURE_MAX_LEN 11 | 
Definition at line 231 of file include/asterisk/features_config.h.
| 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 | 
| len | The size of the buffer in bytes | 
| 0 | Success | 
| non-zero | Unrecognized builtin feature name | 
Definition at line 1305 of file features_config.c.
References ao2_cleanup, ao2_global_obj_ref, buf, featuremap_get(), get_feature_ds(), globals, len(), 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 1397 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 1285 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 1250 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 1195 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(), and feature_automixmonitor().
| 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 1265 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(), get_destination(), handle_call_outgoing(), and key_main_page().
| 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 1215 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 1235 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 | 
| len | The size of the buffer in bytes | 
| 0 | Success | 
| non-zero | Unrecognized feature name | 
Definition at line 1322 of file features_config.c.
References ao2_cleanup, ao2_find, ast_copy_string(), ast_get_builtin_feature(), ast_get_chan_applicationmap(), buf, item, len(), NULL, OBJ_KEY, and RAII_VAR.
Referenced by handle_incoming_request().