<div dir="ltr"><div dir="ltr">[SOLVED]</div><div><br></div>Thanks Stas. Your workaround did solve the problem and I see that with 3.1 path support is baked into mid-registrar module as options to mid_registrar_save().<div><br></div><div>Once we added in the path module functionality, at first it didn't work. Looking at sngrep traces we could see that the path information was appended on the inbound route from OpenSIPS to Asterisk, but when Asterisk made the call to the outbound destination it failed to include it as route info. This was resolved by setting supportpath="yes" in sip.conf and worked with CHAN_SIP. We tried to get it working with PJSIP without any joy but it's not a priority for us at the moment so we'll have to investigate the cause later.</div><div><br></div><div>Thanks for your help Stas, and thanks also to the others who took the time to reply.</div><div><br></div><div>cheers,</div><div><br></div><div>Mark</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 Jul 2020 at 16:23, Stas Kobzar <<a href="mailto:staskobzar@gmail.com">staskobzar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Mark,<br>
<br>
I had a similar challenge. Using "path" module on both opensips helps<br>
to overcome this problem.<br>
<a href="https://opensips.org/docs/modules/3.2.x/path.html" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.2.x/path.html</a><br>
<br>
In your mid-registerer you need to enable path support. See "save"<br>
function params p0 and v.<br>
in your webrtc opensips use path module and function add_path_received<br>
<br>
On Tue, Jul 14, 2020 at 11:14 AM Mark Allen <<a href="mailto:mark@allenclan.co.uk" target="_blank">mark@allenclan.co.uk</a>> wrote:<br>
><br>
> I'm new to OpenSIPS and I've hit a problem I can't find a way past<br>
><br>
> We have a test setup with an OpenSIPS mid-registrar in front of an Asterisk PBX. Mid-registrar is currently in mode 1 (registration throttling). We have SIP and WebRTC endpoints that we want to use.<br>
><br>
> Current state is:<br>
><br>
> REGISTER: WebRTC webphone (Mizutech) -> OpenSIPS Mid-registrar -> Asterisk = success<br>
> REGISTER: SIP softphone (LinPhone) -> OpenSIPS Mid-registrar -> Asterisk = success<br>
><br>
> INVITE: SIP softphone -> OpenSIPS -> Asterisk -> OpenSIPS -> SIP softphone = success, call connects with audio both ways<br>
> INVITE: WebRTC webphone -> OpenSIPS -> Asterisk -> OpenSIPS -> SIP softphone = success, call connects with audio both ways<br>
> INVITE: SIP softphone -> OpenSIPS -> Asterisk -> OpenSIPS -> WebRTC webphone = fails with "476 Unresolvable destination"<br>
><br>
> syslog messages:<br>
> ERROR:core:sip_resolvehost: forced proto 6 not matching sips uri<br>
> CRITICAL:core:mk_proxy: could not resolve hostname: "4xp44jxl0qq0.invalid"<br>
> ERROR:tm:uri2proxy: bad host name in URI <sips:11001@4xp44jxl0qq0.invalid;rtcweb-breaker=yes;transport=wss><br>
> ERROR:tm:t_forward_nonack: failure to add branches<br>
><br>
><br>
> Following past reports that I've found with a similar error, fix_nated_contact() is run on INVITE messages just before rtpengine flags are set and the t_relay() command, but it doesn't appear to make any difference. If I change the t_relay() to t_relay(0x04,) to disable DNS Failover, I still see the same errors in the log file. I've also checked the record in the OpenSIPS DB "location" table and it seems to me that it has the correct contact_id and contact info for the destination...<br>
><br>
> contact_id: 2004383309156582802<br>
> contact: sips:11001@4xp44jxl0qq0.invalid;rtcweb-breaker=yes;transport=wss<br>
><br>
> I'm stuck on where I can go from here - any help very much appreciated!<br>
><br>
> thx<br>
><br>
> Mark<br>
><br>
><br>
> Setup:<br>
> OpenSIPS 3.0.2 on Debian Buster<br>
> RTPEngine Version: 8.4.0.0+0~mr8.4.0.0<br>
><br>
> INVITE:<br>
> 2020/07/14 14:22:06.176544 <a href="http://192.168.50.185:5060" rel="noreferrer" target="_blank">192.168.50.185:5060</a> -> <a href="http://192.168.50.69:5060" rel="noreferrer" target="_blank">192.168.50.69:5060</a><br>
> INVITE <a href="http://sip:11001@192.168.50.69:5060" target="_blank">sip:11001@192.168.50.69:5060</a>;ctid=2004383309156582802 SIP/2.0<br>
> Via: SIP/2.0/UDP 192.168.50.185:5060;rport;branch=z9hG4bKPj3e87a449-f4cc-4128-abbe-95706a1a44a0<br>
> From: "11002" <<a href="mailto:sip%3A11002@192.168.50.185" target="_blank">sip:11002@192.168.50.185</a>>;tag=1c03916d-d086-479a-b984-ff5bbbf3aba8<br>
> To: <<a href="mailto:sip%3A11001@192.168.50.69" target="_blank">sip:11001@192.168.50.69</a>;ctid=2004383309156582802><br>
> Contact: <<a href="http://sip:asterisk@192.168.50.185:5060" rel="noreferrer" target="_blank">sip:asterisk@192.168.50.185:5060</a>><br>
> Call-ID: d1524788-cac2-4bea-a905-4e17ba006688<br>
> CSeq: 24456 INVITE<br>
> Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER<br>
> Supported: 100rel, timer, replaces, norefersub<br>
> Session-Expires: 1800<br>
> Min-SE: 90<br>
> P-Asserted-Identity: "11002" <<a href="mailto:sip%3A11002@192.168.50.185" target="_blank">sip:11002@192.168.50.185</a>><br>
> Max-Forwards: 70<br>
> User-Agent: FPBX-15.0.16.63(16.9.0)<br>
> Content-Type: application/sdp<br>
> Content-Length: 411<br>
><br>
> v=0<br>
> o=- 263255642 263255642 IN IP4 192.168.50.185<br>
> s=Asterisk<br>
> c=IN IP4 192.168.50.185<br>
> t=0 0<br>
> m=audio 10292 RTP/AVPF 9 107 8 0 3 111 101<br>
> a=rtpmap:9 G722/8000<br>
> a=rtpmap:107 opus/48000/2<br>
> a=fmtp:107 useinbandfec=1<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:3 GSM/8000<br>
> a=rtpmap:111 G726-32/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-16<br>
> a=ptime:20<br>
> a=maxptime:20<br>
> a=sendrecv<br>
> a=rtcp-mux<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div>