[Asterisk-cvs] asterisk rtp.c,1.92.2.6,1.92.2.7
russell at lists.digium.com
russell at lists.digium.com
Tue Jan 18 20:30:44 CST 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5714
Modified Files:
Tag: v1-0
rtp.c
Log Message:
Send a few more rfc2833 events on hte "down" (bug #3339)
Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.6
retrieving revision 1.92.2.7
diff -u -d -r1.92.2.6 -r1.92.2.7
--- rtp.c 30 Dec 2004 19:34:47 -0000 1.92.2.6
+++ rtp.c 19 Jan 2005 02:33:54 -0000 1.92.2.7
@@ -1032,7 +1032,7 @@
rtpheader[1] = htonl(rtp->lastts);
rtpheader[2] = htonl(rtp->ssrc);
rtpheader[3] = htonl((digit << 24) | (0xa << 16) | (0));
- for (x=0;x<4;x++) {
+ for (x=0;x<6;x++) {
if (rtp->them.sin_port && rtp->them.sin_addr.s_addr) {
res = sendto(rtp->s, (void *)rtpheader, hdrlen + 4, 0, (struct sockaddr *)&rtp->them, sizeof(rtp->them));
if (res <0)
@@ -1041,14 +1041,14 @@
printf("Sent %d bytes of RTP data to %s:%d\n", res, ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->them.sin_addr), ntohs(rtp->them.sin_port));
#endif
}
- if (x ==0) {
+ if (x == 2) {
/* Clear marker bit and increment seqno */
rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
/* Make duration 800 (100ms) */
rtpheader[3] |= htonl((800));
/* Set the End bit for the last 3 */
rtpheader[3] |= htonl((1 << 23));
- } else if ( x < 3) {
+ } else if ( x < 5) {
rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
}
}
More information about the svn-commits
mailing list