ensure we record the last seqno we transmitted (bug #4659)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 14 Jul 2005 23:58:36 +0000 (23:58 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 14 Jul 2005 23:58:36 +0000 (23:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6129 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 37fca38..2f2cc33 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -1137,6 +1137,10 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
           have some 'dead air' in between them
        */
        rtp->lastdigitts += 960;
           have some 'dead air' in between them
        */
        rtp->lastdigitts += 960;
+       /* Increment the sequence number to reflect the last packet
+          that was sent
+       */
+       rtp->seqno++;
        return 0;
 }
 
        return 0;
 }