<div dir="ltr">Hello,<div><br></div><div>Submit a ticket in GitHub apologize about that I should have sent my question here. </div><div>I would like some help in configuring the uac module to route to an gateway without specifically setting the URI-domain from the UAC. I would like to set change it in the Kamailio side.</div><div><br></div><div>Currently I use uac_auth on failure route. All is working if I set the URI from on the client to <a href="mailto:xxx@gatewayaddress.com">xxx@gatewayaddress.com</a>. But if I just dial just the number as is which translate to <a href="mailto:xxx@kamailioserver.com">xxx@kamailioserver.com</a> the invite doesnt go anywhere. </div><div><br></div><div><br></div><div>My failure route is like so</div><div><br></div><div><div>failure_route[MANAGE_FAILURE] {</div><div><br></div><div>   xlog("DEBUG: MANAGE FAILURE ROUTE: ");</div><div><br></div><div>   if ($T_reply_code == "407")  # there's also 401</div><div>    {</div><div><br></div><div>        $avp(arealm) = GATEWAY;</div><div>        $avp(auser) = USERNAME;</div><div>        $avp(apass) = PASSWORD;</div><div>     </div><div><br></div><div>        #$ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip) + ":" + $sel(cfg_get.pstn.gw_port);</div><div>        #rewritehost("<a href="http://sip.ca.didlogic.net">sip.ca.didlogic.net</a>");</div><div><br></div><div>        uac_auth();</div><div>        </div><div>        rtpengine_offer("force trust-address replace-origin replace-session-connection ICE=remove RTP/AVP");</div><div>        route(NATMANAGE);</div><div>        route(RELAY);</div><div>        exit;</div><div>    }</div><div>}</div></div><div><br></div><div>Thank you</div></div>