<p><a href="https://gerrit.osmocom.org/c/osmo-sip-connector/+/15142">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15142/1//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15142/1//COMMIT_MSG@9">Patch Set #1, Line 9:</a> <code style="font-family:monospace,monospace">mncc.c often calls stop_cmd_timer() even if no timer is running. If no timer is</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I can't say I've seen this "often". […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">"often": I thought I saw it every time I end a call...? not positively sure since recently I always ran with this patch. But I did see it repeatedly before patching.</p><p style="white-space: pre-wrap; word-wrap: break-word;">There are various places calling the stop_cmd_timer() function. Each one of those invocations would have to become</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  if (...timer->active)<br>      stop_cmd_timer();</pre><p style="white-space: pre-wrap; word-wrap: break-word;">thus it makes more sense to me to check for that once, inside the function.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15142/1/src/mncc.c">File src/mncc.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15142/1/src/mncc.c@74">Patch Set #1, Line 74:</a> <code style="font-family:monospace,monospace">     if (!osmo_timer_pending(&leg->cmd_timeout))</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">As far as I can make out, we only start timers immediately before sending an MNCC command to which w […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I got this:</p><p style="white-space: pre-wrap; word-wrap: break-word;">http://people.osmocom.org/neels/izap8No0/osmo-sip-connector.log.txt</p><p style="white-space: pre-wrap; word-wrap: break-word;">so it seems that the REL_CNF stopped the timer as a "stop it in case it is running" measure. those should IMHO not cause error logs if none was running.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sip-connector/+/15142">change 15142</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-sip-connector/+/15142"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sip-connector </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I70f85a71df55ab8618ed78864cefb6fe5b26f581 </div>
<div style="display:none"> Gerrit-Change-Number: 15142 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 13 Aug 2019 22:09:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>