<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7007">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Ignore empty TLS configuration<br><br>When using realtime, fields that are not explicitly set by an<br>administrator are still presented to sorcery as empty strings. Handle<br>this case explicitly.<br><br>In this particular case, if any of these fields are required for TLS<br>support, their existance should be validated in the 'apply' handler once<br>we have a complete transport definition.<br><br>ASTERISK-27032 #close<br>Reported by: seanchann.zhou<br><br>Change-Id: Ie3b5fb421977ccdb33e415d4ec52c3fd192601b7<br>---<br>M res/res_pjsip/config_transport.c<br>1 file changed, 5 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/07/7007/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c<br>index 0c804b8..2f29456 100644<br>--- a/res/res_pjsip/config_transport.c<br>+++ b/res/res_pjsip/config_transport.c<br>@@ -683,6 +683,11 @@<br>            return -1;<br>    }<br> <br>+ if (ast_strlen_zero(var->value)) {<br>+                /* Ignore empty options */<br>+           return 0;<br>+    }<br>+<br>  if (!ast_file_is_readable(var->value)) {<br>           ast_log(LOG_ERROR, "Transport: %s: %s %s is either missing or not readable\n",<br>                      ast_sorcery_object_get_id(obj), var->name, var->value);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7007">change 7007</a>. To unsubscribe, 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/7007"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie3b5fb421977ccdb33e415d4ec52c3fd192601b7 </div>
<div style="display:none"> Gerrit-Change-Number: 7007 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>