Hey Orien, All of these guys are more experienced than I, but I'll try to throw you a line.
I'll have to check a thing or two out at work, but here's an observation or two (I'll post again tomorrow morning after I get in). The mult-homed example is set to work in a very specifc way: A dual-homed box where the WAN is used for the WWW connection, and then using the LAN side for phones. To work like the example, you need to have your phones on the LAN network. Then, configure your internal.xml file on FS to use the LAN port, not the WAN. Next, set your phones to register to that LAN address. One thing I prefer to do on pfsense, is at the FS box console (or ssh to the box), kill the "pfsense FS" running the background, and run FS in the foreground. Then you can "reloadxml" instead of rebooting when XML changes are made (if I understand your post). As I said, let me check a thing or two out, and I'll ask to see some configuration files. I'm sure we can get you going. BTW: What kind of phones are you using? Regards, Mike G. On Wed, Oct 14, 2009 at 6:31 PM, Orien Love <[email protected]> wrote: > Hello, a few weeks ago I asked about a setup, and about using the > freeswitch package on pfSense. Since then I have received most of my > hardware and started setting up freeswitch. > > First my setup > WWW --> 1st pfsense box <-- private (192.168.2.xxx) --> pfsense w > freeswtich <-- Test (192.168.3.xxx) --> phones > > pfsense w freeswtich Port Addresses > WAN 192.168.2.210 > LAN 192.168.3.1 > > this is setup to simulate a pfsense box hooked up to an external network. > > > here are the things I have done. > > 1st attempt > #1 set my WAN IP port to fixed in pfsense (192.168.2.210) > #2 set my soft phone to register to 192.168.2.210 (The phones registered > and showed up in the status section) > #3 Tried to make a call to extension 1004, the soft phone tells me that > it is "Temporally Unavailable 480). > > 2nd attempt > #1 set my WAN IP port to fixed in pfsense (192.168.2.210) > #2 deleted the lan.xml profile > #3 rebooted freeswitch. > #4 set my soft phone to register to 192.168.2.210 (The phones registered > and showed up in the status section) > #5 Tried to make a call to extension 1004, the soft phone tells me that > it is "Temporally Unavailable 480). > > 3rd attempt > #1 set my WAN IP port to fixed in pfsense (192.168.2.210) > #2 edited the internal.xml file as described in the multi-home tutorial > (192.168.3.1 is my phone lan address) > <param name="rtp-ip" value="192.168.3.1"/> > <param name="sip-ip" value="192.168.3.1"/> > <param name="ext-rtp-ip" value="192.168.3.1"/> > <param name="ext-sip-ip" value="192.168.3.1"/> > #3 rebooted freeswitch. > #4 set my soft phone to register to 192.168.2.210 (The phone would not > register) > #5 set my soft phone to register to 192.168.3.1 (The phone registered > and showed up in the status section) > #6 Tried to make a call to extension 1004, the soft phone tells me that > it is "Temporally Unavailable 480). > #7 edited the file /usr/local/freeswitch/conf/directory/default.xml > <domain name="192.168.3.1"> > #8 rebooted freeswitch. > #9 set my soft phone to register to 192.168.2.210 (The phone would not > register) > #10 set my soft phone to register to 192.168.3.1 (The phone would not > register got a forbidden error) > #11 did some reading and found a place in the vars tab to change the domain > #12 edited the file in the vars tab > <X-PRE-PROCESS cmd="set" data="domain=192.168.3.1"/> > #13 rebooted freeswitch. > #14 set my soft phone to register to 192.168.2.210 (The phone would not > register) > #15 set my soft phone to register to 192.168.3.1 (The phone registered > and showed up in the status section) > #16 Tried to make a call to extension 1004, the soft phone tells me that > it is "Temporally Unavailable 480). > > here is part of the log file: > 2009-10-14 22:18:43.560147 [DEBUG] sofia.c:910 Write lock lan > 2009-10-14 22:18:43.563938 [NOTICE] sofia.c:917 Waiting for worker thread > 2009-10-14 22:18:43.563938 [DEBUG] sofia.c:975 Write unlock lan > 2009-10-14 22:26:00.23234 [DEBUG] sofia.c:4549 IP 192.168.3.199 Rejected > by acl "domains". Falling back to Digest auth. > 2009-10-14 22:26:00.55225 [DEBUG] sofia.c:4549 IP 192.168.3.199 Rejected > by acl "domains". Falling back to Digest auth. > 2009-10-14 22:26:00.55225 [NOTICE] switch_channel.c:602 New Channel > sofia/internal/[email protected] [8aa7cd8c-10b9-de11-a0e9-00a0cc5a11e3] > 2009-10-14 22:26:00.55225 [DEBUG] sofia.c:5196 Setting NAT mode based on > rfc1918.auto > 2009-10-14 22:26:00.55225 [DEBUG] sofia.c:3210 Channel > sofia/internal/[email protected] entering state [received][100] > 2009-10-14 22:26:00.55225 [DEBUG] sofia.c:3217 Remote SDP: > v=0 > o=- 78902911 78902911 IN IP4 192.168.189.1 > s=http://www.portsip.com > c=IN IP4 192.168.189.1 > t=0 0 > m=audio 21328 RTP/AVP 0 8 18 101 > a=rtpmap:0 PCMU/8000 > a=rtpmap:8 PCMA/8000 > a=rtpmap:18 G729/8000 > a=fmtp:18 annexb=no > a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-15 > a=ptime:20 > m=video 40216 RTP/AVP 34 125 > a=rtpmap:34 H263/90000 > a=fmtp:34 CIF=2 > a=rtpmap:125 H264/90000 > a=fmtp:125 profile-level-id=42e015 > > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:3081 Audio Codec Compare > [PCMU:0:8000:20]/[G7221:115:32000:20] > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:3081 Audio Codec Compare > [PCMU:0:8000:20]/[G7221:107:16000:20] > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:3081 Audio Codec Compare > [PCMU:0:8000:20]/[G722:9:8000:20] > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:3081 Audio Codec Compare > [PCMU:0:8000:20]/[PCMU:0:8000:20] > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:2039 Set Codec > sofia/internal/[email protected] PCMU/8000 20 ms 160 samples > 2009-10-14 22:26:00.55225 [DEBUG] sofia_glue.c:3041 Set 2833 dtmf > payload to 101 > 2009-10-14 22:26:00.55225 [DEBUG] sofia.c:3376 > (sofia/internal/[email protected]) State Change CS_NEW -> CS_INIT > 2009-10-14 22:26:00.55225 [DEBUG] switch_core_session.c:933 Send signal > sofia/internal/[email protected] [BREAK] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:397 > (sofia/internal/[email protected]) Running State Change CS_INIT > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:480 > (sofia/internal/[email protected]) State INIT > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:83 > sofia/internal/[email protected] SOFIA INIT > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:111 > (sofia/internal/[email protected]) State Change CS_INIT -> CS_ROUTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_session.c:933 Send signal > sofia/internal/[email protected] [BREAK] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:480 > (sofia/internal/[email protected]) State INIT going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:397 > (sofia/internal/[email protected]) Running State Change CS_ROUTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:483 > (sofia/internal/[email protected]) State ROUTING > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:130 > sofia/internal/[email protected] SOFIA ROUTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:78 > sofia/internal/[email protected] Standard ROUTING > 2009-10-14 22:26:00.63551 [INFO] mod_dialplan_xml.c:252 Processing > 1001->1004 in context public > Dialplan: sofia/internal/[email protected] parsing [public->unloop] > continue=false > Dialplan: sofia/internal/[email protected] Regex (PASS) [unloop] > ${unroll_loops}(true) =~ /^true$/ break=on-false > Dialplan: sofia/internal/[email protected] Regex (FAIL) [unloop] > ${sip_looped_call}() =~ /^true$/ break=on-false > Dialplan: sofia/internal/[email protected] parsing > [public->outside_call] continue=true > Dialplan: sofia/internal/[email protected] Absolute Condition > [outside_call] > Dialplan: sofia/internal/[email protected] Action set(outside_call=true) > Dialplan: sofia/internal/[email protected] parsing [public->call_debug] > continue=true > Dialplan: sofia/internal/[email protected] Regex (FAIL) [call_debug] > ${call_debug}(false) =~ /^true$/ break=never > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:114 > (sofia/internal/[email protected]) State Change CS_ROUTING -> CS_EXECUTE > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_session.c:933 Send signal > sofia/internal/[email protected] [BREAK] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:483 > (sofia/internal/[email protected]) State ROUTING going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:397 > (sofia/internal/[email protected]) Running State Change CS_EXECUTE > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:490 > (sofia/internal/[email protected]) State EXECUTE > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:173 > sofia/internal/[email protected] SOFIA EXECUTE > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:151 > sofia/internal/[email protected] Standard EXECUTE > EXECUTE sofia/internal/[email protected] set(outside_call=true) > 2009-10-14 22:26:00.63551 [DEBUG] mod_dptools.c:748 > sofia/internal/[email protected] SET [outside_call]=[true] > 2009-10-14 22:26:00.63551 [NOTICE] switch_core_state_machine.c:179 > Hangup sofia/internal/[email protected] [CS_EXECUTE] [NORMAL_CLEARING] > 2009-10-14 22:26:00.63551 [DEBUG] switch_channel.c:1683 Send signal > sofia/internal/[email protected] [KILL] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_session.c:933 Send signal > sofia/internal/[email protected] [BREAK] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:490 > (sofia/internal/[email protected]) State EXECUTE going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:397 > (sofia/internal/[email protected]) Running State Change CS_HANGUP > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:433 > (sofia/internal/[email protected]) State HANGUP > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:338 Channel > sofia/internal/[email protected] hanging up, cause: NORMAL_CLEARING > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:414 Responding to INVITE > with: 480 > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:46 > sofia/internal/[email protected] Standard HANGUP, cause: NORMAL_CLEARING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:433 > (sofia/internal/[email protected]) State HANGUP going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:475 > (sofia/internal/[email protected]) State Change CS_HANGUP -> CS_REPORTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_session.c:933 Send signal > sofia/internal/[email protected] [BREAK] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:397 > (sofia/internal/[email protected]) Running State Change CS_REPORTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:607 > (sofia/internal/[email protected]) State REPORTING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:53 > sofia/internal/[email protected] Standard REPORTING, cause: > NORMAL_CLEARING > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:607 > (sofia/internal/[email protected]) State REPORTING going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:410 > (sofia/internal/[email protected]) State Change CS_REPORTING -> > CS_DESTROY > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_session.c:1067 Session 2 > (sofia/internal/[email protected]) Locked, Waiting on external entities > 2009-10-14 22:26:00.63551 [NOTICE] switch_core_session.c:1085 Session 2 > (sofia/internal/[email protected]) Ended > 2009-10-14 22:26:00.63551 [NOTICE] switch_core_session.c:1087 Close > Channel sofia/internal/[email protected] [CS_DESTROY] > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:559 > (sofia/internal/[email protected]) State DESTROY > 2009-10-14 22:26:00.63551 [DEBUG] mod_sofia.c:255 > sofia/internal/[email protected] SOFIA DESTROY > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:60 > sofia/internal/[email protected] Standard DESTROY > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:559 > (sofia/internal/[email protected]) State DESTROY going to sleep > 2009-10-14 22:26:00.63551 [DEBUG] switch_core_state_machine.c:559 > (sofia/internal/[email protected]) State DESTROY going to sleep > > I am at a loss, any help would be welcome. > > Orien Love > > > > _______________________________________________ > FreeSWITCH-users mailing list > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
