<html><head></head><body><div class="ydp6a6ca155yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hello Fred,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you, that did replace the to_uri.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'm now facing with another thing: "<span>407 Proxy Authentication Required".</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>I already added the 3 MS Teams GW to trusted source in the FreeSwitch ACL:</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>But still getting this <span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">Proxy Authentication Required </span></span>error.</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>Any tips for investigation is welcome. </span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false">Thanks,</div><div dir="ltr" data-setdir="false">Victor</div><div><br></div>
        
        </div><div id="yahoo_quoted_1117608878" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Friday, May 14, 2021, 03:12:40 p.m. EDT, Fred Posner <fred@palner.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">On 5/14/21 2:49 PM, Victor Velo wrote:<div class="yqt0151348056" id="yqtfd05458"><br clear="none">> Hello,<br clear="none">> <br clear="none">> the request I receive from MS Teams seems to be correct but I need to<br clear="none">> overwrite the Original Domain, which is the FQDN of Kamailio itself, to<br clear="none">> another domain name:<br clear="none">> <br clear="none">> TO: <sip:+15142144069@*dev-sbc.openfabrik.com:5061*;user=phone><br clear="none">> <br clear="none">> rewrite to:<br clear="none">> TO: <sip:+15142144069@*dev.myinternaldomain.openfabrik.com*:5061;user=phone><br clear="none">> <br clear="none">> What would the best why to achieve this rewriting? </div><br clear="none">> <br clear="none"><br clear="none">Take a look at UAC module:<br clear="none"><a shape="rect" href="https://www.kamailio.org/docs/modules/stable/modules/uac.html" target="_blank">https://www.kamailio.org/docs/modules/stable/modules/uac.html</a><br clear="none"><br clear="none">In your case:<br clear="none">uac_replace_to_uri<br clear="none"><br clear="none"><br clear="none">You can also use replace_all within textops:<br clear="none"><a shape="rect" href="https://www.kamailio.org/docs/modules/stable/modules/textops.html" target="_blank">https://www.kamailio.org/docs/modules/stable/modules/textops.html</a><br clear="none"><br clear="none">-- <br clear="none">Fred Posner -- www.palner.com<br clear="none">Matrix: @fred:matrix.lod.com<br clear="none"><br clear="none">__________________________________________________________<br clear="none">Kamailio - Users Mailing List - Non Commercial Discussions<br clear="none">  * <a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none">Important: keep the mailing list in the recipients, do not reply only to the sender!<br clear="none">Edit mailing list options or unsubscribe:<br clear="none">  * <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><div class="yqt0151348056" id="yqtfd89739"><br clear="none"></div></div></div>
            </div>
        </div></body></html>