<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 13 Apr 2016, at 22:05, Nitesh Bansal <<a href="mailto:nitesh.bansal@gmail.com" class="">nitesh.bansal@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I want to use Asterisk to use Kamailio as an outbound proxy for routing calls to remote SIP end points, one option could be to use a default peer, but in my case, my outbound proxy can change </div><div class="">based on the remote end point, so this option doesn't work.</div><div class="">And another problem is that I don't know how to configure Asterisk to prepare the Request-URI</div><div class="">based on the remote end point and not based on the outbound proxy address?</div><div class=""><br class=""></div><div class="">What is the best way to do it?</div></div></div></blockquote><div><br class=""></div>First, you are asking the wrong mailing list. This is not second-level support - this is for development and code questions.</div><div><br class=""></div><div>If you are using chan_sip, there is a setting of outbound proxy per peer. There are settings</div><div>for domain - both in r-uri (host) and from URI domain. </div><div><br class=""></div><div>If you set host=<a href="http://example.com" class="">example.com</a> and outbound proxy to <a href="http://example.net" class="">example.net</a> the SIP request will</div><div>have <a href="http://example.com" class="">example.com</a> in the R-uri and send the request to <a href="http://example.net" class="">example.net</a></div><div><br class=""></div><div>Good luck working with Kamailio!</div><div><br class=""></div><div>/Olle</div><div><br class=""></div><br class=""></body></html>