Thu Oct 11 06:44:42 2012

Asterisk developer's documentation


ast_frame Struct Reference

Data structure associated with a single frame of data. More...

#include <frame.h>

Collaboration diagram for ast_frame:

Collaboration graph
[legend]

Data Fields

void * data
int datalen
struct timeval delivery
unsigned int flags
struct {
   struct ast_frame *   next
frame_list
enum ast_frame_type frametype
long len
int mallocd
size_t mallocd_hdr_len
int offset
int samples
int seqno
const char * src
int subclass
long ts

Detailed Description

Data structure associated with a single frame of data.

Definition at line 135 of file frame.h.


Field Documentation

void* data

Pointer to actual data

Definition at line 153 of file frame.h.

Referenced by __ast_read(), __ast_smoother_feed(), __dahdi_exception(), __frame_free(), __send_command(), adjust_frame_for_plc(), adpcmtolin_framein(), adpcmtolin_sample(), adsi_careful_send(), alawtolin_framein(), alawtolin_sample(), alawtoulaw_framein(), alawtoulaw_sample(), alsa_read(), alsa_write(), ast_bridge_call(), ast_codec_get_samples(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_frame_adjust_volume(), ast_frame_dump(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_generic_bridge(), ast_prod(), ast_queue_control_data(), ast_recvtext(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_write(), ast_slinfactory_feed(), ast_slinfactory_read(), ast_smoother_read(), ast_trans_frameout(), ast_udptl_write(), ast_waitfordigit_full(), ast_write(), audiohook_read_frame_both(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), conf_run(), console_sendtext(), console_sendtext_deprecated(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_handle_event(), dahdi_read(), dahdi_write(), do_immediate_setup(), free_signaling_queue_entry(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g726aal2tolin_framein(), g726tolin_framein(), g729_read(), g729_write(), gsm_read(), gsm_write(), gsmtolin_framein(), gsmtolin_sample(), h263_read(), h263_write(), h264_read(), h264_write(), handle_link_data(), iax2_send(), iax2_sendimage(), iax2_trunk_queue(), iax_frame_wrap(), ices_exec(), ilbc_read(), ilbc_write(), ilbctolin_framein(), ilbctolin_sample(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_framein(), lintoadpcm_sample(), lintoalaw_framein(), lintoalaw_sample(), lintog726_framein(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_sample(), lintoilbc_framein(), lintoilbc_sample(), lintolpc10_framein(), lintolpc10_sample(), lintospeex_framein(), lintospeex_sample(), lintoulaw(), lintoulaw_framein(), lintoulaw_sample(), local_indicate(), local_sendhtml(), local_sendtext(), lpc10tolin_framein(), lpc10tolin_sample(), measurenoise(), misdn_read(), misdn_write(), moh_generate(), nbs_xread(), nbs_xwrite(), ogg_vorbis_read(), ogg_vorbis_write(), oss_read(), oss_write(), pcm_read(), pcm_write(), phone_exception(), phone_read(), phone_write(), playtones_generator(), process_rfc3389(), queue_signalling(), receive_message(), rpt(), rpt_exec(), run_agi(), send_link_dtmf(), send_tone_burst(), slinear_read(), slinear_write(), smoother_frame_feed(), sms_exec(), sms_generate(), socket_process(), speech_background(), speextolin_framein(), speextolin_sample(), spy_generate(), tonepair_generator(), udptl_rx_packet(), ulawtoalaw_framein(), ulawtoalaw_sample(), ulawtolin_framein(), ulawtolin_sample(), vox_read(), vox_write(), wait_for_answer(), waitstream_core(), wav_read(), and wav_write().

int datalen

Length of data

Definition at line 141 of file frame.h.

Referenced by __ast_smoother_feed(), __dahdi_exception(), __send_command(), adjust_frame_for_plc(), adpcmtolin_framein(), adpcmtolin_sample(), adsi_careful_send(), alawtolin_sample(), alawtoulaw_sample(), alsa_read(), alsa_write(), ast_bridge_call(), ast_codec_get_samples(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_frdup(), ast_frisolate(), ast_generic_bridge(), ast_queue_control_data(), ast_read_generator_actions(), ast_recvtext(), ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_write(), ast_smoother_read(), ast_trans_frameout(), ast_udptl_write(), ast_waitfordigit_full(), ast_write(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), conf_run(), console_sendtext(), console_sendtext_deprecated(), create_dtmf_frame(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_frameout(), dahdi_handle_event(), dahdi_read(), dahdi_write(), do_immediate_setup(), framein(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g726aal2tolin_framein(), g726tolin_framein(), g729_read(), g729_write(), gsm_write(), gsmtolin_framein(), gsmtolin_sample(), h263_read(), h263_write(), h264_read(), h264_write(), handle_link_data(), iax2_send(), iax2_sendimage(), iax2_trunk_queue(), iax_frame_wrap(), iaxfrdup2(), ices_exec(), ilbc_read(), ilbc_write(), ilbctolin_framein(), ilbctolin_sample(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_framein(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_framein(), lintogsm_sample(), lintoilbc_framein(), lintoilbc_sample(), lintolpc10_framein(), lintolpc10_sample(), lintospeex_framein(), lintospeex_sample(), lintoulaw_sample(), local_indicate(), local_sendhtml(), local_sendtext(), lpc10tolin_framein(), lpc10tolin_sample(), milliwatt_generate(), misdn_read(), moh_generate(), nbs_xread(), nbs_xwrite(), ogg_vorbis_read(), ogg_vorbis_write(), oss_read(), oss_write(), pcm_read(), pcm_write(), phone_exception(), phone_read(), phone_write(), playtones_generator(), process_rfc3389(), receive_message(), rpt(), rpt_exec(), run_agi(), send_link_dtmf(), send_tone_burst(), slinear_read(), slinear_write(), smoother_frame_feed(), sms_generate(), socket_process(), speech_background(), speextolin_framein(), speextolin_sample(), spy_generate(), tonepair_generator(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), vox_read(), vox_write(), wait_for_answer(), waitstream_core(), wav_read(), and wav_write().

struct timeval delivery [read]

unsigned int flags

Misc. frame flags

Definition at line 159 of file frame.h.

Referenced by __ast_read(), conf_run(), dump_hint(), and recordthread().

struct { ... } frame_list

For placing in a linked list

Kind of frame

Definition at line 137 of file frame.h.

Referenced by __adsi_transmit_messages(), __ast_play_and_record(), __ast_queue_frame(), __ast_read(), __ast_request_and_dial(), __ast_smoother_feed(), __attempt_transmit(), __dahdi_exception(), __get_from_jb(), __oh323_update_info(), __send_command(), adpcmtolin_sample(), adsi_careful_send(), agent_ack_sleep(), agent_read(), agent_write(), alawtolin_sample(), alawtoulaw_sample(), alsa_read(), app_exec(), ast_audiohook_write_list(), ast_autoservice_stop(), ast_bridge_call(), ast_channel_clear_softhangup(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_frame_adjust_volume(), ast_frame_dump(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_generic_bridge(), ast_is_deferrable_frame(), ast_jb_put(), ast_read_generator_actions(), ast_recvtext(), ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_write(), ast_smoother_read(), ast_trans_frameout(), ast_translate(), ast_udptl_bridge(), ast_udptl_write(), ast_waitfordigit_full(), ast_write(), ast_writestream(), async_wait(), audiohook_read_frame_both(), audiohook_read_frame_single(), autoservice_run(), background_detect_exec(), bridge_native_loop(), bridge_p2p_loop(), calc_timestamp(), cb_events(), channel_spy(), conf_exec(), conf_run(), console_sendtext(), console_sendtext_deprecated(), create_dtmf_frame(), dahdi_bridge(), dahdi_decoder_frameout(), dahdi_encoder_frameout(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_read(), dahdi_write(), decode_frame(), dictate_exec(), disa_exec(), do_immediate_setup(), do_parking_thread(), do_waiting(), echo_exec(), fakesrc_sample(), feature_request_and_dial(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g726tolin_sample(), g729_read(), g729_write(), gsm_read(), gsm_write(), gsmtolin_sample(), gtalk_digit(), gtalk_rtp_read(), gtalk_write(), h263_read(), h263_write(), h264_read(), h264_write(), handle_frame(), handle_frame_ownerless(), handle_keypad_button_message(), handle_link_data(), handle_recordfile(), handle_request(), iax2_bridge(), iax2_send(), iax2_write(), iax_frame_wrap(), ices_exec(), ilbc_read(), ilbc_write(), ilbctolin_sample(), isAnsweringMachine(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_sample(), lintoalaw_sample(), lintog726_sample(), lintogsm_sample(), lintoilbc_sample(), lintolpc10_sample(), lintospeex_frameout(), lintospeex_sample(), lintoulaw_sample(), local_queue_frame(), local_write(), lpc10tolin_sample(), measurenoise(), mgcp_rtp_read(), mgcp_write(), milliwatt_generate(), misdn_bridge(), misdn_read(), mohalloc(), mp3_exec(), nbs_xwrite(), NBScat_exec(), ogg_vorbis_read(), ogg_vorbis_write(), oh323_rtp_read(), oh323_simulate_dtmf_end(), oh323_write(), oss_call(), oss_read(), pcm_read(), pcm_write(), phone_exception(), phone_read(), phone_write(), playtones_generator(), process_ast_dsp(), process_rfc3389(), queue_dtmf_readq(), queue_signalling(), receive_digit(), receive_dtmf_digits(), receive_message(), record_exec(), recordthread(), resend_with_token(), rpt(), rpt_exec(), run_agi(), schedule_delivery(), send_link_dtmf(), send_tone_burst(), send_waveform_to_channel(), sendurl_exec(), silence_generator_generate(), sip_read(), sip_rtp_read(), sip_write(), skinny_rtp_read(), skinny_write(), slinear_read(), slinear_write(), sms_exec(), sms_generate(), socket_process(), speech_background(), speextolin_sample(), ss_thread(), tonepair_generator(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), unwrap_timestamp(), vox_read(), vox_write(), wait_for_answer(), wait_for_winner(), waitforring_exec(), waitstream_core(), wav_read(), and wav_write().

long len

int mallocd

The number of bytes allocated for a malloc'd frame header

Definition at line 147 of file frame.h.

Referenced by ast_frame_header_new(), and ast_frdup().

struct ast_frame* next [read]

Definition at line 157 of file frame.h.

Referenced by ast_frame_free(), and jb_get_and_deliver().

int offset

int samples

Number of samples in this frame

Definition at line 143 of file frame.h.

Referenced by __ast_read(), __ast_smoother_feed(), __dahdi_exception(), __get_from_jb(), adjust_frame_for_plc(), adpcmtolin_framein(), adpcmtolin_sample(), adsi_careful_send(), alawtolin_framein(), alawtolin_sample(), alawtoulaw_framein(), alawtoulaw_sample(), alsa_read(), ast_frame_adjust_volume(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_read_generator_actions(), ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), ast_slinfactory_feed(), ast_slinfactory_read(), ast_smoother_read(), ast_trans_frameout(), ast_translate(), ast_write(), audio_audiohook_write_list(), calc_cost(), calc_timestamp(), cb_events(), conf_run(), create_dtmf_frame(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_handle_event(), dahdi_read(), dictate_exec(), do_immediate_setup(), framein(), fsk_serie(), function_ilink(), g723_read(), g726_read(), g726aal2tolin_framein(), g726tolin_framein(), g726tolin_sample(), g729_read(), gen_generate(), gsm_read(), gsmtolin_sample(), h263_read(), h263_write(), h264_read(), h264_write(), handle_link_data(), iax_frame_wrap(), ilbc_read(), ilbctolin_framein(), ilbctolin_sample(), jb_get_and_deliver(), linear_generator(), lintoadpcm_framein(), lintoadpcm_frameout(), lintoadpcm_sample(), lintoalaw_framein(), lintoalaw_sample(), lintog726_framein(), lintog726_sample(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_sample(), lintoilbc_framein(), lintoilbc_sample(), lintolpc10_framein(), lintolpc10_sample(), lintospeex_framein(), lintospeex_frameout(), lintospeex_sample(), lintoulaw(), lintoulaw_framein(), lintoulaw_sample(), lpc10tolin_sample(), measurenoise(), milliwatt_generate(), misdn_read(), misdn_write(), moh_files_generator(), moh_generate(), nbs_xread(), ogg_vorbis_read(), ogg_vorbis_write(), oss_read(), pcm_read(), phone_exception(), phone_read(), playtones_generator(), process_rfc2833(), process_rfc3389(), receive_digit(), rpt(), send_link_dtmf(), send_tone_burst(), send_waveform_to_channel(), slinear_read(), smoother_frame_feed(), sms_exec(), sms_generate(), socket_process(), speextolin_sample(), tonepair_generator(), ulawtoalaw_framein(), ulawtoalaw_sample(), ulawtolin_framein(), ulawtolin_sample(), vox_read(), and wav_read().

int seqno

Sequence number

Definition at line 165 of file frame.h.

Referenced by ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_translate(), framein(), and udptl_rx_packet().

const char* src

int subclass

Subclass, frame dependent

Definition at line 139 of file frame.h.

Referenced by __adsi_transmit_messages(), __ast_play_and_record(), __ast_queue_frame(), __ast_read(), __ast_request_and_dial(), __ast_smoother_feed(), __attempt_transmit(), __dahdi_exception(), __get_from_jb(), __oh323_update_info(), __send_command(), adpcmtolin_sample(), adsi_careful_send(), agent_ack_sleep(), agent_read(), agent_write(), alawtolin_sample(), alawtoulaw_sample(), alsa_call(), alsa_read(), app_exec(), ast_bridge_call(), ast_channel_clear_softhangup(), ast_codec_get_samples(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_frame_adjust_volume(), ast_frame_dump(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_generic_bridge(), ast_prod(), ast_queue_control(), ast_queue_control_data(), ast_read_generator_actions(), ast_recvtext(), ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_senddigit_end_with_duration(), ast_rtp_write(), ast_slinfactory_feed(), ast_smoother_read(), ast_trans_frameout(), ast_translate(), ast_waitfordigit_full(), ast_write(), ast_writestream(), async_wait(), audio_audiohook_write_list(), background_detect_exec(), bridge_native_loop(), bridge_p2p_loop(), calc_rxstamp(), calc_timestamp(), cb_events(), channel_spy(), conf_exec(), conf_run(), console_dial(), console_dial_deprecated(), console_sendtext(), console_sendtext_deprecated(), create_dtmf_frame(), create_jb(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_read(), dahdi_write(), decode_frame(), dictate_exec(), disa_exec(), do_immediate_setup(), do_parking_thread(), echo_exec(), feature_request_and_dial(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gsm_read(), gsm_write(), gsmtolin_sample(), gtalk_handle_dtmf(), gtalk_rtp_read(), gtalk_write(), h263_read(), h263_write(), h264_read(), h264_write(), handle_frame(), handle_frame_ownerless(), handle_keypad_button_message(), handle_link_data(), handle_recordfile(), handle_request(), handle_request_info(), iax2_bridge(), iax2_send(), iax2_sendimage(), iax_frame_wrap(), ilbc_read(), ilbc_write(), ilbctolin_sample(), jb_get_and_deliver(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_sample(), lintoilbc_sample(), lintolpc10_sample(), lintospeex_sample(), lintoulaw_sample(), local_digit_begin(), local_digit_end(), local_indicate(), local_queue_frame(), local_sendhtml(), lpc10tolin_sample(), measurenoise(), mgcp_queue_control(), mgcp_rtp_read(), mgcp_write(), misdn_bridge(), misdn_read(), misdn_write(), mohalloc(), nbs_xwrite(), ogg_vorbis_read(), ogg_vorbis_write(), oh323_rtp_read(), oh323_write(), oss_call(), oss_read(), pcm_read(), pcm_write(), phone_exception(), phone_read(), phone_write(), playtones_generator(), process_ast_dsp(), process_rfc2833(), process_rfc3389(), queue_dtmf_readq(), receive_digit(), receive_dtmf_digits(), receive_message(), record_exec(), resend_with_token(), rpt(), rpt_call(), rpt_exec(), schedule_delivery(), send_link_dtmf(), send_tone_burst(), send_waveform_to_channel(), sendurl_exec(), sip_rtp_read(), sip_write(), skinny_rtp_read(), skinny_write(), slinear_read(), slinear_write(), sms_generate(), socket_process(), speech_background(), speextolin_sample(), ss_thread(), tonepair_generator(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), vox_read(), vox_write(), wait_for_answer(), wait_for_winner(), waitforring_exec(), waitstream_core(), wav_read(), and wav_write().

long ts


The documentation for this struct was generated from the following file:

Generated on Thu Oct 11 06:44:43 2012 for Asterisk - the Open Source PBX by  doxygen 1.5.6