Ok, I have adapted the default for set_contact_alias and handle_ruri_alias (you meant ruri not uri, right? i cant find handle_uri_alias in the nathelper module)
Now I've tried some new scenarios:
Using JSSIP instead of SIPML5
Calling with a peer connected to Asterisk directly to WebRTC client works fine
The inverse scenario (from WebRTC client JSSIP to Asterisk peer) fine
Also tried sip softphone connected directly to Kamailio to WebRTC client and works fine both ways
The problem ocurrs when I call from WebRTC client to WebRTC client
Both WebRTC client and SIP softphone (X-Lite) are being used from the same PC
First I tryed the JSSIp functionality "hack_ip_in_contact"
(Kamailio log)
Aug 8 15:13:12 ieol /usr/local/sbin/kamailio[9632]: WARNING: <core> [msg_translator.c:2506]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found
Aug 8 15:13:12 ieol /usr/local/sbin/kamailio[9632]: ERROR: <core> [msg_translator.c:1722]: build_req_buf_from_sip_req(): could not create Via header
Aug 8 15:13:12 ieol /usr/local/sbin/kamailio[9632]: ERROR: <core> [forward.c:585]: forward_request(): ERROR: forward_request: building failed
Aug 8 15:13:12 ieol /usr/local/sbin/kamailio[9632]: ERROR: sl [sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: I'm terribly sorry, server error occurred (1/SL)
(in Asterisk log)
But without that property set:
(Kamailio log)
Aug 8 15:16:25 ieol /usr/local/sbin/kamailio[9632]: ERROR: <core> [resolve.c:1733]: sip_hostport2su(): ERROR: sip_hostport2su: could not resolve hostname: "g7q0vsqch2ne.invalid"
Aug 8 15:16:25 ieol /usr/local/sbin/kamailio[9632]: ERROR: tm [ut.h:337]: uri2dst2(): failed to resolve "g7q0vsqch2ne.invalid"
Aug 8 15:16:25 ieol /usr/local/sbin/kamailio[9632]: ERROR: tm [t_fwd.c:1773]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Aug 8 15:16:25 ieol /usr/local/sbin/kamailio[9632]: ERROR: sl [sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: Unresolvable destination (478/SL)
(in Asterisk)
-- Got SIP response 478 "Unresolvable destination (478/SL)" back from
95.85.54.123:5060
I'm a little bit stucked with this :(
Regards,
Manuel