26#ifndef _ASTERISK_UDPTL_H
27#define _ASTERISK_UDPTL_H
43#if defined(__cplusplus) || defined(c_plusplus)
91 char *mimeType,
char *mimeSubtype);
127#if defined(__cplusplus) || defined(c_plusplus)
static struct io_context * io
General Asterisk PBX channel definitions.
Asterisk internal frame definitions.
I/O Management (derived from Cheops-NG)
Wrapper for network related headers, masking differences between various operating systems....
Scheduler Routines (derived from cheops)
Data structure associated with a single frame of data.
union ast_frame::@226 data
Socket address structure.
Structure for an UDPTL session.
ast_udptl_callback callback
Global IO variables are now in a struct in order to be made threadsafe.
void ast_udptl_destroy(struct ast_udptl *udptl)
enum ast_t38_ec_modes ast_udptl_get_error_correction_scheme(const struct ast_udptl *udptl)
void ast_udptl_stop(struct ast_udptl *udptl)
int ast_udptl_fd(const struct ast_udptl *udptl)
void ast_udptl_reset(struct ast_udptl *udptl)
void ast_udptl_get_peer(const struct ast_udptl *udptl, struct ast_sockaddr *them)
void ast_udptl_set_peer(struct ast_udptl *udptl, const struct ast_sockaddr *them)
void ast_udptl_set_tag(struct ast_udptl *udptl, const char *format,...)
Associates a character string 'tag' with a UDPTL session.
void ast_udptl_set_local_max_ifp(struct ast_udptl *udptl, unsigned int max_ifp)
unsigned int ast_udptl_get_far_max_ifp(struct ast_udptl *udptl)
retrieves far max ifp
void ast_udptl_setnat(struct ast_udptl *udptl, int nat)
void ast_udptl_get_us(const struct ast_udptl *udptl, struct ast_sockaddr *us)
struct ast_frame * ast_udptl_read(struct ast_udptl *udptl)
struct ast_udptl * ast_udptl_new_with_bindaddr(struct ast_sched_context *sched, struct io_context *io, int callbackmode, struct ast_sockaddr *in)
void ast_udptl_set_m_type(struct ast_udptl *udptl, unsigned int pt)
int ast_udptl_setqos(struct ast_udptl *udptl, unsigned int tos, unsigned int cos)
int ast_udptl_write(struct ast_udptl *udptl, struct ast_frame *f)
unsigned int ast_udptl_get_local_max_datagram(struct ast_udptl *udptl)
retrieves local_max_datagram.
int(* ast_udptl_callback)(struct ast_udptl *udptl, struct ast_frame *f, void *data)
void ast_udptl_set_data(struct ast_udptl *udptl, void *data)
void ast_udptl_set_far_max_datagram(struct ast_udptl *udptl, unsigned int max_datagram)
sets far max datagram size. If max_datagram is = 0, the far max datagram size is set to a default val...
void ast_udptl_set_udptlmap_type(struct ast_udptl *udptl, unsigned int pt, char *mimeType, char *mimeSubtype)
void ast_udptl_set_callback(struct ast_udptl *udptl, ast_udptl_callback callback)
unsigned int ast_udptl_get_far_max_datagram(const struct ast_udptl *udptl)
void ast_udptl_set_error_correction_scheme(struct ast_udptl *udptl, enum ast_t38_ec_modes ec)
@ UDPTL_ERROR_CORRECTION_FEC
@ UDPTL_ERROR_CORRECTION_NONE
@ UDPTL_ERROR_CORRECTION_REDUNDANCY