<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 10:29 AM, xaled <span dir="ltr"><<a href="mailto:xaled@web.de" target="_blank">xaled@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="DE"><div><p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’m trying to port our configuration form sip to pjsip channel and have following issue.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Sip.conf has a host parameter that sets the RURI to a given value. This functionality is needed in some of our scenarios where we need to send requests to specific IP address with specific domain in RURI. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I did not found an equivalent to the host parameter in pjsip configuration. Did I miss something?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">All I could come with is to get the Route header set to the needed value, but that does not help us in our scenarios. Below are relevant config settings and resulting SIP REGISTER Request.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">sip.conf:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">host=<a href="http://test.com" target="_blank">test.com</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">outboundproxy=tcp://<a href="http://1.2.3.4" target="_blank">1.2.3.4</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">fromuser=+12345678<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">fromdomain=<a href="http://test.com" target="_blank">test.com</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">REGISTER sip:<a href="http://test.com" target="_blank">test.com</a> SIP/2.0<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">From: <<a href="mailto:sip%3A%2B12345678@test.com" target="_blank">sip:+12345678@test.com</a>>;tag=as5152122a<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">To: <<a href="mailto:sip%3A%2B12345678@test.com" target="_blank">sip:+12345678@test.com</a>><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Contact: <sip:+12345678@4.3.2.1:5071;transport=TCP><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">User-Agent: Asterisk PBX 13.6.0<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">pjsip.conf:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">client_uri = <a href="mailto:sip%3A%2B12345678@test.com" target="_blank">sip:+12345678@test.com</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">server_uri = sip:<a href="http://test.com" target="_blank">test.com</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">outbound_proxy=sip:1.2.3.4\;transport=tcp<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">REGISTER <a><span style="color:windowtext;text-decoration:none">sip:1.2.3.4;transport=tcp</span></a> SIP/2.0<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">From: <<a href="mailto:sip%3A%2B12345678@test.com" target="_blank">sip:+12345678@test.com</a>>;tag=f47f3ed2-0975-4ff0-bd3b-bd5c38e594c4<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">To: <<a href="mailto:sip%3A%2B12345678@test.com" target="_blank">sip:+12345678@test.com</a>><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Contact: <<a>sip:+12345678@4.3.2.1:60938</a>><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Route: <<a>sip:test.com</a>><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">User-Agent: Asterisk PBX 13.6.0<u></u><u></u></span></p></div></div><br clear="all"></blockquote><div><br></div><div>In order to preserve the request URI, you'll need to specify loose routing on the SIP URI for the outbound proxy:<br><br></div><div>outbound_proxy=sip:1.2.3.4\;transport=tcp\;lr <br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Director of Technology<br></div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div></div></div></div></div>
</div></div>