[OpenSIPS-Users] ws and hold problem

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jun 3 03:37:26 EDT 2019


Hi Mikhail,

When using WS(S), for the messages coming from the WS(S) endpoint ( with 
Contact with "invalid") you need to do "fix_nated_contact()", to 
transform that contact into a routable SIP URI.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 05/25/2019 03:35 AM, Mikhail wrote:
> Hi
>
> opensips 2.4 and rtpengine.
> webrtc SIP clients based on jsSIP 3.3.6
> to accounts jssip1 and jssip2
>
> jssip1 calls jssip2 or jssip2 calls jssip1 - call established
> jssip1 place call on hold and then unhold - no problem
> now if jssip2 place call on hold it receives SIP/2.0 476 Unresolvable 
> destination (476/TM) from opensips and call brakes.
> also in opensips.log there are a messages like this:
> May 25 02:42:41 opensips-01 /usr/sbin/opensips[19704]: 
> CRITICAL:core:mk_proxy: could not resolve hostname: 
> "djgppiddv7t0.invalid"
> May 25 02:42:41 opensips-01 /usr/sbin/opensips[19704]: 
> ERROR:tm:uri2proxy: bad host name in URI 
> <sip:lp7tmvt6 at djgppiddv7t0.invalid;transport=ws;ob>
> May 25 02:42:41 opensips-01 /usr/sbin/opensips[19704]: 
> ERROR:tm:t_forward_nonack: failure to add branches
>
> what i found:
>
> While call setup jsip1 sends initial invite:
> INVITE sip:jsip2 at 192.168.18.78 SIP/2.0
> Contact: <sip:lp7tmvt6 at djgppiddv7t0.invalid;transport=ws;ob>
>
> server resends  to jsip2 invite and replaces Contact with the real ip 
> of jsip1:
> INVITE sip:60s8k9ep at 192.168.21.117:49882;transport=ws SIP/2.0
> Contact: <sip:lp7tmvt6 at 10.20.32.10:46099;transport=ws;ob>
>
>
> When jssip1 place call on hold or unhold, it sends invite to server with
> INVITE sip:60s8k9ep at 192.168.21.117:51630;transport=ws SIP/2.0
> Contact: <sip:lp7tmvt6 at djgppiddv7t0.invalid;transport=ws;ob>
>
> server resends  to jsip2 invite and do not changes Contact:
> INVITE sip:60s8k9ep at 192.168.21.117:51630;transport=ws SIP/2.0
> Contact: <sip:lp7tmvt6 at djgppiddv7t0.invalid;transport=ws;ob>
>
> Next, when jssip2 places call on hold, it sends invite:
> INVITE sip:lp7tmvt6 at djgppiddv7t0.invalid;transport=ws;ob SIP/2.0
> and server can't resolve djgppiddv7t0.invalid, it expects real address 
> here
>
>
> does anybody have an idea, who is responsible for the problem - jssip, 
> opensips or rtpengine ?
>
>
> Laba Mikhail
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list