[asterisk-commits] oej: branch oej/pinefool-poor-mans-plc-1.8 r414996 - /team/oej/pinefool-poor-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 2 09:32:53 CDT 2014
Author: oej
Date: Mon Jun 2 09:32:50 2014
New Revision: 414996
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=414996
Log:
Commit old stuff
Modified:
team/oej/pinefool-poor-mans-plc-1.8/res/res_rtp_asterisk.c
Modified: team/oej/pinefool-poor-mans-plc-1.8/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinefool-poor-mans-plc-1.8/res/res_rtp_asterisk.c?view=diff&rev=414996&r1=414995&r2=414996
==============================================================================
--- team/oej/pinefool-poor-mans-plc-1.8/res/res_rtp_asterisk.c (original)
+++ team/oej/pinefool-poor-mans-plc-1.8/res/res_rtp_asterisk.c Mon Jun 2 09:32:50 2014
@@ -176,6 +176,7 @@
struct ast_smoother *smoother;
int *ioid;
unsigned short seqno; /*!< Sequence number, RFC 3550, page 13. */
+ unsigned short prev_frame_seqno; /*!< Sequence number of previous packet */
unsigned short rxseqno;
struct sched_context *sched;
struct io_context *io;
@@ -905,6 +906,16 @@
rtp->ssrc = ssrc;
return;
+}
+
+static void increment_seqno(struct ast_rtp *rtp, struct ast_frame *f)
+{
+ if (f != NULL) {
+ rtp->prev_frame_seqno = f->seqno;
+ } else {
+ rtp->prev_frame_seqno = 0; /* Reset if we're sending DTMF or so */
+ }
+ rtp->seqno++;
}
static void timeval2ntp(struct timeval tv, unsigned int *msw, unsigned int *lsw)
More information about the asterisk-commits
mailing list