VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jan.kubr at gmail.com Guest
|
Posted: Sun Jun 21, 2009 6:09 am Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
We have a SIP gateway behind NAT which I haven't been able to set up
to work with Freeswitch. The configuration I thought would work is:
<include>
<gateway name="nat">
<param name="username" value="user"/>
<param name="password" value="pass"/>
<param name="realm" value="11.12.13.10"/>
<param name="proxy" value="78.24.13.197"/>
</gateway>
</include>
This, however, sends
REGISTER sip:78.24.13.197;transport=udp SIP/2.0
whereas I need
REGISTER sip:11.12.13.10;transport=udp SIP/2.0
When I set "register-proxy" to the public address (78.24.13.197) and
comment the "proxy" param out, it successfully registers. Though any
other SIP messages are sent to 11.12.13.10 which obviously fails.
Basically what I need Freeswitch to do is to send everything to the
public address, but put the private one everywhere in the SIP
messages. How do I do this?
Thanks,
Jan
_______________________________________________
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 |
|
Back to top |
|
|
jan.kubr at gmail.com Guest
|
Posted: Sun Jun 21, 2009 6:41 am Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
I have found this: http://jira.freeswitch.org/browse/MODENDP-184Thanks to which I know that adding
<param name="outbound-proxy" value="78.24.13.197"/>
to the profile XML does almost what I need. Is it possible to configure outbound proxy per gateway though?
Cheers,
Jan
On Sun, Jun 21, 2009 at 1:04 PM, Jan Kubr <jan.kubr@gmail.com (jan.kubr@gmail.com)> wrote:
Quote: | We have a SIP gateway behind NAT which I haven't been able to set up
to work with Freeswitch. The configuration I thought would work is:
<include>
<gateway name="nat">
<param name="username" value="user"/>
<param name="password" value="pass"/>
<param name="realm" value="11.12.13.10"/>
<param name="proxy" value="78.24.13.197"/>
</gateway>
</include>
This, however, sends
REGISTER sip:78.24.13.197;transport=udp SIP/2.0
whereas I need
REGISTER sip:11.12.13.10;transport=udp SIP/2.0
When I set "register-proxy" to the public address (78.24.13.197) and
comment the "proxy" param out, it successfully registers. Though any
other SIP messages are sent to 11.12.13.10 which obviously fails.
Basically what I need Freeswitch to do is to send everything to the
public address, but put the private one everywhere in the SIP
messages. How do I do this?
Thanks,
Jan
|
|
|
Back to top |
|
|
jan.kubr at gmail.com Guest
|
Posted: Sun Jun 21, 2009 7:18 am Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
Creating a separate sofia profile just for this gateway definitely works, just wondering whether there is a cleaner solution. The register-proxy params seems to do something very similar..
On Sun, Jun 21, 2009 at 1:39 PM, Jan Kubr <jan.kubr@gmail.com (jan.kubr@gmail.com)> wrote:
Quote: | I have found this: http://jira.freeswitch.org/browse/MODENDP-184 Thanks to which I know that adding
<param name="outbound-proxy" value="78.24.13.197"/>
to the profile XML does almost what I need. Is it possible to configure outbound proxy per gateway though?
Cheers,
Jan
On Sun, Jun 21, 2009 at 1:04 PM, Jan Kubr <jan.kubr@gmail.com (jan.kubr@gmail.com)> wrote:
Quote: | We have a SIP gateway behind NAT which I haven't been able to set up
to work with Freeswitch. The configuration I thought would work is:
<include>
<gateway name="nat">
<param name="username" value="user"/>
<param name="password" value="pass"/>
<param name="realm" value="11.12.13.10"/>
<param name="proxy" value="78.24.13.197"/>
</gateway>
</include>
This, however, sends
REGISTER sip:78.24.13.197;transport=udp SIP/2.0
whereas I need
REGISTER sip:11.12.13.10;transport=udp SIP/2.0
When I set "register-proxy" to the public address (78.24.13.197) and
comment the "proxy" param out, it successfully registers. Though any
other SIP messages are sent to 11.12.13.10 which obviously fails.
Basically what I need Freeswitch to do is to send everything to the
public address, but put the private one everywhere in the SIP
messages. How do I do this?
Thanks,
Jan
|
|
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sun Jun 21, 2009 7:20 am Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
They usually will not auth on the RURI... I recommend you set the from-domain on your gateway... I think thats really what you need.
/b
On Jun 21, 2009, at 6:39 AM, Jan Kubr wrote:
Quote: | I have found this: http://jira.freeswitch.org/browse/MODENDP-184Thanks to which I know that adding
<param name="outbound-proxy" value="78.24.13.197"/>
to the profile XML does almost what I need. Is it possible to configure outbound proxy per gateway though?
Cheers,
Jan
|
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sun Jun 21, 2009 7:26 am Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
nobody authenticates on the request URI... you're focusing on the
wrong thing... you'll need from-domain and/or from-user I suspect.
/b
On Jun 21, 2009, at 7:16 AM, Jan Kubr wrote:
Quote: | Creating a separate sofia profile just for this gateway definitely
works, just wondering whether there is a cleaner solution. The
register-proxy params seems to do something very similar..
|
_______________________________________________
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 |
|
Back to top |
|
|
jan.kubr at gmail.com Guest
|
Posted: Sun Jun 21, 2009 12:46 pm Post subject: [Freeswitch-users] SIP gateway behind NAT |
|
|
Well when I duplicate the external profile, add
<param name="outbound-proxy" value="78.24.13.197"/>
to it
and make the gateway configuration this:
<include>
<gateway name="nat">
<param name="username" value="user"/>
<param name="password" value="pass"/>
<param name="realm" value="11.12.13.10"/>
</gateway>
</include>
Then it does what I need. I was just curious if I can achieve the same without creating a new profile.
Jan
On Sun, Jun 21, 2009 at 2:25 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|