aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-25 07:04:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-25 07:04:04 +0000
commitb4fc6dac9aa812559b13b3145e998ead10fde45b (patch)
treead555ff9c3c7e3530595ec4918eace4171d35962
parente1c87b947a22ae62aab4611f5a118348f172fc3b (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-xrtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index bf122ff7b..b83e47b8b 100755
--- a/rtp.c
+++ b/rtp.c
@@ -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;