<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10815">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Remove some unused structure fields.<br><br>All of the fields that were removed were no longer referenced except for<br>'lastrxts' and 'rxseqno' which were only ever written to.<br><br>Change-Id: I5a5d31eb33e97663843698f58d0d97f22a76627c<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 0 insertions(+), 18 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/15/10815/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index 164e54d..c0e9e63 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -304,12 +304,10 @@</span><br><span>      unsigned int themssrc;          /*!< Their SSRC */</span><br><span>        unsigned int themssrc_valid;    /*!< True if their SSRC is available. */</span><br><span>  unsigned int lastts;</span><br><span style="color: hsl(0, 100%, 40%);">-    unsigned int lastrxts;</span><br><span>       unsigned int lastividtimestamp;</span><br><span>      unsigned int lastovidtimestamp;</span><br><span>      unsigned int lastitexttimestamp;</span><br><span>     unsigned int lastotexttimestamp;</span><br><span style="color: hsl(0, 100%, 40%);">-        unsigned int lasteventseqn;</span><br><span>  int lastrxseqno;                /*!< Last received sequence number */</span><br><span>     unsigned short seedrxseqno;     /*!< What sequence number did they start with?*/</span><br><span>  unsigned int seedrxts;          /*!< What RTP timestamp did they start with? */</span><br><span>@@ -323,10 +321,6 @@</span><br><span>    struct ast_format *lasttxformat;</span><br><span>     struct ast_format *lastrxformat;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    int rtptimeout;                 /*!< RTP timeout time (negative or zero means disabled, negative value means temporarily disabled) */</span><br><span style="color: hsl(0, 100%, 40%);">-        int rtpholdtimeout;             /*!< RTP timeout when on hold (negative or zero means disabled, negative value means temporarily disabled). */</span><br><span style="color: hsl(0, 100%, 40%);">-       int rtpkeepalive;               /*!< Send RTP comfort noice packets for keepalive */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>      /* DTMF Reception Variables */</span><br><span>       char resp;                        /*!< The current digit being processed */</span><br><span>       unsigned int last_seqno;          /*!< The last known sequence number for any DTMF packet */</span><br><span>@@ -345,17 +339,11 @@</span><br><span>      struct timeval rxcore;</span><br><span>       struct timeval txcore;</span><br><span>       double drxcore;                 /*!< The double representation of the first received packet */</span><br><span style="color: hsl(0, 100%, 40%);">-       struct timeval lastrx;          /*!< timeval when we last received a packet */</span><br><span>    struct timeval dtmfmute;</span><br><span>     struct ast_smoother *smoother;</span><br><span style="color: hsl(0, 100%, 40%);">-  int *ioid;</span><br><span>   unsigned short seqno;           /*!< Sequence number, RFC 3550, page 13. */</span><br><span style="color: hsl(0, 100%, 40%);">-  unsigned short rxseqno;</span><br><span>      struct ast_sched_context *sched;</span><br><span style="color: hsl(0, 100%, 40%);">-        struct io_context *io;</span><br><span style="color: hsl(0, 100%, 40%);">-  void *data;</span><br><span>  struct ast_rtcp *rtcp;</span><br><span style="color: hsl(0, 100%, 40%);">-  struct ast_rtp *bridged;        /*!< Who we are Packet bridged to */</span><br><span>      unsigned int asymmetric_codec;  /*!< Indicate if asymmetric send/receive codecs are allowed */</span><br><span> </span><br><span>        enum strict_rtp_state strict_rtp_state; /*!< Current state that strict RTP protection is in */</span><br><span>@@ -5558,7 +5546,6 @@</span><br><span>                            ast_sockaddr_copy(&rtp->rtcp->them, &addr);</span><br><span>                            ast_sockaddr_set_port(&rtp->rtcp->them, ast_sockaddr_port(&addr) + 1);</span><br><span>                         }</span><br><span style="color: hsl(0, 100%, 40%);">-                       rtp->rxseqno = 0;</span><br><span>                         ast_set_flag(rtp, FLAG_NAT_ACTIVE);</span><br><span>                  if (rtpdebug)</span><br><span>                                ast_debug(0, "RTP NAT: Got audio from other end. Now sending to address %s\n",</span><br><span>@@ -5743,7 +5730,6 @@</span><br><span>                     ast_codec_media_type2str(ast_format_get_type(rtp->f.subclass.format)));</span><br><span>           return &ast_null_frame;</span><br><span>  }</span><br><span style="color: hsl(0, 100%, 40%);">-       rtp->rxseqno = seqno;</span><br><span> </span><br><span>         if (rtp->dtmf_timeout && rtp->dtmf_timeout < timestamp) {</span><br><span>           rtp->dtmf_timeout = 0;</span><br><span>@@ -5759,8 +5745,6 @@</span><br><span>            }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   rtp->lastrxts = timestamp;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>        rtp->f.src = "RTP";</span><br><span>     rtp->f.mallocd = 0;</span><br><span>       rtp->f.datalen = res - hdrlen;</span><br><span>@@ -6058,8 +6042,6 @@</span><br><span>            rtp->rtcp->local_addr_str = ast_strdup(ast_sockaddr_stringify(&local));</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   rtp->rxseqno = 0;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>         if (strictrtp && rtp->strict_rtp_state != STRICT_RTP_OPEN</span><br><span>                 && !ast_sockaddr_isnull(addr) && ast_sockaddr_cmp(addr, &rtp->strict_rtp_address)) {</span><br><span>          /* We only need to learn a new strict source address if we've been told the source is</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10815">change 10815</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10815"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5a5d31eb33e97663843698f58d0d97f22a76627c </div>
<div style="display:none"> Gerrit-Change-Number: 10815 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>