<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7004">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
</div><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 existence 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;">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/7004">change 7004</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/7004"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ie3b5fb421977ccdb33e415d4ec52c3fd192601b7 </div>
<div style="display:none"> Gerrit-Change-Number: 7004 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>