From 675d834dc930bef980382075d5faefd7adb93198 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 19 Nov 2004 05:24:45 +0000 Subject: Increment seqno in RTP in RFC2833 (bug #2902) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4293 f38db490-d61c-443f-a65b-d21fe96a405b --- rtp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rtp.c') diff --git a/rtp.c b/rtp.c index b33be20d8..8dc7a2fef 100755 --- a/rtp.c +++ b/rtp.c @@ -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; -- cgit v1.2.3