26 #ifndef _ASTERISK_UDPTL_H
27 #define _ASTERISK_UDPTL_H
37 enum ast_t38_ec_modes {
38 UDPTL_ERROR_CORRECTION_NONE,
39 UDPTL_ERROR_CORRECTION_FEC,
40 UDPTL_ERROR_CORRECTION_REDUNDANCY
43 #if defined(__cplusplus) || defined(c_plusplus)
72 void ast_udptl_destroy(struct
ast_udptl *udptl);
74 void ast_udptl_reset(struct
ast_udptl *udptl);
76 void ast_udptl_set_callback(struct
ast_udptl *udptl, ast_udptl_callback callback);
78 void ast_udptl_set_data(struct
ast_udptl *udptl,
void *data);
84 int ast_udptl_fd(const struct
ast_udptl *udptl);
86 int ast_udptl_setqos(struct
ast_udptl *udptl,
unsigned int tos,
unsigned int cos);
88 void ast_udptl_set_m_type(struct
ast_udptl *udptl,
unsigned int pt);
90 void ast_udptl_set_udptlmap_type(struct
ast_udptl *udptl,
unsigned int pt,
91 char *mimeType,
char *mimeSubtype);
93 enum ast_t38_ec_modes ast_udptl_get_error_correction_scheme(const struct
ast_udptl *udptl);
95 void ast_udptl_set_error_correction_scheme(struct
ast_udptl *udptl, enum ast_t38_ec_modes ec);
97 void ast_udptl_set_local_max_ifp(struct
ast_udptl *udptl,
unsigned int max_ifp);
113 unsigned int ast_udptl_get_far_max_datagram(const struct
ast_udptl *udptl);
123 void ast_udptl_setnat(struct
ast_udptl *udptl,
int nat);
125 void ast_udptl_stop(struct
ast_udptl *udptl);
127 #if defined(__cplusplus) || defined(c_plusplus)
unsigned int ast_udptl_get_local_max_datagram(struct ast_udptl *udptl)
retrieves local_max_datagram.
Structure for an UDPTL session.
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...
I/O Management (derived from Cheops-NG)
Socket address structure.
General Asterisk PBX channel definitions.
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
union ast_frame::@224 data
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.