<div dir="ltr">Hello List,<div><br></div><div>someone with an advice for me to reform the sips:// uri schema to sip:// ?</div><div><br></div><div>Would be great.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-18 13:54 GMT+02:00 Karsten Horsmann <span dir="ltr"><<a href="mailto:khorsmann@gmail.com" target="_blank">khorsmann@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello List,<div><br></div><div><br></div><div>of course - best way is not to use sips: uri scheme. But i have to deal with that.</div><div><br></div><div>I try to configure an multihomed kamailio (public/private IP) in front of my SIP-Servers.</div><div>One of my softphones variants used TLS for connection but the INVITES of this softphone use the "sips" URI scheme.<br></div><div><br></div><div>As i saw in other posts, this seems to be an issue for many people.</div><div>In my case it breaks the routing to my internal sip-server (only plain udp).</div><div><br></div><div>Most of my config is similar to havfos example + TLS.</div><div><a href="https://github.com/havfo/WEBRTC-to-SIP/blob/master/etc/kamailio/kamailio.cfg" target="_blank">https://github.com/havfo/<wbr>WEBRTC-to-SIP/blob/master/etc/<wbr>kamailio/kamailio.cfg</a><br></div><div><br></div><div><br></div><div>I tried to fixed that with this extra route - </div><div>but this breaks the dialog somewhere - after 60 seconds i have no audio and the BYE becomes another CSeq:<br></div><div><br></div><div>in the request_route right after route(AUTH)  i add my route(FIX_SIPS)</div><div><br></div><div><div>        if (is_method("INVITE|SUBSCRIBE")<wbr>) {</div><div>                if ($ru =~ "^sips:") {</div><div>                        route(FIX_SIPS);</div><div>                } else {</div><div>                        record_route();</div><div>                }</div><div>        }</div></div><div><br></div><div><br></div><div><div>route[FIX_SIPS] {</div><div>        if ($ru =~ "^sips:") {</div><div>                xlog("L_INFO","---FIX_SIPS-<wbr>before: ru:($ru)");</div><div>                $var(orig_uri) = $ru;</div><div>                $ru = "sip:" + $rU + "@" + $td;</div><div>                xlog("L_INFO","---FIX_SIPS-<wbr>now: $rU $td ru:($ru) orig_uri:($var(orig_uri))");</div><div>                record_route();</div><div>                #$ru = $var(orig_uri);</div><div>                xlog("L_INFO","---FIX_SIPS-<wbr>after: ru:($ru)");</div><div>        }</div><div>}</div></div><div><br></div><div><br></div><div><div>172.20.120.81 = Kamailio private IP<br></div><div>172.20.120.79 = My internal SIP-Server (B2BUA)<br></div></div><div><br></div><div><div><br></div><div>I used kamailio with CentOS 7 and RTPENGINE 63bdd615 from master</div><div><div>kamailio-5.0.2-3.1.x86_64</div><div>kamailio-tls-5.0.2-3.1.x86_64</div><div>kamailio-mysql-5.0.2-3.1.x86_<wbr>64</div><div>kamailio-websocket-5.0.2-3.1.<wbr>x86_64</div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_4263824074187027337gmail_signature">Kind Regards<br>*Karsten Horsmann*<br></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div>
</div>