<p>Jaco Kroon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13366">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip:  in case of tcp/tls, be less annoying about tx errors.<br><br>chan_sip.c:3782 __sip_xmit: sip_xmit of 0x7f1478069230 (len 600) to<br>213.150.203.60:1492 returned -2: Interrupted system call<br><br>returned -2 implies this wasn't actually an OS error, so errno makes no<br>sense either.  Internal error was already logged higher up, and -2<br>generally means that either there isn't a valid connection available, or<br>the pipe notification failed, and that is already correctly logged.<br><br>Change-Id: I46eb82924beeff9dfd86fa6c7eb87d2651b950f2<br>---<br>M channels/chan_sip.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/66/13366/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_sip.c b/channels/chan_sip.c</span><br><span>index ea78d23..5ed3722 100644</span><br><span>--- a/channels/chan_sip.c</span><br><span>+++ b/channels/chan_sip.c</span><br><span>@@ -3758,6 +3758,8 @@</span><br><span>                res = ast_sendto(p->socket.fd, ast_str_buffer(data), ast_str_strlen(data), 0, dst);</span><br><span>       } else if (p->socket.tcptls_session) {</span><br><span>            res = sip_tcptls_write(p->socket.tcptls_session, ast_str_buffer(data), ast_str_strlen(data));</span><br><span style="color: hsl(120, 100%, 40%);">+              if (res < -1)</span><br><span style="color: hsl(120, 100%, 40%);">+                      return res;</span><br><span>  } else if (p->socket.ws_session) {</span><br><span>                if (!(res = ast_websocket_write_string(p->socket.ws_session, ast_str_buffer(data)))) {</span><br><span>                    /* The WebSocket API just returns 0 on success and -1 on failure, while this code expects the payload length to be returned */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13366">change 13366</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/+/13366"/><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-Change-Id: I46eb82924beeff9dfd86fa6c7eb87d2651b950f2 </div>
<div style="display:none"> Gerrit-Change-Number: 13366 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>