[Freeswitch-users] gateway real and proxy

David Villasmil Govea david.villasmil at gmail.com
Wed Nov 18 21:03:59 MSK 2015


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 at 4.3.2.1>;tag=rymK6H2tBc45D.
To: <sip:1234 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151118/cc9d5803/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list