<p>I have some Zoiper/Android clients which use TLS, but don't (yet) have the ability to specify the certificate that is used and don't seem to send a certificate when receiving a call.  When Kamailio routes a call to one of these devices that register with dynamic addresses, Kamailio (acting as a client) won't be able verify the the device's (acting a a server) certificate.  I'd like to set my default client settings to verify the certificate IF it is provided. Something like what is available for <code>[server:default]</code>.</p>

<pre><code>[client:default]
verify_certificate = yes
require_certificate = no
</code></pre>

<p>When testing to see what (if any) certificate Zoiper sends when Zoiper receives a TLS connection, I only get the following.  </p>

<pre><code>$ openssl s_client -connect 10.1.1.201:43965 -tls1 -showcerts
socket: Bad file descriptor
connect:errno=9
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/551#issuecomment-204161446">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQPy3dCV3vsrDDo2cnq0vBkOfo99ks5pzE55gaJpZM4H5UGn.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/551#issuecomment-204161446"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>