<p>In <a href="https://github.com/OpenSIPS/opensips/pull/629#discussion_r38750205">modules/proto_tls/proto_tls.c</a>:</p>
<pre style='color:#555'>&gt; @@ -1343,7 +256,7 @@ static int tls_conn_init(struct tcp_connection* c)
&gt;                  if (!avp) {
&gt;                          LM_DBG(&quot;no TLS client doman AVP set, looking &quot;
&gt;                                  &quot;for socket based TLS client domain\n&quot;);
&gt; -                        dom = tls_find_client_domain(&amp;c-&gt;rcv.src_ip, c-&gt;rcv.src_port);
&gt; +                        dom = tls_mgm_api.find_client_domain(&amp;c-&gt;rcv.src_ip, c-&gt;rcv.src_port);
&gt;                          if (dom) {
&gt;                                  LM_DBG(&quot;found socket based TLS client domain &quot;
&gt;                                          &quot;[%s:%d]\n&quot;, ip_addr2a(&amp;dom-&gt;addr), dom-&gt;port);
</pre>
<p>The tls_client_domain_avp should not be visible in the proto_tls module. The avp search should be done internally in the tls_mgm module and the "domain" should be returned directly.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/629/files#r38750205">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWgQV4gOpGwav32EC21evMgutMzDks5ouZHEgaJpZM4F33dj.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/OpenSIPS/opensips/pull/629/files#r38750205"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>