<div dir="ltr">Any help with this, guys?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 7:33 PM, David Villasmil Govea <span dir="ltr">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">BTW,<div><br></div><div>I can&#39;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" target="_blank">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" target="_blank">voip.myrealm.com</a></div><div>user2 registered on ip 1.2.3.4 realm <a href="http://voip.myrealm.com" target="_blank">voip.myrealm.com</a></div><div>etc...</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>David</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 7:03 PM, David Villasmil Govea <span dir="ltr">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</a>&gt;</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&#39;s say the realm i need to use is &quot;<a href="http://voip.myrealm.com" target="_blank">voip.myrealm.com</a>&quot; 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>        &lt;gateway name=&quot;1234&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;1234&quot;/&gt;</div><div>                &lt;param name=&quot;expire-seconds&quot; value=&quot;300&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;<a href="http://voip.myrealm.com" target="_blank">voip.myrealm.com</a>&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;</div><div>                &lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;</div><div>                &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;4.3.2.1&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div><div>                &lt;param name=&quot;register-transport&quot; value=&quot;tcp&quot;/&gt;</div><div>        &lt;/gateway&gt;</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: &lt;<a href="mailto:sip%3A1234@4.3.2.1" target="_blank">sip:1234@4.3.2.1</a>&gt;;tag=rymK6H2tBc45D.</font></div><div><font face="monospace, monospace" size="1">To: &lt;<a href="mailto:sip%3A1234@4.3.2.1" target="_blank">sip:1234@4.3.2.1</a>&gt;.</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: &lt;sip:<a href="http://10.0.160.3:5099" target="_blank">10.0.160.3:5099</a>&gt;.</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><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>DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</div>
</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>