[Freeswitch-users] Svar: Re: Setting up a FreeSwitch system on a pfSensefirewall???
mailinglist
mailinglist at fribert.dk
Sun Dec 6 11:06:45 PST 2009
Just got the freeswitch started from the command line, and got a bit of logging out
I started with the 'multi homed' write up mentioned above (http://wiki.freeswitch.org/wiki/Multi_home_tutorial), as I of course have several nic's on it as it's a firewall.
The reason I wanted to use the pfSense firewall, is because I'll get rid of the NAT'in imposed by having it on a local machine. My main reason for setting something up at the first place was to get some of my very limited external IP's back.
I've changed the conf/sip_profiles/internal.xml to reflect my LAN addresses
My lan is 10.11.12.x
My wan is 87.61.18.196
If I start it, it shows a lot on the screen, a line in red is scrolled right out of there, and the buffer isn't large enough to go back
2009-12-06 19:35:42.928556 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 3 0ms
2009-12-06 19:35:42.928564 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 4 0ms
2009-12-06 19:35:42.928573 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 5 0ms
2009-12-06 19:35:42.928583 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 6 0ms
2009-12-06 19:35:42.928592 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 7 0ms
2009-12-06 19:35:42.928600 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 8 0ms
2009-12-06 19:35:42.928609 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 9 0ms
2009-12-06 19:35:42.928619 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 1 00ms
2009-12-06 19:35:42.928628 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 1 10ms
2009-12-06 19:35:42.928636 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G729' (G.729) 8000hz 1 20ms
2009-12-06 19:35:42.928922 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_amr]
2009-12-06 19:35:42.928937 [NOTICE] switch_loadable_module.c:182 Adding Codec 'AMR' (AMR) 8000hz 20ms
2009-12-06 19:35:42.930956 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_ilbc]
2009-12-06 19:35:42.930999 [NOTICE] switch_loadable_module.c:182 Adding Codec 'iLBC' (iLBC) 8000hz 30 ms
2009-12-06 19:35:42.931014 [NOTICE] switch_loadable_module.c:182 Adding Codec 'iLBC' (iLBC) 8000hz 20 ms
2009-12-06 19:35:42.938433 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_speex]
2009-12-06 19:35:42.938466 [NOTICE] switch_loadable_module.c:182 Adding Codec 'SPEEX' (Speex) 32000hz 20ms
2009-12-06 19:35:42.938908 [NOTICE] switch_loadable_module.c:182 Adding Codec 'SPEEX' (Speex) 16000hz 20ms
2009-12-06 19:35:42.938931 [NOTICE] switch_loadable_module.c:182 Adding Codec 'SPEEX' (Speex) 8000hz 20ms
2009-12-06 19:35:42.939735 [INFO] mod_siren.c:141 Audio coding: ITU-T Rec. G.722.1, licensed from Pol ycom(R)
2009-12-06 19:35:42.939766 [INFO] mod_siren.c:142 Audio coding: ITU-T Rec. G.722.1 Annex C, licensed from Polycom(R)
2009-12-06 19:35:42.939794 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_siren]
2009-12-06 19:35:42.939810 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 32000hz 20ms
2009-12-06 19:35:42.939824 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 32000hz 40ms
2009-12-06 19:35:42.939834 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 32000hz 60ms
2009-12-06 19:35:42.939843 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 16000hz 20ms
2009-12-06 19:35:42.939853 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 16000hz 40ms
2009-12-06 19:35:42.939862 [NOTICE] switch_loadable_module.c:182 Adding Codec 'G7221' (Polycom(R) G72 2.1/G722.1C) 16000hz 60ms
2009-12-06 19:35:42.950262 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_celt]
2009-12-06 19:35:42.950297 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 48000hz 10ms
2009-12-06 19:35:42.950311 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 48000hz 8ms
2009-12-06 19:35:42.950322 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 48000hz 6ms
2009-12-06 19:35:42.950333 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 48000hz 4ms
2009-12-06 19:35:42.950342 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 48000hz 2ms
2009-12-06 19:35:42.950351 [NOTICE] switch_loadable_module.c:182 Adding Codec 'CELT' (CELT ultra-low delay) 32000hz 10ms
2009-12-06 19:35:42.950804 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_h26x]
2009-12-06 19:35:42.950822 [NOTICE] switch_loadable_module.c:182 Adding Codec 'H264' (H.264 Video (pa ssthru)) 90000hz 0ms
2009-12-06 19:35:42.950912 [NOTICE] switch_loadable_module.c:182 Adding Codec 'H263' (H.263 Video (pa ssthru)) 90000hz 0ms
2009-12-06 19:35:42.950991 [NOTICE] switch_loadable_module.c:182 Adding Codec 'H263-1998' (H.263+ Vid eo (passthru)) 90000hz 0ms
2009-12-06 19:35:42.951072 [NOTICE] switch_loadable_module.c:182 Adding Codec 'H263-2000' (H.263++ Vi deo (passthru)) 90000hz 0ms
2009-12-06 19:35:42.951189 [NOTICE] switch_loadable_module.c:182 Adding Codec 'H261' (H.261 Video (pa ssthru)) 90000hz 0ms
2009-12-06 19:35:42.966090 [INFO] mod_sndfile.c:330
LibSndFile Version : libsndfile-1.0.19 Supported Formats
================================================================================
AIFF (Apple/SGI) (extension "aiff")
AU (Sun/NeXT) (extension "au")
AVR (Audio Visual Research) (extension "avr")
CAF (Apple Core Audio File) (extension "caf")
HTK (HMM Tool Kit) (extension "htk")
IFF (Amiga IFF/SVX8/SV16) (extension "iff")
MAT4 (GNU Octave 2.0 / Matlab 4.2) (extension "mat")
MAT5 (GNU Octave 2.1 / Matlab 5.0) (extension "mat")
PAF (Ensoniq PARIS) (extension "paf")
PVF (Portable Voice Format) (extension "pvf")
RAW (header-less) (extension "raw")
SD2 (Sound Designer II) (extension "sd2")
SDS (Midi Sample Dump Standard) (extension "sds")
SF (Berkeley/IRCAM/CARL) (extension "sf")
VOC (Creative Labs) (extension "voc")
W64 (SoundFoundry WAVE 64) (extension "w64")
WAV (Microsoft) (extension "wav")
WAV (NIST Sphere) (extension "wav")
WAVEX (Microsoft) (extension "wav")
WVE (Psion Series 3) (extension "wve")
XI (FastTracker 2) (extension "xi")
================================================================================
2009-12-06 19:35:42.966344 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_sndfile]
2009-12-06 19:35:42.966358 [NOTICE] switch_loadable_module.c:294 Adding File Format 'aiff'
2009-12-06 19:35:42.966500 [NOTICE] switch_loadable_module.c:294 Adding File Format 'au'
2009-12-06 19:35:42.966594 [NOTICE] switch_loadable_module.c:294 Adding File Format 'avr'
2009-12-06 19:35:42.966672 [NOTICE] switch_loadable_module.c:294 Adding File Format 'caf'
2009-12-06 19:35:42.966747 [NOTICE] switch_loadable_module.c:294 Adding File Format 'htk'
2009-12-06 19:35:42.966820 [NOTICE] switch_loadable_module.c:294 Adding File Format 'iff'
2009-12-06 19:35:42.966894 [NOTICE] switch_loadable_module.c:294 Adding File Format 'mat'
2009-12-06 19:35:42.966998 [NOTICE] switch_loadable_module.c:294 Adding File Format 'paf'
2009-12-06 19:35:42.967074 [NOTICE] switch_loadable_module.c:294 Adding File Format 'pvf'
2009-12-06 19:35:42.967148 [NOTICE] switch_loadable_module.c:294 Adding File Format 'raw'
2009-12-06 19:35:42.968115 [NOTICE] switch_loadable_module.c:294 Adding File Format 'sd2'
2009-12-06 19:35:42.968226 [NOTICE] switch_loadable_module.c:294 Adding File Format 'sds'
2009-12-06 19:35:42.968304 [NOTICE] switch_loadable_module.c:294 Adding File Format 'sf'
2009-12-06 19:35:42.968379 [NOTICE] switch_loadable_module.c:294 Adding File Format 'voc'
2009-12-06 19:35:42.968453 [NOTICE] switch_loadable_module.c:294 Adding File Format 'w64'
2009-12-06 19:35:42.968527 [NOTICE] switch_loadable_module.c:294 Adding File Format 'wav'
2009-12-06 19:35:42.968601 [NOTICE] switch_loadable_module.c:294 Adding File Format 'wve'
2009-12-06 19:35:42.968677 [NOTICE] switch_loadable_module.c:294 Adding File Format 'xi'
2009-12-06 19:35:42.968751 [NOTICE] switch_loadable_module.c:294 Adding File Format 'r8'
2009-12-06 19:35:42.968825 [NOTICE] switch_loadable_module.c:294 Adding File Format 'r16'
2009-12-06 19:35:42.968899 [NOTICE] switch_loadable_module.c:294 Adding File Format 'r24'
2009-12-06 19:35:42.968973 [NOTICE] switch_loadable_module.c:294 Adding File Format 'r32'
2009-12-06 19:35:42.969047 [NOTICE] switch_loadable_module.c:294 Adding File Format 'gsm'
2009-12-06 19:35:42.969121 [NOTICE] switch_loadable_module.c:294 Adding File Format 'ul'
2009-12-06 19:35:42.969196 [NOTICE] switch_loadable_module.c:294 Adding File Format 'al'
2009-12-06 19:35:42.969271 [NOTICE] switch_loadable_module.c:294 Adding File Format 'adpcm'
2009-12-06 19:35:42.969751 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_native_fil e]
2009-12-06 19:35:42.969772 [NOTICE] switch_loadable_module.c:294 Adding File Format 'H263'
2009-12-06 19:35:42.969886 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G7221'
2009-12-06 19:35:42.969969 [NOTICE] switch_loadable_module.c:294 Adding File Format 'AMR'
2009-12-06 19:35:42.970045 [NOTICE] switch_loadable_module.c:294 Adding File Format 'H263-1998'
2009-12-06 19:35:42.970122 [NOTICE] switch_loadable_module.c:294 Adding File Format 'SPEEX'
2009-12-06 19:35:42.970197 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G729'
2009-12-06 19:35:42.970274 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G723'
2009-12-06 19:35:42.970352 [NOTICE] switch_loadable_module.c:294 Adding File Format 'LPC'
2009-12-06 19:35:42.970427 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G726-16'
2009-12-06 19:35:42.970502 [NOTICE] switch_loadable_module.c:294 Adding File Format 'H261'
2009-12-06 19:35:42.970577 [NOTICE] switch_loadable_module.c:294 Adding File Format 'AAL2-G726-16'
2009-12-06 19:35:42.970653 [NOTICE] switch_loadable_module.c:294 Adding File Format 'PCMA'
2009-12-06 19:35:42.970729 [NOTICE] switch_loadable_module.c:294 Adding File Format 'DVI4'
2009-12-06 19:35:42.970804 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G726-24'
2009-12-06 19:35:42.970880 [NOTICE] switch_loadable_module.c:294 Adding File Format 'PCMU'
2009-12-06 19:35:42.970956 [NOTICE] switch_loadable_module.c:294 Adding File Format 'L16'
2009-12-06 19:35:42.971031 [NOTICE] switch_loadable_module.c:294 Adding File Format 'iLBC'
2009-12-06 19:35:42.971106 [NOTICE] switch_loadable_module.c:294 Adding File Format 'PROXY'
2009-12-06 19:35:42.971217 [NOTICE] switch_loadable_module.c:294 Adding File Format 'PROXY-VID'
2009-12-06 19:35:42.971294 [NOTICE] switch_loadable_module.c:294 Adding File Format 'AAL2-G726-24'
2009-12-06 19:35:42.971369 [NOTICE] switch_loadable_module.c:294 Adding File Format 'AAL2-G726-32'
2009-12-06 19:35:42.971463 [NOTICE] switch_loadable_module.c:294 Adding File Format 'H263-2000'
2009-12-06 19:35:42.971540 [NOTICE] switch_loadable_module.c:294 Adding File Format 'H264'
2009-12-06 19:35:42.971616 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G726-32'
2009-12-06 19:35:42.971691 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G722'
2009-12-06 19:35:42.971767 [NOTICE] switch_loadable_module.c:294 Adding File Format 'CELT'
2009-12-06 19:35:42.971843 [NOTICE] switch_loadable_module.c:294 Adding File Format 'AAL2-G726-40'
2009-12-06 19:35:42.971918 [NOTICE] switch_loadable_module.c:294 Adding File Format 'G726-40'
2009-12-06 19:35:42.971993 [NOTICE] switch_loadable_module.c:294 Adding File Format 'GSM'
2009-12-06 19:35:42.973983 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_local_stre am]
2009-12-06 19:35:42.974028 [NOTICE] switch_loadable_module.c:270 Adding API Function 'stop_local_stre am'
2009-12-06 19:35:42.975627 [CONSOLE] mod_local_stream.c:142 Can't open directory: /usr/local/freeswit ch/sounds/music/16000
2009-12-06 19:35:42.975972 [CONSOLE] mod_local_stream.c:142 Can't open directory: /usr/local/freeswit ch/sounds/music/32000
2009-12-06 19:35:42.976108 [NOTICE] switch_loadable_module.c:270 Adding API Function 'start_local_str eam'
2009-12-06 19:35:42.976214 [NOTICE] switch_loadable_module.c:270 Adding API Function 'show_local_stre am'
2009-12-06 19:35:42.976297 [NOTICE] switch_loadable_module.c:294 Adding File Format 'local_stream'
2009-12-06 19:35:42.976779 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_tone_strea m]
2009-12-06 19:35:42.976799 [NOTICE] switch_loadable_module.c:294 Adding File Format 'tone_stream'
2009-12-06 19:35:42.976892 [NOTICE] switch_loadable_module.c:294 Adding File Format 'silence_stream'
2009-12-06 19:35:43.96229 [CONSOLE] mod_spidermonkey.c:947 Successfully Loaded [/usr/local/freeswitch /mod/mod_spidermonkey_teletone.so]
2009-12-06 19:35:43.96554 [CONSOLE] mod_spidermonkey.c:947 Successfully Loaded [/usr/local/freeswitch /mod/mod_spidermonkey_core_db.so]
2009-12-06 19:35:43.96828 [CONSOLE] mod_spidermonkey.c:947 Successfully Loaded [/usr/local/freeswitch /mod/mod_spidermonkey_socket.so]
2009-12-06 19:35:43.102288 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_spidermonk ey]
2009-12-06 19:35:43.102327 [NOTICE] switch_loadable_module.c:248 Adding Application 'javascript'
2009-12-06 19:35:43.102515 [NOTICE] switch_loadable_module.c:270 Adding API Function 'jsrun'
2009-12-06 19:35:43.102601 [NOTICE] switch_loadable_module.c:270 Adding API Function 'jsapi'
2009-12-06 19:35:43.110060 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_lua]
2009-12-06 19:35:43.110079 [NOTICE] switch_loadable_module.c:248 Adding Application 'lua'
2009-12-06 19:35:43.110252 [NOTICE] switch_loadable_module.c:270 Adding API Function 'luarun'
2009-12-06 19:35:43.110338 [NOTICE] switch_loadable_module.c:270 Adding API Function 'lua'
2009-12-06 19:35:43.110761 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_say_en]
2009-12-06 19:35:43.110780 [NOTICE] switch_loadable_module.c:395 Adding Say interface 'en'
2009-12-06 19:35:43.110881 [CONSOLE] switch_loadable_module.c:120 Starting runtime thread for CORE_SO FTTIMER_MODULE
2009-12-06 19:35:43.111049 [CONSOLE] switch_loadable_module.c:120 Starting runtime thread for mod_eve nt_socket
2009-12-06 19:35:43.111255 [NOTICE] switch_core.c:898 Created ip list rfc1918.auto default (deny)
2009-12-06 19:35:43.111279 [NOTICE] switch_core.c:906 Created ip list nat.auto default (deny)
2009-12-06 19:35:43.111293 [NOTICE] switch_core.c:914 Created ip list loopback.auto default (deny)
2009-12-06 19:35:43.111348 [NOTICE] switch_core.c:920 Created ip list localnet.auto default (deny)
2009-12-06 19:35:43.111361 [NOTICE] switch_core.c:923 Adding 87.61.18.196/255.255.255.248 (allow) to list localnet.auto
2009-12-06 19:35:43.111380 [CONSOLE] switch_core.c:961 Created ip list lan default (allow)
2009-12-06 19:35:43.111395 [NOTICE] switch_core.c:1064 Adding 10.11.12.0/24 (deny) to list lan
2009-12-06 19:35:43.111422 [NOTICE] switch_core.c:1064 Adding 10.11.12.25/32 (allow) to list lan
2009-12-06 19:35:43.111432 [CONSOLE] switch_core.c:961 Created ip list domains default (deny)
2009-12-06 19:35:43.111477 [WARNING] switch_core.c:990 Cannot locate domain 87.61.18.196
2009-12-06 19:35:43.111986 [CONSOLE] switch_core.c:1465
FreeSWITCH Version 1.0.trunk (13784) Started.
Crash Protection [Disabled]
Max Sessions[1000]
Session Rate[30]
SQL [Enabled]
freeswitch at firewall.fribert.dk>
If I then inquire about the internal status I get:
freeswitch at firewall.fribert.dk> sofia status profile internal
API CALL [sofia(status profile internal)] output:
=================================================================================================
Name internal
Domain Name N/A
DBName sofia_reg_internal
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_from
RTP-IP 10.11.12.25
Ext-RTP-IP 10.11.12.25
SIP-IP 10.11.12.25
Ext-SIP-IP 10.11.12.25
URL sip:mod_sofia at 10.11.12.25:5060
BIND-URL sip:mod_sofia at 10.11.12.25:5060
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
Registrations:
=================================================================================================
=================================================================================================
If I do a external status it shows:
freeswitch at firewall.fribert.dk> sofia status profile external
API CALL [sofia(status profile external)] output:
=================================================================================================
Name external
Domain Name N/A
DBName sofia_reg_external
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 87.61.18.196
Ext-RTP-IP 87.61.18.196
SIP-IP 87.61.18.196
Ext-SIP-IP 87.61.18.196
URL sip:mod_sofia at 87.61.18.196:5080
BIND-URL sip:mod_sofia at 87.61.18.196:5080
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
Registrations:
=================================================================================================
=================================================================================================
As far as I can see, everything looks ok, except for the
2009-12-06 19:35:43.111477 [WARNING] switch_core.c:990 Cannot locate domain 87.61.18.196
I'm wondering WHY it wants a domain on the external IP???
I then started the SIP softphone, and got:
2009-12-06 19:36:23.588241 [WARNING] sofia_reg.c:1755 Can't find user [1001 at 87.61.18.196]
You must define a domain called '87.61.18.196' in your directory and add a user with the id="1001" at tribute
and you must configure your device to use the proper domain in it's authentication credentials.
2009-12-06 19:36:27.988290 [WARNING] sofia_reg.c:1755 Can't find user [1001 at 87.61.18.196]
You must define a domain called '87.61.18.196' in your directory and add a user with the id="1001" at tribute
and you must configure your device to use the proper domain in it's authentication credentials.
I've set up the phone to use a domain 10.11.12.25
But I guess, something is screwy with the 'domain' definition as it shows above.
So now I'm halted.
P.S. I'm full of aw, of the quick and qualified help I've gotten so far, with good pointers to where to start. Thankyou all for your input!
This is a brand new line of work for me, so I'm completely at a loss, which is quite fun when I'm used to be the server expert :-D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091206/d83c0702/attachment-0002.html
More information about the FreeSWITCH-users
mailing list