<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'>> @@ -1343,7 +256,7 @@ static int tls_conn_init(struct tcp_connection* c)
>                 if (!avp) {
>                         LM_DBG("no TLS client doman AVP set, looking "
>                                 "for socket based TLS client domain\n");
> -                        dom = tls_find_client_domain(&c->rcv.src_ip, c->rcv.src_port);
> +                        dom = tls_mgm_api.find_client_domain(&c->rcv.src_ip, c->rcv.src_port);
>                         if (dom) {
>                                 LM_DBG("found socket based TLS client domain "
>                                         "[%s:%d]\n", ip_addr2a(&dom->addr), dom->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;">—<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>