diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2006-01-17 22:27:45 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2006-01-17 22:27:45 +0000 |
commit | e61e1d66bd617141dc294a78d82e163554034060 (patch) | |
tree | 82d56db941093217a7c6bf1b3f6b2ba800639f4c /net/asterisk16/files/patch-rtp.c | |
parent | cfb4ed733fa8c10b76f41592e5a4ea070e9ea37f (diff) |
Update to 1.2.1.
Notes
Notes:
svn path=/head/; revision=153765
Diffstat (limited to 'net/asterisk16/files/patch-rtp.c')
-rw-r--r-- | net/asterisk16/files/patch-rtp.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/net/asterisk16/files/patch-rtp.c b/net/asterisk16/files/patch-rtp.c index c652add6a2f2..bbc2649929f9 100644 --- a/net/asterisk16/files/patch-rtp.c +++ b/net/asterisk16/files/patch-rtp.c @@ -1,23 +1,17 @@ ---- rtp.c.orig Tue Apr 26 10:00:28 2005 -+++ rtp.c Tue Apr 26 10:06:35 2005 -@@ -127,7 +127,7 @@ - { - switch(buf & TYPE_MASK) { - case TYPE_DONTSEND: -- return 0; -+ return 2; - break; - case TYPE_SILENCE: - return 4; -@@ -862,8 +858,10 @@ - /* Must be an even port number by RTP spec */ + +$FreeBSD$ + +--- rtp.c.orig Fri Jan 13 13:38:01 2006 ++++ rtp.c Fri Jan 13 13:40:50 2006 +@@ -950,8 +950,10 @@ struct ast_rtp *ast_rtp_new_with_bindadd rtp->us.sin_port = htons(x); rtp->us.sin_addr = addr; + /* If there's rtcp, initialize it as well. */ - if (rtp->rtcp) + if (rtp->rtcp) { rtp->rtcp->us.sin_port = htons(x + 1); + rtp->rtcp->us.sin_addr = addr; + } + /* Try to bind it/them. */ if (!(first = bind(rtp->s, (struct sockaddr *)&rtp->us, sizeof(rtp->us))) && (!rtp->rtcp || !bind(rtp->rtcp->s, (struct sockaddr *)&rtp->rtcp->us, sizeof(rtp->rtcp->us)))) - break; |