<div dir="ltr">BTW,<div><br></div><div>I can't use /etc/hosts. What I need this for is because i have multiple servers under the same name, i.e. <a href="http://voip.myreal.com">voip.myreal.com</a> but i need to register multiple accounts with different servers for testing purposes, for example:</div><div><br></div><div>user1 registered on ip 4.3.2.1 realm <a href="http://voip.myrealm.com">voip.myrealm.com</a></div><div>user2 registered on ip 1.2.3.4 realm <a href="http://voip.myrealm.com">voip.myrealm.com</a></div><div>etc...</div><div><br></div><div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 7:03 PM, David Villasmil Govea <span dir="ltr"><<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello guys,<div><br></div><div>I want to register on a service with a specific realm and to an ip different than that coming from a dns query.</div><div><br></div><div>i.e.: Let's say the realm i need to use is "<a href="http://voip.myrealm.com" target="_blank">voip.myrealm.com</a>" and if you query a dns for that domain you get 1.2.3.4.</div><div><br></div><div>The thing is i need to register on IP 4.3.2.1 so i did:</div><div><br></div><div><div> <gateway name="1234"></div><div> <param name="username" value="1234"/></div><div> <param name="expire-seconds" value="300"/></div><div> <param name="realm" value="<a href="http://voip.myrealm.com" target="_blank">voip.myrealm.com</a>"/></div><div> <param name="password" value="password"/></div><div> <param name="extension" value="auto_to_user"/></div><div> <param name="context" value="public"/></div><div> <param name="proxy" value="4.3.2.1"/></div><div> <param name="register" value="true"/></div><div> <param name="register-transport" value="tcp"/></div><div> </gateway></div><div><br></div><div><br></div><div>But i see registers going to 4.3.2.1 with realm 4.3.2.1 like:</div><div><font face="monospace, monospace" size="1"><br></font></div><div><div><font face="monospace, monospace" size="1">REGISTER sip:4.3.2.1;transport=tcp SIP/2.0.</font></div><div><font face="monospace, monospace" size="1">Via: SIP/2.0/TCP 10.0.160.3:5099;branch=z9hG4bKQ59Hpv51Z1yra.</font></div><div><font face="monospace, monospace" size="1">Max-Forwards: 70.</font></div><div><font face="monospace, monospace" size="1">From: <<a href="mailto:sip%3A1234@4.3.2.1" target="_blank">sip:1234@4.3.2.1</a>>;tag=rymK6H2tBc45D.</font></div><div><font face="monospace, monospace" size="1">To: <<a href="mailto:sip%3A1234@4.3.2.1" target="_blank">sip:1234@4.3.2.1</a>>.</font></div><div><font face="monospace, monospace" size="1">Call-ID: fd61bdec-8e1c-11e5-9d3d-5f90e70675ff.</font></div><div><font face="monospace, monospace" size="1">CSeq: 83598504 REGISTER.</font></div><div><font face="monospace, monospace" size="1">Contact: <sip:<a href="http://10.0.160.3:5099" target="_blank">10.0.160.3:5099</a>>.</font></div><div><font face="monospace, monospace" size="1">Expires: 0.</font></div><div><font face="monospace, monospace" size="1">User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150414T204943Z~5fada4bbb5~64bit.</font></div><div><font face="monospace, monospace" size="1">Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.</font></div><div><font face="monospace, monospace" size="1">Supported: timer, path, replaces.</font></div><div><font face="monospace, monospace" size="1">Content-Length: 0.</font></div></div><div><br></div><div>And the other way around just queries dns and registers on the returned ip...</div><div><br></div><div><br></div><div>Is this at all possible?</div><div><br></div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</div>