<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14211">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: DiffServ/ToS not only on UDP but also on TCP and TLS sockets.<br><br>ASTERISK-27195<br>Reported by: Joshua Roys<br><br>Change-Id: I6e72ecb874200dec7a3865c7babaf5ac0d3101de<br>---<br>M channels/chan_sip.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></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 078cf10..9bc282b 100644</span><br><span>--- a/channels/chan_sip.c</span><br><span>+++ b/channels/chan_sip.c</span><br><span>@@ -29696,6 +29696,8 @@</span><br><span> goto create_tcptls_session_fail;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ ast_set_qos(s->fd, global_tos_sip, global_cos_sip, "SIP");</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> return s->fd;</span><br><span> </span><br><span> create_tcptls_session_fail:</span><br><span>@@ -33510,6 +33512,7 @@</span><br><span> if (setsockopt(sip_tcp_desc.accept_fd, SOL_SOCKET, SO_KEEPALIVE, &flags, sizeof(flags))) {</span><br><span> ast_log(LOG_ERROR, "Error enabling TCP keep-alive on sip socket: %s\n", strerror(errno));</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_set_qos(sip_tcp_desc.accept_fd, global_tos_sip, global_cos_sip, "SIP");</span><br><span> }</span><br><span> }</span><br><span> </span><br><span>@@ -33537,6 +33540,7 @@</span><br><span> ast_log(LOG_ERROR, "Error enabling TCP keep-alive on sip socket: %s\n", strerror(errno));</span><br><span> sip_tls_desc.tls_cfg = NULL;</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_set_qos(sip_tls_desc.accept_fd, global_tos_sip, global_cos_sip, "SIP");</span><br><span> }</span><br><span> } else if (sip_tls_desc.tls_cfg->enabled) {</span><br><span> sip_tls_desc.tls_cfg = NULL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14211">change 14211</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/+/14211"/><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: I6e72ecb874200dec7a3865c7babaf5ac0d3101de </div>
<div style="display:none"> Gerrit-Change-Number: 14211 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>