<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15715">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Give error when TLS transport configured but not supported.<br><br>Change-Id: I058af496021ff870ccec2d8cbade637b348ab80b<br>---<br>M res/res_pjsip/config_transport.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/15/15715/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c</span><br><span>index 6e449c3..830b038 100644</span><br><span>--- a/res/res_pjsip/config_transport.c</span><br><span>+++ b/res/res_pjsip/config_transport.c</span><br><span>@@ -800,8 +800,8 @@</span><br><span> res = pjsip_tcp_transport_start3(ast_sip_get_pjsip_endpoint(), &cfg,</span><br><span> &temp_state->state->factory);</span><br><span> }</span><br><span style="color: hsl(0, 100%, 40%);">-#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0</span><br><span> } else if (transport->type == AST_TRANSPORT_TLS) {</span><br><span style="color: hsl(120, 100%, 40%);">+#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0</span><br><span> static int option = 1;</span><br><span> </span><br><span> if (transport->async_operations > 1 && ast_compare_versions(pj_get_version(), "2.5.0") < 0) {</span><br><span>@@ -831,6 +831,10 @@</span><br><span> &temp_state->state->host, NULL, transport->async_operations,</span><br><span> &temp_state->state->factory);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_log(LOG_ERROR, "Transport: %s: PJSIP has not been compiled with TLS transport support, ensure OpenSSL development packages are installed\n",</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_sorcery_object_get_id(obj));</span><br><span style="color: hsl(120, 100%, 40%);">+ return -1;</span><br><span> #endif</span><br><span> } else if ((transport->type == AST_TRANSPORT_WS) || (transport->type == AST_TRANSPORT_WSS)) {</span><br><span> if (transport->cos || transport->tos) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15715">change 15715</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/+/15715"/><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: I058af496021ff870ccec2d8cbade637b348ab80b </div>
<div style="display:none"> Gerrit-Change-Number: 15715 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>