[OpenSIPS-Users] UAC_REGISTRANT module supports WSS ?

sagar malam sagarmalam at gmail.com
Fri Oct 16 10:47:22 EST 2020


Hi,

I am getting this error when registrant tried to register via wss :
opensips | Oct 16 10:26:54 [18] DBG:uac_registrant:timer_check: checking
... [1602844014] on htable[3]
opensips | Oct 16 10:26:54 [18] DBG:uac_registrant:send_register:
extra_hdrs=[0x7f788f899340][73]->[Contact: <sip:www.test.net:7442;transp
ort=wss>;expires=3600
opensips | ]
opensips | Oct 16 10:26:54 [18] DBG:tm:t_uac: next_hop=<sip:www.test.net>
opensips | Oct 16 10:26:54 [18] DBG:core:mk_proxy: doing DNS lookup...
opensips | Oct 16 10:26:54 [18] DBG:core:sip_resolvehost: no port, has
proto -> do SRV lookup!
opensips | Oct 16 10:26:54 [18] DBG:core:get_record: lookup(_wss._
tcp.www.test.net, 33) failed
opensips | Oct 16 10:26:54 [18] DBG:core:sip_resolvehost: no valid SRV
record found for _wss._tcp.www.test.net, trying A record lookup...
opensips | Oct 16 10:26:54 [18] DBG:tm:t_uac: sending socket is
95.216.149.126
opensips | Oct 16 10:26:54 [18] DBG:tm:print_request_uri: sip:www.test.net
opensips | Oct 16 10:26:54 [18] DBG:proto_wss:proto_wss_send: no open tcp
connection found, opening new one
opensips | Oct 16 10:26:54 [18] DBG:core:probe_max_sock_buff: getsockopt:
snd is initially 16384
opensips | Oct 16 10:26:54 [18] INFO:core:probe_max_sock_buff: using snd
buffer of 416 kb
opensips | Oct 16 10:26:54 [18] INFO:core:init_sock_keepalive: TCP
keepalive enabled on socket 4
opensips | Oct 16 10:26:54 [18] DBG:core:print_ip: tcpconn_new: new tcp
connection to: 95.217.219.36
opensips | Oct 16 10:26:54 [18] DBG:core:tcpconn_new: on port 443, proto 6
opensips | Oct 16 10:26:54 [18] DBG:proto_wss:tls_conn_init: Creating a
whole new ssl connection


*opensips | Oct 16 10:26:54 [18] ERROR:proto_wss:tls_conn_init: no TLS
client domain found opensips | Oct 16 10:26:54 [18]
ERROR:proto_wss:wss_conn_init: Cannot initiate the conn *opensips | Oct 16
10:26:54 [18] ERROR:core:tcp_conn_new: failed to do proto 6 specific init
for conn 0x7f789112cd20
opensips | Oct 16 10:26:54 [18] DBG:core:tcpconn_destroy: destroying
connection 0x7f789112cd20, flags 0018
opensips | Oct 16 10:26:54 [18] ERROR:proto_wss:ws_sync_connect:
tcp_conn_create failed, closing the socket
opensips | Oct 16 10:26:54 [18] ERROR:proto_wss:ws_connect: connect failed
opensips | Oct 16 10:26:54 [18] ERROR:proto_wss:proto_wss_send: connect
failed
opensips | Oct 16 10:26:54 [18] ERROR:tm:msg_send: send() to
95.217.219.36:443 for proto wss/6 failed
opensips | Oct 16 10:26:54 [18] ERROR:tm:t_uac: attempt to send to 'sip:
www.test.net' failed
opensips | Oct 16 10:26:54 [18] DBG:tm:insert_timer_unsafe: [0]:
0x7f789112b260 (145)
opensips | Oct 16 10:26:54 [18] DBG:uac_registrant:send_register: result=[1]

I know that I have to define client domain avp but I am not sure how and
where to it from.This is tls mgm config :
loadmodule "tls_mgm.so"
modparam("tls_mgm", "server_domain", "dom1")
modparam("tls_mgm", "tls_method", "[dom1]TLSv1_2")
modparam("tls_mgm", "match_sip_domain", "[dom1]www.test.net")
modparam("tls_mgm", "match_ip_address", "[dom1]95.216.149.126:7442")
modparam("tls_mgm", "certificate", "[dom1]/mycerts/certs/cert.pem")
modparam("tls_mgm", "private_key", "[dom1]/mycerts/private/privkey.pem")
modparam("tls_mgm", "ca_list", "[dom1]/mycerts/certs/chain.pem")
modparam("tls_mgm", "require_cert", "[dom1]0")
modparam("tls_mgm", "verify_cert", "[dom1]0")

OpenSIPS version is 3.1.0.

Please help me on this

On Wed, Sep 16, 2020 at 10:23 PM sagar malam <sagarmalam at gmail.com> wrote:

> Thanks Liviu. I will try it
>
> On Wed, 16 Sep 2020, 7:31 pm Liviu Chircu, <liviu at opensips.org> wrote:
>
>> On 15.09.2020 16:31, sagar malam wrote:
>> > I want to use UAC REGISTRANT module to register with remote registrar.
>> > Does it support it ?
>> > https://opensips.org/html/docs/modules/2.3.x/uac_registrant.html
>>
>> Hey, Sagar!
>>
>> I don't see why not!  The transport layer is decoupled from all modules,
>> so even if uac_registrant ends up calling the famous msg_send()
>> function, I would expect it to properly send out the message, even if it
>> has to do multiple handshakes beforehand: first TLS, then WS.
>>
>> Best regards,
>>
>> --
>> Liviu Chircu
>> www.twitter.com/liviuchircu | www.opensips-solutions.com
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>

-- 
Thanks,

Sagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201016/72712a26/attachment.html>


More information about the Users mailing list