<div dir="ltr">I have a basic setup where kamailio receives SIP over websocket (no WSS) and forwards to SIP server over TLS. I have enabled TLS in kamailio.cfg and added dispatcher node as sips:SIP_SERVER:5061 and transport=tls.<div><br></div><div>+----+-------+------------------------+-------+----------+---------------+----------------+<br>| id | setid | destination            | flags | priority | attrs         | description    |<br>+----+-------+------------------------+-------+----------+---------------+----------------+<br>|  4 |     1 | sips:<a href="http://10.0.0.100:5061">10.0.0.100:5061</a> |     0 |        0 | transport=tls | SIP SERVER |<br>+----+-------+------------------------+-------+----------+---------------+----------------+<br></div><div><br></div><div>Now when REGISTER is received over websocket, kamailio is responding with error code 500 and phrase "500 I'm terribly sorry, server error occurred (7/SL)". And on the console I see the following error messages.</div><div><br></div><div>12(33858) DEBUG: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} <core> [core/md5utils.c:67]: MD5StringArray(): MD5 calculated: f1ecf7bcb659b07fe81e332e100044e5<br><span style="background-color:rgb(182,215,168)">12(33858) ERROR: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} tm [ut.h:315]: uri2dst2(): no corresponding socket found for "10.0.0.100" af 2 (tls:<a href="http://10.0.0.100:5061">10.0.0.100:5061</a>)<br>12(33858) ERROR: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} tm [t_fwd.c:467]: prepare_new_uac(): can't fwd to af 2, proto 3  (no corresponding listening socket)<br>12(33858) ERROR: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} tm [t_fwd.c:1735]: t_forward_nonack(): failure to add branches</span><br>12(33858) DEBUG: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} tm [t_funcs.c:334]: t_relay_to(): t_forward_nonack returned error -7 (-7)<br>12(33858) DEBUG: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} tm [t_funcs.c:352]: t_relay_to(): -7 error reply generation delayed<br>12(33858) exec: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} *** cfgtrace:request_route=[RELAY] c=[/etc/kamailio/kamailio.cfg] l=587 a=24 n=sl_reply_error<br>12(33858) DEBUG: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} <core> [core/msg_translator.c:162]: check_via_address(): (10.0.0.14, hsvmphm3ps12.invalid, 0)<br>12(33858) DEBUG: {1 2521 REGISTER o9q7ujqgin33qgp00abijv} websocket [ws_conn.c:452]: wsconn_get(): wsconn_get for id [3]<br></div><div><br></div><div><b>tls.cfg contents</b></div><div>[client:default]<br>method = TLSv1<br>verify_certificate = yes<br>require_certificate = yes<br>private_key = /home/test/kamailio/internal.key<br>certificate = /home/test/kamailio/internal.crt<br>ca_list = /home/test/kamailio/ca_list.pem<br></div><div><br></div><div>Any reason why this error is seen? Any inputs appreciated.</div><div><br></div><div>Thanks.</div></div>