diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-09 11:44:50 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-09 11:44:50 +0000 |
commit | 3da3803c07ac5061123a9ef505c6506f07a58540 (patch) | |
tree | d57b0a40dccb81bbcb68b1d0c7e720f6a331ffbb /include | |
parent | faf703671d6bee04df9dc3841c30e37efe1c1c80 (diff) |
Make SIP early media work more efficiently without so many reinvites
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26019 f38db490-d61c-443f-a65b-d21fe96a405b
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); |