<p>Sébastien Duthil has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16144">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stun: Emit warning message when STUN request times out<br><br>Without this message, it is not obvious that the reason is STUN timeout.<br><br>ASTERISK-29507 #close<br><br>Change-Id: I26e4853c23a1aed324552e1b9683ea3c05cb1f74<br>---<br>M main/stun.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/16144/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/stun.c b/main/stun.c</span><br><span>index e917944..4c3dc93 100644</span><br><span>--- a/main/stun.c</span><br><span>+++ b/main/stun.c</span><br><span>@@ -438,6 +438,7 @@</span><br><span>                       ms = ast_remaining_ms(start, 3000);</span><br><span>                  if (ms <= 0) {</span><br><span>                            /* No response, timeout */</span><br><span style="color: hsl(120, 100%, 40%);">+                            ast_log(LOG_WARNING, "STUN request number %d timed out.\n", retry);</span><br><span>                                res = 1;</span><br><span>                             continue;</span><br><span>                    }</span><br><span>@@ -448,6 +449,7 @@</span><br><span>                      }</span><br><span>                    if (!res) {</span><br><span>                          /* No response, timeout */</span><br><span style="color: hsl(120, 100%, 40%);">+                            ast_log(LOG_WARNING, "STUN request number %d timed out.\n", retry);</span><br><span>                                res = 1;</span><br><span>                             continue;</span><br><span>                    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16144">change 16144</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/c/asterisk/+/16144"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I26e4853c23a1aed324552e1b9683ea3c05cb1f74 </div>
<div style="display:none"> Gerrit-Change-Number: 16144 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sébastien Duthil <sduthil@wazo.community> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>