diff options
author | Mark Spencer <markster@digium.com> | 2004-11-19 05:24:45 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-11-19 05:24:45 +0000 |
commit | 3884b05a0eeb7b1e6c3f739ffdc8bc3151d8518e (patch) | |
tree | de05cb6301d045de5e7ba3152a20087b4cd4259e /rtp.c | |
parent | 066d22ae0d710bd21bb59bb7fc802c6d7149d0d5 (diff) |
Increment seqno in RTP in RFC2833 (bug #2902)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1073,6 +1073,8 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit) rtpheader[3] |= htonl((800)); /* Set the End bit for the last 3 */ rtpheader[3] |= htonl((1 << 23)); + } else if ( x < 3) { + rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++)); } } return 0; |