[Freeswitch-users] domain (IP), domain_name vs both sides of a fire wall

Karl Schmidt karl at xtronics.com
Mon Aug 19 23:32:19 MSD 2013


There is one bit of setting this up that I'm having trouble finding good examples - and perhaps the 
weakest part of the book.

I have a real firewall (not a router with some hacked up Linux kernel) that I DNAT the appropriate 
ports to the freeswitch server.

I would think there would be some place in the default configs where one would/could specify four 
things:

Server host name as seen from LAN
Server IP address as seen from LAN

Public FQDN as seen from Internet
Public IP address as seen from Internet

There is something - in the book here there is a brief mention of :
ext-sip-ip and
ext-rtp-ip

and more at
https://wiki.freeswitch.org/wiki/Sofia.conf.xml#ext-rtp-ip

I'm assuming that the parameter sip-ip means internal-sip-ip and rtp-ip means internal-rtp-ip ?

If I directly define these will I mess up NAT transversal on a external phone that is behind NAT?

( At one time I actually understood how a stun router worked - the insight might have only lasted 
for a day, but I can understand this stuff).


These are seperately defined in:
  /etc/freeswitch/sip_profiles/external.xml and
/etc/freeswitch/sip_profiles/internal.xml

Which makes me think I don't understand the context of 'internal' and 'external' as used for sip 
profiles?  I was assuming that external was for calls from the public internet and internal were for 
calls from the local LAN - but I'm not sure anymore.


This combined with the use of <domain name="$${domain}">  at the top of directory/default.xml
-  which IP address should it be?
- Should there be two similar sections - one for the internal IP address and a second for the 
external IP address? What if I go on a trip and want to register my extension from outside?
- just what is domain used for in the directory?


and also the line in directory/default.xml

       <param name="dial-string" 
value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/>
     </params>

I think it defines the sip invitation string? - should it be different for the internal/vs external 
IP addresses?


I have a feeling like there is something obvious that I don't get.


I think it is important to know what is going on here before I start working with the ALCs


--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl at xtronics.com
Transtronics, Inc.                              WEB http://secure.transtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

It is a miracle that curiosity survives formal education.
-Albert Einstein
--------------------------------------------------------------------------------



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