Realm won't be in the register packet, it will be once challenged and we answer the challenge. Can you show ups the entire flow? /b On Wed, Nov 18, 2015 at 12:33 PM, David Villasmil Govea < david.villasmil@gmail.com> wrote:
BTW,
I can't use /etc/hosts. What I need this for is because i have multiple servers under the same name, i.e. voip.myreal.com but i need to register multiple accounts with different servers for testing purposes, for example:
user1 registered on ip 4.3.2.1 realm voip.myrealm.com user2 registered on ip 1.2.3.4 realm voip.myrealm.com etc...
David
On Wed, Nov 18, 2015 at 7:03 PM, David Villasmil Govea < david.villasmil@gmail.com> wrote:
Hello guys,
I want to register on a service with a specific realm and to an ip different than that coming from a dns query.
i.e.: Let's say the realm i need to use is "voip.myrealm.com" and if you query a dns for that domain you get 1.2.3.4.
The thing is i need to register on IP 4.3.2.1 so i did:
<gateway name="1234"> <param name="username" value="1234"/> <param name="expire-seconds" value="300"/> <param name="realm" value="voip.myrealm.com"/> <param name="password" value="password"/> <param name="extension" value="auto_to_user"/> <param name="context" value="public"/> <param name="proxy" value="4.3.2.1"/> <param name="register" value="true"/> <param name="register-transport" value="tcp"/> </gateway>
But i see registers going to 4.3.2.1 with realm 4.3.2.1 like:
REGISTER sip:4.3.2.1;transport=tcp SIP/2.0. Via: SIP/2.0/TCP 10.0.160.3:5099;branch=z9hG4bKQ59Hpv51Z1yra. Max-Forwards: 70. From: <sip:1234@4.3.2.1>;tag=rymK6H2tBc45D. To: <sip:1234@4.3.2.1>. Call-ID: fd61bdec-8e1c-11e5-9d3d-5f90e70675ff. CSeq: 83598504 REGISTER. Contact: <sip:10.0.160.3:5099>. Expires: 0. User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150414T204943Z~5fada4bbb5~64bit. Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY. Supported: timer, path, replaces. Content-Length: 0.
And the other way around just queries dns and registers on the returned ip...
Is this at all possible?
Thanks
-- DVG
-- Imagination is more important than knowledge Albert Einstein
-- DVG
-- Imagination is more important than knowledge Albert Einstein
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest