diff options
author | Mark Spencer <markster@digium.com> | 2006-05-09 11:44:50 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-05-09 11:44:50 +0000 |
commit | 9953f4f40eddceccd4d99f07ffe9e8a380e371e9 (patch) | |
tree | d57b0a40dccb81bbcb68b1d0c7e720f6a331ffbb /include | |
parent | 66dda468d191ced212eaa144fea98323aacf4a24 (diff) |
Make SIP early media work more efficiently without so many reinvites
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/rtp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h index 3b19da0cc..1dc133cd4 100644 --- a/include/asterisk/rtp.h +++ b/include/asterisk/rtp.h @@ -97,7 +97,8 @@ struct ast_rtp *ast_rtp_new_with_bindaddr(struct sched_context *sched, struct io void ast_rtp_set_peer(struct ast_rtp *rtp, struct sockaddr_in *them); -void ast_rtp_get_peer(struct ast_rtp *rtp, struct sockaddr_in *them); +/* Copies from rtp to them and returns 1 if there was a change or 0 if it was already the same */ +int ast_rtp_get_peer(struct ast_rtp *rtp, struct sockaddr_in *them); void ast_rtp_get_us(struct ast_rtp *rtp, struct sockaddr_in *us); @@ -154,7 +155,9 @@ int ast_rtp_proto_register(struct ast_rtp_protocol *proto); void ast_rtp_proto_unregister(struct ast_rtp_protocol *proto); -int ast_rtp_make_compatible(struct ast_channel *dest, struct ast_channel *src); +int ast_rtp_make_compatible(struct ast_channel *dest, struct ast_channel *src, int media); + +int ast_rtp_early_media(struct ast_channel *dest, struct ast_channel *src); void ast_rtp_stop(struct ast_rtp *rtp); |