diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-23 15:16:33 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-23 15:16:33 +0000 |
commit | 048e444843fbce910a7e55bd54e6930b54161c17 (patch) | |
tree | 6748ad5423a62064ffca8d75450c9cebee9a7fa7 /include | |
parent | b8af0b56ea6c622fef36843178611cde672a6321 (diff) |
Allow IPv6 addresses for UDPTL streams.
Review: https://reviewboard.asterisk.org/r/795
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@278908 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/udptl.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/asterisk/udptl.h b/include/asterisk/udptl.h index 3cbfeebb2..af80681ac 100644 --- a/include/asterisk/udptl.h +++ b/include/asterisk/udptl.h @@ -31,6 +31,7 @@ #include "asterisk/io.h" #include "asterisk/sched.h" #include "asterisk/channel.h" +#include "asterisk/netsock2.h" enum ast_t38_ec_modes { @@ -56,9 +57,7 @@ struct ast_udptl; typedef int (*ast_udptl_callback)(struct ast_udptl *udptl, struct ast_frame *f, void *data); -struct ast_udptl *ast_udptl_new(struct sched_context *sched, struct io_context *io, int callbackmode); - -struct ast_udptl *ast_udptl_new_with_bindaddr(struct sched_context *sched, struct io_context *io, int callbackmode, struct in_addr in); +struct ast_udptl *ast_udptl_new_with_bindaddr(struct sched_context *sched, struct io_context *io, int callbackmode, struct ast_sockaddr *in); /*! * \brief Associates a character string 'tag' with a UDPTL session. @@ -75,11 +74,11 @@ struct ast_udptl *ast_udptl_new_with_bindaddr(struct sched_context *sched, struc */ 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_set_peer(struct ast_udptl *udptl, const struct ast_sockaddr *them); -void ast_udptl_get_peer(const struct ast_udptl *udptl, struct sockaddr_in *them); +void ast_udptl_get_peer(const struct ast_udptl *udptl, struct ast_sockaddr *them); -void ast_udptl_get_us(const struct ast_udptl *udptl, struct sockaddr_in *us); +void ast_udptl_get_us(const struct ast_udptl *udptl, struct ast_sockaddr *us); void ast_udptl_destroy(struct ast_udptl *udptl); |