#include <frame.h>
Public Member Functions | |
AST_LIST_ENTRY (ast_frame) frame_list | |
Data Fields | |
void * | data |
int | datalen |
struct timeval | delivery |
unsigned int | flags |
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 |
Definition at line 142 of file frame.h.
AST_LIST_ENTRY | ( | ast_frame | ) |
For placing in a linked list
void* data |
Pointer to actual data
Definition at line 160 of file frame.h.
Referenced by __ast_read(), __ast_smoother_feed(), __send_command(), __zt_exception(), 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_free(), 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_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(), do_immediate_setup(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g726aal2tolin_framein(), g726tog726aal2_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(), jb_get_and_deliver(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_framein(), lintoadpcm_sample(), lintoalaw_framein(), lintoalaw_sample(), lintog726_framein(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_sample(), lintolpc10_framein(), lintolpc10_sample(), lintospeex_framein(), lintospeex_sample(), 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(), receive_message(), rpt(), rpt_exec(), run_agi(), send_link_dtmf(), send_tone_burst(), slinear_read(), slinear_write(), 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(), wav_write(), zap_framein(), zap_frameout(), zt_handle_event(), zt_read(), and zt_write().
int datalen |
Length of data
Definition at line 148 of file frame.h.
Referenced by __ast_smoother_feed(), __send_command(), __zt_exception(), 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(), do_immediate_setup(), framein(), function_ilink(), g723_read(), g723_write(), g726_read(), g726_write(), g726aal2tolin_framein(), g726tog726aal2_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(), jb_get_and_deliver(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_framein(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_framein(), lintogsm_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_dtmf(), send_link_dtmf(), send_tone_burst(), slinear_read(), slinear_write(), 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(), wav_write(), zap_framein(), zap_frameout(), zt_handle_event(), zt_read(), and zt_write().
struct timeval delivery [read] |
Global delivery time
Definition at line 162 of file frame.h.
Referenced by __ast_smoother_feed(), __get_from_jb(), __zt_exception(), alsa_read(), ast_frdup(), ast_rtp_raw_write(), ast_rtp_read(), ast_smoother_read(), ast_translate(), calc_timestamp(), cb_events(), do_immediate_setup(), echo_exec(), h263_read(), h264_read(), iax_frame_wrap(), jb_get_and_deliver(), misdn_read(), nbs_xread(), phone_exception(), phone_read(), playtones_generator(), process_rfc3389(), schedule_delivery(), and zt_read().
unsigned int flags |
Misc. frame flags
Definition at line 166 of file frame.h.
Referenced by conf_run(), dump_hint(), and recordthread().
enum ast_frame_type frametype |
Kind of frame
Definition at line 144 of file frame.h.
Referenced by __adsi_transmit_messages(), __ast_play_and_record(), __ast_read(), __ast_request_and_dial_uniqueid(), __ast_smoother_feed(), __attempt_transmit(), __get_from_jb(), __oh323_update_info(), __send_command(), __zt_exception(), 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_bridge_call(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_feature_request_and_dial(), ast_frame_adjust_volume(), ast_frame_dump(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_generic_bridge(), ast_jb_put(), ast_queue_frame(), 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(), decode_frame(), dictate_exec(), disa_exec(), do_autoanswer_thread(), do_holding_thread(), do_immediate_setup(), do_parking_thread(), do_waiting(), echo_exec(), fakesrc_sample(), 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(), isAnsweringMachine(), jb_get_and_deliver(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_sample(), lintoalaw_sample(), lintog726_sample(), lintogsm_sample(), lintolpc10_sample(), lintospeex_frameout(), lintospeex_sample(), lintoulaw_sample(), 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(), receive_digit(), receive_dtmf_digits(), receive_message(), record_exec(), recordthread(), rpt(), rpt_exec(), run_agi(), schedule_delivery(), send_dtmf(), 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(), vox_read(), vox_write(), wait_for_answer(), wait_for_winner(), waitforring_exec(), waitstream_core(), wav_read(), wav_write(), zap_frameout(), zt_bridge(), zt_handle_dtmfup(), zt_handle_event(), zt_read(), and zt_write().
long len |
Length in milliseconds
Definition at line 170 of file frame.h.
Referenced by __ast_read(), ast_frdup(), ast_frisolate(), ast_jb_put(), ast_rtp_read(), ast_translate(), ast_write(), create_jb(), framein(), handle_request_info(), iax_frame_wrap(), jb_get_and_deliver(), jb_put_adaptive(), jb_put_first_fixed(), jb_put_fixed(), local_digit_end(), process_rfc2833(), receive_digit(), and socket_process().
int mallocd |
Was the data malloc'd? i.e. should we free it when we discard the frame?
Definition at line 152 of file frame.h.
Referenced by __zt_exception(), adpcmtolin_sample(), alawtolin_sample(), alawtoulaw_sample(), alsa_read(), ast_frame_free(), ast_frame_header_new(), ast_frdup(), ast_frisolate(), ast_rtcp_read(), ast_rtp_read(), ast_trans_frameout(), cb_events(), do_immediate_setup(), function_ilink(), g723_read(), g726_read(), g729_read(), gsm_read(), gsmtolin_sample(), h263_read(), h264_read(), handle_link_data(), iax_frame_wrap(), ilbc_read(), jb_get_and_deliver(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_sample(), lintolpc10_sample(), lintospeex_sample(), lintoulaw_sample(), lpc10tolin_sample(), misdn_read(), nbs_xread(), ogg_vorbis_read(), pcm_read(), phone_exception(), phone_read(), rpt(), send_dtmf(), send_link_dtmf(), send_tone_burst(), slinear_read(), sms_generate(), socket_process(), speextolin_sample(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), vox_read(), wav_read(), zap_frameout(), zt_handle_event(), and zt_read().
size_t mallocd_hdr_len |
The number of bytes allocated for a malloc'd frame header
Definition at line 154 of file frame.h.
Referenced by ast_frame_header_new(), and ast_frdup().
int offset |
How many bytes exist _before_ "data" that can be used if needed
Definition at line 156 of file frame.h.
Referenced by __ast_smoother_feed(), __get_from_jb(), __zt_exception(), adpcmtolin_sample(), alawtolin_sample(), alawtoulaw_sample(), alsa_read(), ast_frame_free(), ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_rtp_write(), ast_smoother_read(), ast_trans_frameout(), cb_events(), conf_run(), do_immediate_setup(), function_ilink(), gsmtolin_sample(), handle_link_data(), iax_frame_wrap(), jb_get_and_deliver(), linear_generator(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_sample(), lintolpc10_sample(), lintospeex_sample(), lintoulaw_sample(), lpc10tolin_sample(), misdn_read(), mohalloc(), nbs_xread(), oss_read(), phone_exception(), phone_read(), playtones_generator(), process_rfc3389(), receive_message(), rpt(), send_link_dtmf(), send_tone_burst(), sms_generate(), socket_process(), speextolin_sample(), tonepair_generator(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), wav_read(), zap_frameout(), zt_handle_event(), and zt_read().
int samples |
Number of 8khz samples in this frame
Definition at line 150 of file frame.h.
Referenced by __ast_read(), __ast_smoother_feed(), __get_from_jb(), __zt_exception(), 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_rtp_write(), 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(), dictate_exec(), do_immediate_setup(), framein(), fsk_serie(), function_ilink(), g723_read(), g726_read(), g726aal2tolin_framein(), g726tog726aal2_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(), 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(), lintolpc10_framein(), lintolpc10_sample(), lintospeex_framein(), lintospeex_frameout(), lintospeex_sample(), 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_dtmf(), send_link_dtmf(), send_tone_burst(), send_waveform_to_channel(), slinear_read(), sms_exec(), sms_generate(), socket_process(), speextolin_sample(), tonepair_generator(), ulawtoalaw_framein(), ulawtoalaw_sample(), ulawtolin_framein(), ulawtolin_sample(), vox_read(), wav_read(), zap_framein(), zap_frameout(), zt_handle_event(), and zt_read().
int seqno |
Sequence number
Definition at line 172 of file frame.h.
Referenced by ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_translate(), framein(), and udptl_rx_packet().
const char* src |
Optional source of frame for debugging
Definition at line 158 of file frame.h.
Referenced by __get_from_jb(), __send_command(), __zt_exception(), adpcmtolin_sample(), alawtolin_sample(), alawtoulaw_sample(), alsa_read(), ast_dsp_process(), ast_frame_free(), ast_frdup(), ast_frisolate(), ast_jb_put(), ast_prod(), ast_rtcp_read(), ast_rtp_read(), ast_trans_frameout(), cb_events(), do_immediate_setup(), get_filestream(), gsmtolin_sample(), handle_keypad_button_message(), handle_request(), iax_frame_wrap(), jb_get_and_deliver(), jpeg_read_image(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_sample(), lintolpc10_sample(), lintospeex_sample(), lintoulaw_sample(), lpc10tolin_sample(), misdn_read(), misdn_write(), nbs_xread(), oss_read(), pcm_seek(), phone_exception(), phone_read(), send_dtmf(), sms_generate(), socket_process(), speextolin_sample(), udptl_rx_packet(), ulawtoalaw_sample(), ulawtolin_sample(), zt_handle_event(), and zt_read().
int subclass |
Subclass, frame dependent
Definition at line 146 of file frame.h.
Referenced by __adsi_transmit_messages(), __ast_play_and_record(), __ast_read(), __ast_request_and_dial_uniqueid(), __ast_smoother_feed(), __attempt_transmit(), __get_from_jb(), __oh323_update_info(), __send_command(), __zt_exception(), 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_codec_get_samples(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_feature_request_and_dial(), 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_queue_frame(), ast_read_generator_actions(), ast_recvtext(), ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), 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(), autoservice_run(), background_detect_exec(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), channel_spy(), conf_exec(), conf_run(), console_dial(), console_dial_deprecated(), console_sendtext(), console_sendtext_deprecated(), create_jb(), decode_frame(), dictate_exec(), disa_exec(), do_autoanswer_thread(), do_holding_thread(), do_immediate_setup(), do_parking_thread(), echo_exec(), 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_send(), iax2_sendimage(), iax_frame_wrap(), ilbc_read(), ilbc_write(), jb_get_and_deliver(), jpeg_read_image(), jpeg_write_image(), linear_generator(), lintoadpcm_sample(), lintoalaw_sample(), lintogsm_sample(), lintolpc10_sample(), lintospeex_sample(), lintoulaw_sample(), local_digit_begin(), local_digit_end(), local_indicate(), 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_rfc3389(), receive_digit(), receive_dtmf_digits(), receive_message(), record_exec(), rpt(), rpt_call(), rpt_exec(), run_agi(), send_dtmf(), 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(), wav_write(), zap_framein(), zap_frameout(), zt_handle_dtmfup(), zt_handle_event(), zt_read(), and zt_write().
long ts |
Timestamp in milliseconds
Definition at line 168 of file frame.h.
Referenced by ast_frdup(), ast_frisolate(), ast_jb_put(), ast_rtp_raw_write(), ast_rtp_read(), ast_translate(), create_jb(), framein(), h263_read(), h264_read(), jb_get_and_deliver(), jb_put_adaptive(), jb_put_first_fixed(), and jb_put_fixed().