26 #ifndef _ASTERISK_UDPTL_H
27 #define _ASTERISK_UDPTL_H
43 #if defined(__cplusplus) || defined(c_plusplus)
102 char *mimeType,
char *mimeSubtype);
152 #if defined(__cplusplus) || defined(c_plusplus)
Main Channel structure associated with a channel.
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)
static struct io_context * io
void ast_udptl_init(void)
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.
int(*const set_udptl_peer)(struct ast_channel *chan, struct ast_udptl *peer)
Set UDPTL peer.
Structure for an UDPTL session.
int ast_udptl_reload(void)
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.
Asterisk internal frame definitions.
Global IO variables are now in a struct in order to be made threadsafe.
Scheduler Routines (derived from cheops)
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_proto_unregister(struct ast_udptl_protocol *proto)
void ast_udptl_set_peer(struct ast_udptl *udptl, const struct ast_sockaddr *them)
int ast_udptl_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc)
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_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)
struct ast_udptl * ast_udptl_new_with_bindaddr(struct sched_context *sched, struct io_context *io, int callbackmode, struct ast_sockaddr *in)
int ast_udptl_proto_register(struct ast_udptl_protocol *proto)
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)
int(* ast_udptl_callback)(struct ast_udptl *udptl, struct ast_frame *f, void *data)
static snd_pcm_format_t format
void ast_udptl_setnat(struct ast_udptl *udptl, int nat)