Asterisk - The Open Source Telephony Project
18.5.0
|
ALSA sound card channel driver. More...
#include "asterisk.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <alsa/asoundlib.h>
#include "asterisk/frame.h"
#include "asterisk/channel.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/config.h"
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/causes.h"
#include "asterisk/endian.h"
#include "asterisk/stringfields.h"
#include "asterisk/abstract_jb.h"
#include "asterisk/musiconhold.h"
#include "asterisk/poll-compat.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Data Structures | |
struct | chan_alsa_pvt |
Macros | |
#define | ALSA_INDEV "default" |
#define | ALSA_OUTDEV "default" |
#define | ALSA_PCM_NEW_HW_PARAMS_API |
#define | ALSA_PCM_NEW_SW_PARAMS_API |
#define | BUFFER_FMT ((buffersize * 10) << 16) | (0x0006); |
#define | DEBUG 0 |
#define | DESIRED_RATE 8000 |
#define | ESTRPIPE EPIPE |
#define | FRAME_SIZE 160 |
#define | MAX_BUFFER_SIZE 100 |
#define | MIN_SWITCH_TIME 600 |
#define | PERIOD_FRAMES 80 /* 80 Frames, at 2 bytes each */ |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | alsa_answer (struct ast_channel *c) |
static int | alsa_call (struct ast_channel *c, const char *dest, int timeout) |
static snd_pcm_t * | alsa_card_init (char *dev, snd_pcm_stream_t stream) |
static int | alsa_digit (struct ast_channel *c, char digit, unsigned int duration) |
static int | alsa_fixup (struct ast_channel *oldchan, struct ast_channel *newchan) |
static int | alsa_hangup (struct ast_channel *c) |
static int | alsa_indicate (struct ast_channel *chan, int cond, const void *data, size_t datalen) |
static struct ast_channel * | alsa_new (struct chan_alsa_pvt *p, int state, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor) |
static struct ast_frame * | alsa_read (struct ast_channel *chan) |
static struct ast_channel * | alsa_request (const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *data, int *cause) |
static int | alsa_text (struct ast_channel *c, const char *text) |
static int | alsa_write (struct ast_channel *chan, struct ast_frame *f) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static char * | console_answer (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | console_autoanswer (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | console_dial (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | console_hangup (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | console_mute (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | console_sendtext (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static void | grab_owner (void) |
static int | load_module (void) |
Load the module. More... | |
static int | soundcard_init (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "ALSA Console Channel Driver" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_CHANNEL_DRIVER, } |
static struct chan_alsa_pvt | alsa |
static struct ast_channel_tech | alsa_tech |
static ast_mutex_t | alsalock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static int | autoanswer = 1 |
static struct ast_cli_entry | cli_alsa [] |
static const char | config [] = "alsa.conf" |
static char | context [AST_MAX_CONTEXT] = "default" |
static struct ast_jb_conf | default_jbconf |
static char | exten [AST_MAX_EXTENSION] = "s" |
static snd_pcm_format_t | format = SND_PCM_FORMAT_S16_BE |
static struct ast_jb_conf | global_jbconf |
static int | hookstate = 0 |
static char | indevname [50] = ALSA_INDEV |
static char | language [MAX_LANGUAGE] = "" |
static char | mohinterpret [MAX_MUSICCLASS] |
static int | mute = 0 |
static int | noaudiocapture = 0 |
static char | outdevname [50] = ALSA_OUTDEV |
static int | readdev = -1 |
static int | silencesuppression = 0 |
static int | silencethreshold = 1000 |
static const char | tdesc [] = "ALSA Console Channel Driver" |
static int | writedev = -1 |
ALSA sound card channel driver.
Definition in file chan_alsa.c.
#define ALSA_INDEV "default" |
Definition at line 83 of file chan_alsa.c.
#define ALSA_OUTDEV "default" |
Definition at line 84 of file chan_alsa.c.
#define ALSA_PCM_NEW_HW_PARAMS_API |
Definition at line 50 of file chan_alsa.c.
#define ALSA_PCM_NEW_SW_PARAMS_API |
Definition at line 51 of file chan_alsa.c.
#define BUFFER_FMT ((buffersize * 10) << 16) | (0x0006); |
Definition at line 94 of file chan_alsa.c.
#define DEBUG 0 |
Definition at line 81 of file chan_alsa.c.
Referenced by __big_split(), and hash_seq().
#define DESIRED_RATE 8000 |
Definition at line 85 of file chan_alsa.c.
Referenced by alsa_card_init().
#define ESTRPIPE EPIPE |
Definition at line 44 of file chan_alsa.c.
Referenced by alsa_read(), and alsa_write().
#define FRAME_SIZE 160 |
Definition at line 88 of file chan_alsa.c.
Referenced by alsa_read().
#define MAX_BUFFER_SIZE 100 |
Definition at line 137 of file chan_alsa.c.
#define MIN_SWITCH_TIME 600 |
Definition at line 97 of file chan_alsa.c.
#define PERIOD_FRAMES 80 /* 80 Frames, at 2 bytes each */ |
Definition at line 89 of file chan_alsa.c.
Referenced by alsa_card_init().
|
static |
Definition at line 1043 of file chan_alsa.c.
|
static |
Definition at line 1043 of file chan_alsa.c.
|
static |
Definition at line 361 of file chan_alsa.c.
References alsa, alsalock, ast_mutex_lock, ast_mutex_unlock, ast_setstate(), AST_STATE_UP, ast_verbose(), chan_alsa_pvt::icard, and noaudiocapture.
|
static |
Definition at line 325 of file chan_alsa.c.
References alsa, alsalock, ast_channel_unlock, AST_CONTROL_ANSWER, AST_CONTROL_RINGING, AST_FRAME_CONTROL, ast_indicate(), ast_mutex_lock, ast_mutex_unlock, ast_queue_frame(), ast_verbose(), autoanswer, grab_owner(), chan_alsa_pvt::icard, ast_frame_subclass::integer, mute, noaudiocapture, chan_alsa_pvt::owner, and ast_frame::subclass.
|
static |
Definition at line 173 of file chan_alsa.c.
References ast_alloca, ast_debug, ast_log, DESIRED_RATE, format, LOG_ERROR, LOG_WARNING, NULL, PERIOD_FRAMES, readdev, and writedev.
Referenced by soundcard_init().
|
static |
Definition at line 299 of file chan_alsa.c.
References alsalock, ast_mutex_lock, ast_mutex_unlock, and ast_verbose().
|
static |
Definition at line 531 of file chan_alsa.c.
References alsalock, ast_channel_tech_pvt(), ast_mutex_lock, ast_mutex_unlock, and chan_alsa_pvt::owner.
|
static |
Definition at line 375 of file chan_alsa.c.
References alsa, alsalock, ast_channel_tech_pvt_set(), ast_module_unref, ast_mutex_lock, ast_mutex_unlock, ast_verbose(), hookstate, chan_alsa_pvt::icard, noaudiocapture, NULL, chan_alsa_pvt::owner, and ast_module_info::self.
|
static |
Definition at line 542 of file chan_alsa.c.
References alsalock, ast_channel_name(), AST_CONTROL_BUSY, AST_CONTROL_CONGESTION, AST_CONTROL_HOLD, AST_CONTROL_INCOMPLETE, AST_CONTROL_PROCEEDING, AST_CONTROL_PROGRESS, AST_CONTROL_PVT_CAUSE_CODE, AST_CONTROL_RINGING, AST_CONTROL_SRCUPDATE, AST_CONTROL_UNHOLD, AST_CONTROL_VIDUPDATE, ast_log, ast_moh_start(), ast_moh_stop(), ast_mutex_lock, ast_mutex_unlock, ast_verbose(), LOG_WARNING, and mohinterpret.
|
static |
Definition at line 580 of file chan_alsa.c.
References ast_channel_alloc, ast_channel_context_set(), ast_channel_exten_set(), ast_channel_name(), ast_channel_nativeformats_set(), ast_channel_set_fd(), ast_channel_set_readformat(), ast_channel_set_writeformat(), ast_channel_stage_snapshot(), ast_channel_stage_snapshot_done(), ast_channel_tech_pvt_set(), ast_channel_tech_set(), ast_channel_unlock, ast_format_slin, ast_hangup(), ast_jb_configure(), ast_log, ast_module_ref, ast_pbx_start(), AST_STATE_DOWN, ast_strlen_zero, ast_channel_tech::capabilities, chan_alsa_pvt::context, chan_alsa_pvt::exten, global_jbconf, indevname, language, LOG_WARNING, NULL, chan_alsa_pvt::owner, readdev, ast_module_info::self, and tmp().
Referenced by alsa_request(), and console_dial().
|
static |
Definition at line 443 of file chan_alsa.c.
References alsa, alsalock, ast_format_slin, AST_FRAME_NULL, AST_FRAME_VOICE, AST_FRIENDLY_OFFSET, ast_log, ast_mutex_lock, ast_mutex_unlock, AST_STATE_UP, buf, ast_frame::data, ast_frame::datalen, ast_frame::delivery, ESTRPIPE, ast_frame_subclass::format, FRAME_SIZE, ast_frame::frametype, chan_alsa_pvt::icard, ast_frame_subclass::integer, LOG_ERROR, ast_frame::mallocd, mute, noaudiocapture, NULL, ast_frame::offset, ast_frame::ptr, ast_frame::samples, ast_frame::src, state, and ast_frame::subclass.
|
static |
Definition at line 620 of file chan_alsa.c.
References alsa, alsa_new(), alsalock, AST_CAUSE_BUSY, ast_format_cap_get_names(), ast_format_cap_iscompatible_format(), AST_FORMAT_CAP_NAMES_LEN, AST_FORMAT_CMP_NOT_EQUAL, ast_format_slin, ast_log, ast_mutex_lock, ast_mutex_unlock, AST_STATE_DOWN, ast_str_alloca, LOG_NOTICE, LOG_WARNING, NULL, chan_alsa_pvt::owner, and tmp().
|
static |
Definition at line 309 of file chan_alsa.c.
References alsalock, ast_mutex_lock, ast_mutex_unlock, and ast_verbose().
|
static |
Definition at line 391 of file chan_alsa.c.
References alsa, alsalock, ast_debug, ast_log, ast_mutex_lock, ast_mutex_unlock, ast_frame::data, ast_frame::datalen, ESTRPIPE, len(), LOG_ERROR, LOG_NOTICE, LOG_WARNING, chan_alsa_pvt::ocard, ast_frame::ptr, and state.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 1043 of file chan_alsa.c.
|
static |
Definition at line 680 of file chan_alsa.c.
References alsa, alsalock, ast_cli_args::argc, ast_channel_unlock, ast_cli(), AST_CONTROL_ANSWER, ast_mutex_lock, ast_mutex_unlock, ast_queue_control(), ast_verbose(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, grab_owner(), hookstate, chan_alsa_pvt::icard, mute, noaudiocapture, NULL, chan_alsa_pvt::owner, and ast_cli_entry::usage.
|
static |
Definition at line 644 of file chan_alsa.c.
References alsalock, ast_cli_args::argc, ast_cli_args::argv, ast_cli(), ast_mutex_lock, ast_mutex_unlock, autoanswer, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, and ast_cli_entry::usage.
|
static |
Definition at line 813 of file chan_alsa.c.
References alsa, alsa_new(), alsalock, ast_cli_args::argc, ast_cli_args::argv, ast_cli(), ast_copy_string(), ast_exists_extension(), AST_FRAME_DTMF, ast_mutex_lock, ast_mutex_unlock, ast_queue_frame(), AST_STATE_RINGING, ast_strlen_zero, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, chan_alsa_pvt::context, d, chan_alsa_pvt::exten, ast_cli_args::fd, ast_frame::frametype, hookstate, NULL, chan_alsa_pvt::owner, strsep(), tmp(), and ast_cli_entry::usage.
|
static |
Definition at line 775 of file chan_alsa.c.
References alsa, alsalock, ast_cli_args::argc, AST_CAUSE_NORMAL_CLEARING, ast_channel_unlock, ast_cli(), ast_mutex_lock, ast_mutex_unlock, ast_queue_hangup_with_cause(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, grab_owner(), hookstate, NULL, chan_alsa_pvt::owner, and ast_cli_entry::usage.
|
static |
Definition at line 878 of file chan_alsa.c.
References ast_cli_args::argc, ast_cli_args::argv, ast_cli(), CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, mute, NULL, and ast_cli_entry::usage.
|
static |
Definition at line 726 of file chan_alsa.c.
References alsa, alsalock, ast_cli_args::argc, ast_cli_args::argv, ast_channel_unlock, ast_cli(), AST_CONTROL_ANSWER, AST_FRAME_TEXT, ast_mutex_lock, ast_mutex_unlock, ast_queue_control(), ast_queue_frame(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_frame::data, ast_frame::datalen, ast_cli_args::fd, grab_owner(), NULL, chan_alsa_pvt::owner, ast_frame::ptr, and ast_cli_entry::usage.
|
static |
Definition at line 318 of file chan_alsa.c.
References alsa, alsalock, ast_channel_trylock, DEADLOCK_AVOIDANCE, and chan_alsa_pvt::owner.
Referenced by alsa_call(), console_answer(), console_hangup(), and console_sendtext().
|
static |
Load the module.
Module loading including tests for configuration or dependencies. This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE, or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails tests return AST_MODULE_LOAD_FAILURE. If the module can not load the configuration file or other non-critical problem return AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
Definition at line 961 of file chan_alsa.c.
References ARRAY_LEN, ast_channel_register(), ast_cli_register_multiple, ast_config_destroy(), ast_config_load, ast_copy_string(), ast_format_cap_alloc, ast_format_cap_append, AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_slin, ast_jb_read_conf(), ast_log, AST_MODFLAG_LOAD_ORDER, AST_MODPRI_CHANNEL_DRIVER, AST_MODULE_INFO(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_EXTENDED, ast_true(), ast_variable_browse(), ast_verb, ASTERISK_GPL_KEY, autoanswer, ast_channel_tech::capabilities, config, CONFIG_STATUS_FILEINVALID, chan_alsa_pvt::context, chan_alsa_pvt::exten, global_jbconf, indevname, language, LOG_ERROR, mohinterpret, mute, ast_variable::name, ast_variable::next, noaudiocapture, outdevname, silencesuppression, silencethreshold, soundcard_init(), unload_module(), and ast_variable::value.
|
static |
Definition at line 279 of file chan_alsa.c.
References alsa, alsa_card_init(), ast_log, chan_alsa_pvt::icard, indevname, LOG_ERROR, noaudiocapture, chan_alsa_pvt::ocard, outdevname, and writedev.
Referenced by load_module().
|
static |
Definition at line 931 of file chan_alsa.c.
References alsa, ao2_cleanup, ARRAY_LEN, ast_channel_unregister(), ast_cli_unregister_multiple(), ast_softhangup(), AST_SOFTHANGUP_APPUNLOAD, ast_channel_tech::capabilities, chan_alsa_pvt::icard, NULL, chan_alsa_pvt::ocard, and chan_alsa_pvt::owner.
Referenced by load_module().
|
static |
Definition at line 1043 of file chan_alsa.c.
|
static |
|
static |
Definition at line 158 of file chan_alsa.c.
|
static |
Definition at line 111 of file chan_alsa.c.
Referenced by alsa_answer(), alsa_call(), alsa_digit(), alsa_fixup(), alsa_hangup(), alsa_indicate(), alsa_read(), alsa_request(), alsa_text(), alsa_write(), console_answer(), console_autoanswer(), console_dial(), console_hangup(), console_sendtext(), and grab_owner().
|
static |
Definition at line 1043 of file chan_alsa.c.
|
static |
Definition at line 143 of file chan_alsa.c.
Referenced by alsa_call(), console_autoanswer(), and load_module().
|
static |
Definition at line 922 of file chan_alsa.c.
|
static |
Definition at line 114 of file chan_alsa.c.
Referenced by load_module().
|
static |
Definition at line 116 of file chan_alsa.c.
Referenced by __ast_channel_alloc_ap(), __ast_goto_if_exists(), __sip_alloc(), acf_isexten_exec(), acf_vm_info(), action_atxfer(), action_blind_transfer(), action_dialplan_exec(), action_extensionstate(), action_originate(), action_redirect(), add_action_to_menu_entry(), advanced_options(), append_mailbox_mapping(), ast_ari_channels_continue_in_dialplan(), ast_bridge_setup_after_goto(), ast_cdr_fork(), ast_channel_by_exten_cb(), ast_channel_yank(), ast_compile_ael2(), ast_get_enum(), ast_log(), ast_msg_alloc(), ast_msg_set_context(), ast_res_pjsip_initialize_configuration(), ast_sip_cli_print_sorcery_objectset(), ast_walk_context_includes(), ast_xml_query(), attended_transfer_exec(), base_process_party_a(), blind_transfer_exec(), bridge_exec(), build_peer(), cdr_object_create_and_append(), channel_snapshot_dialplan_create(), check_access(), check_peer_ok(), cli_aor_print_body(), cli_aor_print_header(), cli_channel_print_body(), cli_channel_print_header(), cli_channelstats_print_body(), cli_channelstats_print_header(), cli_contact_print_body(), cli_contact_print_header(), cli_endpoint_print_body(), cli_endpoint_print_header(), cli_print_body(), cli_print_header(), cli_unid_print_body(), cli_unid_print_header(), complete_dialplan_add_include(), complete_dialplan_remove_extension(), complete_dialplan_remove_include(), conf_run(), config_parse_variables(), create_addr_from_peer(), create_queue_member(), delete_existing_cb(), disa_exec(), dns_system_resolver_add_record(), dns_system_resolver_set_response(), dundi_do_lookup(), dundi_do_precache(), dundi_do_query(), dundi_exec(), dundi_helper(), dundi_show_cache(), dundi_show_hints(), ebl_callback(), enum_callback(), eval_exten_read(), extenspy_exec(), extstate_read(), find_label_in_current_db(), free_zone(), get_also_info(), get_cid_name(), get_destination(), get_transfer_context(), goto_parser(), handle_blind_transfer(), handle_cli_dialplan_remove_extension(), handle_request_bye(), handle_request_invite(), handle_request_options(), handle_request_refer(), has_voicemail(), hint_read(), iax2_call(), iax2_transfer(), inboxcount2(), init_queue(), inprocess_count(), ip_identify_match_srv_lookup(), isexten_function_read(), launch_ha_netscript(), leave_voicemail(), load_module(), local_alloc(), local_devicestate(), log_exec(), lua_pbx_exec(), lua_register_hints(), lua_register_switches(), lua_sort_extensions(), manager_dialplan_extension_add(), manager_dialplan_extension_remove(), manager_show_dialplan(), mb_poll_thread(), messagecount(), mwi_to_event(), orig_exten(), pbx_builtin_background(), pbx_find_extension(), pbx_parseable_goto(), pickup_exec(), play_message(), print_uri_debug(), process_ast_dsp(), publish_mwi_to_stasis(), pubsub_on_rx_mwi_notify_request(), pvalGotoSetTarget(), queue_mwi_event(), queue_set_param(), readexten_exec(), receive_message(), refer_incoming_attended_request(), refer_incoming_blind_request(), register_exten(), register_peer_exten(), reload(), reload_config(), retrydial_exec(), rx_data_to_ast_msg(), set_peer_defaults(), setup_peer_after_bridge_goto(), socket_process_helper(), str2tech(), try_redirect(), txt_callback(), unregister_exten(), vm_allocate_dh(), vm_sayname(), vmsayname_exec(), and wait_for_answer().
|
static |
Global jitterbuffer configuration - by default, jb is disabled
Definition at line 72 of file chan_alsa.c.
|
static |
Definition at line 118 of file chan_alsa.c.
Referenced by __analog_ss_thread(), __ast_channel_alloc_ap(), action_atxfer(), action_blind_transfer(), action_dialplan_exec(), action_extensionstate(), action_originate(), action_redirect(), add_action_to_menu_entry(), analog_ss_thread(), ast_ari_channels_continue_in_dialplan(), ast_bridge_setup_after_goto(), ast_cdr_fork(), ast_channel_by_exten_cb(), ast_channel_yank(), ast_compile_ael2(), ast_ivr_menu_run_internal(), ast_log(), ast_msg_set_exten(), AST_TEST_DEFINE(), ast_walk_extension_priorities(), attended_transfer_exec(), base_process_party_a(), blind_transfer_exec(), cdr_object_create_and_append(), channel_snapshot_dialplan_create(), check_access(), check_user_full(), complete_dialplan_remove_extension(), complete_dpreply(), config_parse_variables(), context_used(), copy_plain_file(), create_queue_member(), delete_existing_cb(), dialandactivatesub(), disa_exec(), eval_exten_read(), expand_gosub_args(), extenspy_exec(), extstate_read(), feature_attended_transfer(), find_label_in_current_context(), find_label_in_current_db(), gen_prios(), get_cid_name(), get_destination(), get_rdnis(), goto_parser(), handle_blind_transfer(), handle_cli_dialplan_add_extension(), handle_cli_dialplan_remove_extension(), handle_request_invite(), hint_read(), initreqprep(), isexten_function_read(), leave_voicemail(), linkprio(), local_devicestate(), lua_pbx_exec(), lua_sort_extensions(), manager_dialplan_extension_add(), manager_dialplan_extension_remove(), mgcp_ss(), my_new_analog_ast_channel(), my_on_hook(), new_iax(), onedigit_goto(), options_on_rx_request(), orig_exten(), originate_exec(), osplookup_exec(), pbx_builtin_background(), pickup_exec(), pp_each_extension_helper(), readexten_exec(), refer_incoming_blind_request(), register_verify(), reload(), rx_data_to_ast_msg(), session_inv_on_redirected(), sip_new(), sip_request_call(), sla_build_station(), sla_station_destructor(), socket_process_helper(), test_vm_api_destroy_mailbox_voicemails(), test_vm_api_test_setup(), test_vm_api_update_test_snapshots(), transmit_notify_with_mwi(), transmit_register(), user_destructor(), vm_msg_snapshot_create(), and waitstream_core().
|
static |
Definition at line 102 of file chan_alsa.c.
Referenced by __stub__ast_agi_unregister_multiple(), acf_sprintf(), acf_strftime(), acf_strptime(), FaxPcap::add(), add_format_information_cb(), add_sdp(), alsa_card_init(), ao2_container_unregister(), apply_cap_to_bundled(), ast_add_profile(), ast_ari_recordings_get_stored_file(), ast_format_attribute_set(), ast_format_cache_get_by_codec(), ast_format_create_named(), ast_get_number_str(), ast_monitor_stop(), ast_openvstream(), ast_rtp_codecs_get_payload_format(), ast_rtp_codecs_payload_replace_format(), ast_rtp_write(), ast_strftime_locale(), AST_TEST_DEFINE(), build_peer(), build_profile(), build_user(), check_header(), check_header_fmt(), configure_local_rtp(), create_addr(), create_outgoing_sdp_stream(), dialog_unlink_all(), does_id_conflict(), file_count_line(), file_read(), file_write(), format_destroy(), format_hash_cb(), get_codecs(), get_soxmix_format(), handle_clear_alarms(), handle_saydatetime(), iax2_codec_choose(), iax2_codec_pref_best_bitfield2cap(), iax2_codec_pref_from_bitfield(), iax2_format_compatibility_bitfield2cap(), iax2_format_compatibility_cap2bitfield(), iax2_request(), jingle_add_payloads_to_description(), spandspflow2pcap::main(), minivm_notify_exec(), multicast_rtp_write(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), process_sdp_a_audio(), process_sdp_a_video(), reload_config(), sayunixtime_exec(), sendmail(), set_config(), set_format(), show_sound_info_cb(), socket_process_helper(), start_monitor_action(), start_monitor_exec(), AllowableRange::to_wiki(), AllowableList::to_wiki(), transmit_connect_with_sdp(), transmit_modify_request(), transmit_modify_with_sdp(), fe6592859b85_fix_mwi_subscribe_replaces_::upgrade(), and vm_allocate_dh().
|
static |
Definition at line 79 of file chan_alsa.c.
Referenced by alsa_new(), and load_module().
|
static |
Definition at line 121 of file chan_alsa.c.
Referenced by alsa_hangup(), console_answer(), console_dial(), and console_hangup().
|
static |
Definition at line 105 of file chan_alsa.c.
Referenced by alsa_new(), load_module(), and soundcard_init().
|
static |
Definition at line 117 of file chan_alsa.c.
Referenced by add_format_information_cb(), alsa_new(), ari_bridges_play_helper(), ari_channels_handle_play(), ast_get_number_str(), ast_res_pjsip_initialize_configuration(), build_peer(), channel_snapshot_base_create(), check_peer_ok(), conf_load_config(), create_addr_from_peer(), func_channel_write_real(), load_module(), set_peer_defaults(), and show_sound_info_cb().
|
static |
Definition at line 119 of file chan_alsa.c.
Referenced by __sip_alloc(), alsa_indicate(), build_peer(), check_peer_ok(), create_addr_from_peer(), load_module(), and set_peer_defaults().
|
static |
Definition at line 144 of file chan_alsa.c.
Referenced by action_toggle_mute(), action_toggle_mute_participants(), alsa_call(), alsa_read(), console_answer(), console_mute(), dahdi_read(), dtmf_detect(), load_module(), mf_detect(), send_mute(), send_select_output(), stasis_app_control_mute_in_bridge(), and tone_detect().
|
static |
Definition at line 145 of file chan_alsa.c.
Referenced by alsa_answer(), alsa_call(), alsa_hangup(), alsa_read(), console_answer(), load_module(), and soundcard_init().
|
static |
Definition at line 106 of file chan_alsa.c.
Referenced by load_module(), and soundcard_init().
|
static |
Definition at line 140 of file chan_alsa.c.
Referenced by alsa_card_init(), and alsa_new().
|
static |
Definition at line 108 of file chan_alsa.c.
Referenced by load_module().
|
static |
Definition at line 109 of file chan_alsa.c.
Referenced by load_module().
|
static |
Definition at line 113 of file chan_alsa.c.
|
static |
Definition at line 141 of file chan_alsa.c.
Referenced by alsa_card_init(), and soundcard_init().