[asterisk-dev] proposed api change/addition - ast_stun_request()
Luigi Rizzo
rizzo at icir.org
Thu Jul 12 11:36:38 CDT 2007
Hi,
main/rtp.c defines the following API function:
void ast_rtp_stun_request(struct ast_rtp *rtp,
struct sockaddr_in *suggestion, const char *username)
which in fact has no reason to use a 'struct ast_rtp' as an
argument, nor to use 'rtp' in the name - the only thing it
needs/uses is the socket used to send the request.
Because stun (or other nat traversal techniques) are used
not just by rtp, i would like to introduce a new API function
ast_stun_request(int sock, struct sockaddr_in *dest, ...)
that i think should eventually replace ast_rtp_stun_request()
(in the meantime, it can be implemented as a wrapper around
ast_stun_request() ).
comments/suggestions on the name/objections ?
cheers
luigi
More information about the asterisk-dev
mailing list