diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-25 07:04:04 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-25 07:04:04 +0000 |
commit | b4fc6dac9aa812559b13b3145e998ead10fde45b (patch) | |
tree | ad555ff9c3c7e3530595ec4918eace4171d35962 | |
parent | e1c87b947a22ae62aab4611f5a118348f172fc3b (diff) |
fix repeated sequence numbers (bug 2902)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4336 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1037,6 +1037,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; |