<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">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">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">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">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">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><div><br></div>-- <br><div class="gmail_signature">DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</div></div>