26 #ifndef _ASTERISK_UDPTL_H 27 #define _ASTERISK_UDPTL_H 43 #if defined(__cplusplus) || defined(c_plusplus) 93 char *mimeType,
char *mimeSubtype);
129 #if defined(__cplusplus) || defined(c_plusplus)
void ast_udptl_set_data(struct ast_udptl *udptl, void *data)
void ast_udptl_set_local_max_ifp(struct ast_udptl *udptl, unsigned int max_ifp)
void ast_udptl_set_m_type(struct ast_udptl *udptl, unsigned int pt)
ast_udptl_callback callback
void ast_udptl_set_callback(struct ast_udptl *udptl, ast_udptl_callback callback)
void ast_udptl_reset(struct ast_udptl *udptl)
unsigned int ast_udptl_get_local_max_datagram(struct ast_udptl *udptl)
retrieves local_max_datagram.
Structure for an UDPTL session.
void ast_udptl_get_peer(const struct ast_udptl *udptl, struct ast_sockaddr *them)
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_destroy(struct ast_udptl *udptl)
I/O Management (derived from Cheops-NG)
Socket address structure.
enum ast_t38_ec_modes ast_udptl_get_error_correction_scheme(const struct ast_udptl *udptl)
void ast_udptl_get_us(const struct ast_udptl *udptl, struct ast_sockaddr *us)
General Asterisk PBX channel definitions.
static struct io_context * io
int(* ast_udptl_callback)(struct ast_udptl *udptl, struct ast_frame *f, void *data)
Global IO variables are now in a struct in order to be made threadsafe.
Scheduler Routines (derived from cheops)
Asterisk internal frame definitions.
Wrapper for network related headers, masking differences between various operating systems...
unsigned int ast_udptl_get_far_max_ifp(struct ast_udptl *udptl)
retrieves far max ifp
void ast_udptl_set_peer(struct ast_udptl *udptl, const struct ast_sockaddr *them)
int ast_udptl_setqos(struct ast_udptl *udptl, unsigned int tos, unsigned int cos)
int ast_udptl_fd(const 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)
struct ast_frame * ast_udptl_read(struct ast_udptl *udptl)
void ast_udptl_set_udptlmap_type(struct ast_udptl *udptl, unsigned int pt, char *mimeType, char *mimeSubtype)
void ast_udptl_set_error_correction_scheme(struct ast_udptl *udptl, enum ast_t38_ec_modes ec)
void ast_udptl_stop(struct ast_udptl *udptl)
int ast_udptl_write(struct ast_udptl *udptl, struct ast_frame *f)
void ast_udptl_set_tag(struct ast_udptl *udptl, const char *format,...)
Associates a character string 'tag' with a UDPTL session.
Data structure associated with a single frame of data.
unsigned int ast_udptl_get_far_max_datagram(const struct ast_udptl *udptl)
union ast_frame::@263 data
static snd_pcm_format_t format
void ast_udptl_setnat(struct ast_udptl *udptl, int nat)