<div dir="ltr">Realm won&#39;t be in the register packet, it will be once challenged and we answer the challenge.<div><br></div><div>Can you show ups the entire flow?</div><div><br></div><div>/b</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 12: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><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>