diff options
Diffstat (limited to 'include/asterisk/udptl.h')
-rw-r--r-- | include/asterisk/udptl.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/asterisk/udptl.h b/include/asterisk/udptl.h index ec96f7249..71d60ed61 100644 --- a/include/asterisk/udptl.h +++ b/include/asterisk/udptl.h @@ -60,6 +60,21 @@ struct ast_udptl *ast_udptl_new(struct sched_context *sched, struct io_context * struct ast_udptl *ast_udptl_new_with_bindaddr(struct sched_context *sched, struct io_context *io, int callbackmode, struct in_addr in); +/*! + * \brief Associates a character string 'tag' with a UDPTL session. + * \param udptl The UDPTL session. + * \param format printf-style format string used to construct the tag + * + * This function formats a tag for the specified UDPTL + * session, so that any log messages generated by the UDPTL stack + * related to that session will include the tag and the reader of + * the messages will be able to identify which endpoint caused them + * to be generated. + * + * \retval none + */ +void __attribute__((format(printf, 2, 3))) ast_udptl_set_tag(struct ast_udptl *udptl, const char *format, ...); + void ast_udptl_set_peer(struct ast_udptl *udptl, const struct sockaddr_in *them); void ast_udptl_get_peer(const struct ast_udptl *udptl, struct sockaddr_in *them); @@ -93,13 +108,13 @@ void ast_udptl_set_error_correction_scheme(struct ast_udptl *udptl, enum ast_t38 void ast_udptl_set_local_max_ifp(struct ast_udptl *udptl, unsigned int max_ifp); -unsigned int ast_udptl_get_local_max_datagram(const struct ast_udptl *udptl); +unsigned int ast_udptl_get_local_max_datagram(struct ast_udptl *udptl); void ast_udptl_set_far_max_datagram(struct ast_udptl *udptl, unsigned int max_datagram); unsigned int ast_udptl_get_far_max_datagram(const struct ast_udptl *udptl); -unsigned int ast_udptl_get_far_max_ifp(const struct ast_udptl *udptl); +unsigned int ast_udptl_get_far_max_ifp(struct ast_udptl *udptl); void ast_udptl_setnat(struct ast_udptl *udptl, int nat); |