mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
fix repeated sequence numbers (bug 2902)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
rtp.c
2
rtp.c
@@ -1037,6 +1037,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;
|
||||||
|
Reference in New Issue
Block a user