Increment seqno in RTP in RFC2833 (bug #2902)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4293 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
5ac18d7092
commit
675d834dc9
1 changed files with 2 additions and 0 deletions
2
rtp.c
2
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;
|
||||
|
|
Reference in a new issue