[svn-commits] oej: branch oej/blackberry-a-rtcp-sdp-support-1.8 r402908 - in /team/oej/blac...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Nov 20 09:15:53 CST 2013
Author: oej
Date: Wed Nov 20 09:15:51 2013
New Revision: 402908
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402908
Log:
Who committed so buggy code? Let's fix this.
Modified:
team/oej/blackberry-a-rtcp-sdp-support-1.8/include/asterisk/rtp_engine.h
team/oej/blackberry-a-rtcp-sdp-support-1.8/main/rtp_engine.c
team/oej/blackberry-a-rtcp-sdp-support-1.8/res/res_rtp_asterisk.c
Modified: team/oej/blackberry-a-rtcp-sdp-support-1.8/include/asterisk/rtp_engine.h
URL: http://svnview.digium.com/svn/asterisk/team/oej/blackberry-a-rtcp-sdp-support-1.8/include/asterisk/rtp_engine.h?view=diff&rev=402908&r1=402907&r2=402908
==============================================================================
--- team/oej/blackberry-a-rtcp-sdp-support-1.8/include/asterisk/rtp_engine.h (original)
+++ team/oej/blackberry-a-rtcp-sdp-support-1.8/include/asterisk/rtp_engine.h Wed Nov 20 09:15:51 2013
@@ -674,6 +674,16 @@
*/
int ast_rtp_instance_set_remote_address(struct ast_rtp_instance *instance, const struct ast_sockaddr *address);
+/*!
+ * \brief Change the RTCP port we're sending to the remote instance
+ *
+ * \retval 0 success
+ *
+ * This changes the port we are sending to (for instance when we find a=rtcp in a sdp)
+ * \since 1.8 Edvx
+ */
+int ast_rtp_instance_set_remote_rtcp_port(struct ast_rtp_instance *instance,
+ unsigned int port);
/*!
* \brief Set the address of an an alternate RTP address to receive from
Modified: team/oej/blackberry-a-rtcp-sdp-support-1.8/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/blackberry-a-rtcp-sdp-support-1.8/main/rtp_engine.c?view=diff&rev=402908&r1=402907&r2=402908
==============================================================================
--- team/oej/blackberry-a-rtcp-sdp-support-1.8/main/rtp_engine.c (original)
+++ team/oej/blackberry-a-rtcp-sdp-support-1.8/main/rtp_engine.c Wed Nov 20 09:15:51 2013
@@ -408,6 +408,8 @@
if (instance->engine->remote_rtcp_port_set) {
instance->engine->remote_rtcp_port_set(instance, port);
}
+
+ return 0;
}
int ast_rtp_instance_set_alt_remote_address(struct ast_rtp_instance *instance,
Modified: team/oej/blackberry-a-rtcp-sdp-support-1.8/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/blackberry-a-rtcp-sdp-support-1.8/res/res_rtp_asterisk.c?view=diff&rev=402908&r1=402907&r2=402908
==============================================================================
--- team/oej/blackberry-a-rtcp-sdp-support-1.8/res/res_rtp_asterisk.c (original)
+++ team/oej/blackberry-a-rtcp-sdp-support-1.8/res/res_rtp_asterisk.c Wed Nov 20 09:15:51 2013
@@ -284,6 +284,7 @@
static void ast_rtp_prop_set(struct ast_rtp_instance *instance, enum ast_rtp_property property, int value);
static int ast_rtp_fd(struct ast_rtp_instance *instance, int rtcp);
static void ast_rtp_remote_address_set(struct ast_rtp_instance *instance, struct ast_sockaddr *addr);
+static void ast_rtp_remote_rtcp_port_set(struct ast_rtp_instance *instance, unsigned int port);
static void ast_rtp_alt_remote_address_set(struct ast_rtp_instance *instance, struct ast_sockaddr *addr);
static int rtp_red_init(struct ast_rtp_instance *instance, int buffer_time, int *payloads, int generations);
static int rtp_red_buffer(struct ast_rtp_instance *instance, struct ast_frame *frame);
More information about the svn-commits
mailing list