Skip to content
Snippets Groups Projects
Commit 3884b05a authored by Mark Spencer's avatar Mark Spencer
Browse files

Increment seqno in RTP in RFC2833 (bug #2902)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 066d22ae
Branches
Tags
No related merge requests found
...@@ -1073,6 +1073,8 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit) ...@@ -1073,6 +1073,8 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
rtpheader[3] |= htonl((800)); rtpheader[3] |= htonl((800));
/* Set the End bit for the last 3 */ /* Set the End bit for the last 3 */
rtpheader[3] |= htonl((1 << 23)); rtpheader[3] |= htonl((1 << 23));
} else if ( x < 3) {
rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
} }
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment