FreeSWITCH package for pfSense 1.2.1 and 2.0 released. PBX or Proxy
-
Anytime I try to uninstall the freeswitch package, it seems to hang and never uninstalls. I installed the latest version 0.6 and I think I interrupted the install. Now I cant uninstall it. I simply get the following and it just hangs there.
Removing package... Loading package configuration freeswitch.xml... Loading package instructions...
Any help would be appreciated.
Scroll down to the bottom of the page and see if there are any errors. If there are then please report the error.
Manual steps to remove the FreeSWITCH package run the following.
pfSense GUI -> Diagnostics -> Command -> PHP Execute
exec("killall -9 freeswitch");
unlink_if_exists("/usr/local/pkg/freeswitch.xml");
unlink_if_exists("/usr/local/pkg/freeswitch.inc");
unlink_if_exists("/usr/local/pkg/freeswitch_dialplan.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_extensions.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_external.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_internal.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_modules.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_public.xml");
unlink_if_exists("/usr/local/pkg/freeswitch_vars.xml");
exec("rm -R /usr/local/freeswitch/");
exec("rm -R /usr/local/www/freeswitch/");
unlink_if_exists("/usr/local/etc/rc.d/freeswitch.sh");
unlink_if_exists("/tmp/freeswitch.tar.gz");
unlink_if_exists("/tmp/pkg_mgr_FreeSWITCH.log"); -
Didnt even see that error down there.
Warning: delete_package(/usr/local/pkg/freeswitch.inc): failed to open stream: No such file or directory in /etc/inc/pkg-utils.inc on line 740 Fatal error: delete_package(): Failed opening required '/usr/local/pkg/freeswitch.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/pkg-utils.inc on line 740
-
The error says that it can't find the file /usr/local/pkg/freeswitch.inc which is the include that defines the steps to uninstall the package. The FreeSWITCH package will not work if the freeswitch.inc file is missing. Without that file you will definitely need to run manually remove the package as I described in a previously.
-
I might have found a small bug. (sorry if this has already been discussed, I didn't want to re-read this whole thread again)
The bug had not been reported.
I uploaded a lot of recordings and setup several IVRs. I noticed that none of the sounds would "stick" in the IVR config screen unless I removed the "Auto" name and renamed them. Once the files were named, the IVRs worked great.
Cheers,
mrguitarActually the act of editing the recording no changes and then saving it would fix the problem. In looking into this I found another bug where the guid would change each time the edit page was saved. I have made some change that are available in 0.6.3 that should fix these problems. Please confirm that it is working now.
Anyone using IVR/Recordings is strongly encouraged to upgrade to 0.6.3 or higher.
-
Actually the act of editing the recording no changes and then saving it would fix the problem. I looking into this I found another bug where the guid would change each time the edit page was saved. I have made some change that are available in 0.6.3 that should fix these problems. Please confirm that it is working now.
Could this be a reason my recordings are unusable after upgrading packages?
Thanks for all the hard work Mcrane! ;D :)
-
Could this be a reason my recordings are unusable after upgrading packages?
Yes, after upgrading the package it would have also re-generated the guid which would have broken the IVR link to the recordings. To fix it you would have needed to select the recordings again under the IVR tab. This bug should be fixed. If you get a chance please confirm that this bug is fixed.
-
Thanks for excellent work!
Now I'm testing FreeSWITCH with two VoIP providers: Sipnet (out) and Telphin (in & out). -
Have one problem: can't send voicemail to email.
My settings:
SMTP host: my.smtp.server:465
SMTP auth: false
SMTP secure: no
SMTP from: pbx@pfsense.my.domainOn my.smtp.server in maillog found this (related to my pfsense's IP address):
Jan 24 18:25:03 www postfix/smtpd[10206]: connect from unknown[xx.xx.252.153]
Jan 24 18:25:03 www postfix/smtpd[10206]: lost connection after RSET from unknown[xx.xx.252.153]
Jan 24 18:25:03 www postfix/smtpd[10206]: disconnect from unknown[xx.xx.252.153] -
If you have your own email server to use to send the mail.
Port :465 is for TLS which I'm guess you are not using so your settings would be something like the following. Second thing to keep in mind is that to send email to the mail server without smtp authentication you will have to allow mail relay on your mail server for your pfsense ip address. Mail relay is usually disabled to prevent spammers from using your mail server to send spam.
SMTP host: my.smtp.server
SMTP auth: false
SMTP secure: no
SMTP from: pbx@pfsense.my.domainThe Gmail is a simple example for those that have a Gmail account but don't necessarily have their own mail server.
http://doc.pfsense.org/index.php/FreeSWITCH#Voicemail_to_EmailSMTP Host: smtp.gmail.com:465
SMTP Secure: tls
SMTP Auth: true
SMTP Username: Use your gmail email address here.
SMTP Password: Use your gmail email password here.
SMTP From: Use your gmail email address here. It may support any valid email address but this has not been tested.
SMTP From Name: Can be anything you choose. For my example I used: voicemail. -
All of requirements are ok. I'm able to send mail via telnet my.smtp.server 465 without any problem (while connecting to SMTP server from my pfsense's ip):
telnet my.smtp.server 465
ehlo myhostname
mail from: pbx@pfsense.my.domain
rcpt to: <my extension's="" email="">data
Subject: test
testI'll try different SMTP server soon.</my>
-
I have same problem with another mail server.
Also FreeSWITCH profile external don't starts after pfsense reboot (stop/start of profile helps), may be because of my WAN link is PPTP?
Here my /tmp/voicemailtoemail.txt after trying to send mail:
# cat /tmp/voicemailtoemail.txt To: taras@1adm.ru From: "Lucheev Dima" <102@10.10.15.1> Subject: Voicemail from "Lucheev Dima" <102> 00:00:11 Mailer Error: Language string failed to load: connect_host
-
Taras Savchuk: contact me on irc #pfsense-freeswitch my username is mcrane and we can look further into the 'Language string failed to load' error.
Also FreeSWITCH profile external don't starts after pfsense reboot (stop/start of profile helps), may be because of my WAN link is PPTP?
Yes most likely if FreeSWITCH external loads before the PPTP interface connects then the external profile fails to start. Would need to look into a way to detect that and start it if it is not running. This could be done with some custom PHP code and the new pfSense package I wrote called 'PHP Service.'
-
Im still having issues with the recordings I make becoming unusable with a package upgrade. Just fyi.
Recorded using the phone… Changed the name to test4.wav Tested and it worked. Then I reinstalled the package and can no longer access it...
:)
-
If you do a package upgrade you need to make sure to first run the 'backup' from the 'Status' tab. The backup tar gzips the /usr/local/freeswitch directory to the /tmp directory and gives you an optional download. Then during the installation it checks for the .tgz backup file in the /tmp directory if it exists it restores the voicemail, sounds, music on hold, recordings and a few other things. The the configuration is stored in pfSense's config.xml is used to rewrite respective xml configuration files for FreeSWITCH.
The above instructions are shown with less detail on the 'Status' page next to 'backup' button. It is also on the wiki under the heading Uprades: http://doc.pfsense.org/index.php/FreeSWITCH
Current pfSense backup is a backup of the pfsense config.xml file only. I'm talking with other developers about extending pfSense backup / restore so it will be able to backup the config.xml as well as specified files and directories. If I get the time I will build a backup package to make a one step backup available in for pfSense 1.2.x versions.
-
I tested pfSense on the pfSense 1.2.3 snapshot it is working fine so far. But I should note that I had to disable SIP TLS support to get the 'Internal profile' to start. pfSense 1.2.3 is based on FreeBSD 7.1. I believe to get SIP TLS (used to encrypt SIP) to work with FreeBSD 7.1 will require a specific TLS build for FreeBSD 7.1.
-
Thanks mcrane! :)
-
4 things - 1. I AM IMPRESSED!!! Awesome work MCRANE
2. One little thing I noticed that didnt seem to be the appropriate behavior:
I made a gateway and entered a dialplan expression for that gateway and saved it. When I was looking at the settings in that gateway again the dialplan expression was blank, so I thought, hmm must have forgot it, and added it again and saved.
When I go to the Dialplan tab it now has a duplicate of the dialplan I just built for that gateway, but looking at the gateway again it is blank again - is this how it should work or a bug, or am I just expecting too much ;?
3. I am running this on the new pf vmware image, and I attempted to configure a gateway to my asterisk box on the same LAN, but when I do this and watch the asterisk console, nothing ever happens, and freeswitch just says FAIL_WAIT. I have played with the settings a bunch, to no avail, I am using a freepbx extension, but at any rate, I should see some failure on my asterisk cli at 50 verbosity. Is there an example of this that I can use? I saw this http://wiki.freeswitch.org/wiki/Connecting_Freeswitch_And_Asterisk but was hoping to use a freepbx extension.
4. I didnt notice a way to specify the port for a particular gateway - it would be nice if that were available on the "Gateways" page, I am assuming its something you set on the "External" page.
-
4 things - 1. I AM IMPRESSED!!! Awesome work MCRANE
I'm glad you appreciate it.
2. One little thing I noticed that didnt seem to be the appropriate behavior:
I made a gateway and entered a dialplan expression for that gateway and saved it. When I was looking at the settings in that gateway again the dialplan expression was blank, so I thought, hmm must have forgot it, and added it again and saved.
When I go to the Dialplan tab it now has a duplicate of the dialplan I just built for that gateway, but looking at the gateway again it is blank again - is this how it should work or a bug, or am I just expecting too much ;?
It is working how it was designed. The 'Dialplan Expression' tool under the Gateway tab is simply a shortcut for adding an outbound route to the 'Dialplan.' As stated on that page: "Shortcut to create the outbound dialplan entries for this Gateway. The entries are saved to and edited from the 'Dialplan' tab. "
3. I am running this on the new pf vmware image, and I attempted to configure a gateway to my asterisk box on the same LAN, but when I do this and watch the asterisk console, nothing ever happens, and freeswitch just says FAIL_WAIT. I have played with the settings a bunch, to no avail, I am using a freepbx extension, but at any rate, I should see some failure on my asterisk cli at 50 verbosity. Is there an example of this that I can use? I saw this http://wiki.freeswitch.org/wiki/Connecting_Freeswitch_And_Asterisk but was hoping to use a freepbx extension.
Currently I don't have an Asterisk box to experiment with what you are trying to do. I migrated all my installations of Asterisk over to FreeSWITCH a couple of months ago.
The link you are referencing is the link I would have suggested to you. However it may help to know that by default FreeSWITCH binds to your WAN IP. You might need some rules or NATing to get it directed to your asterisk box that is on the LAN. It might be easier to have FreeSWITCH bound to the LAN and then it should have no problem talking to asterisk that is located on the LAN. To do that look at the instructions here: http://doc.pfsense.org/index.php/FreeSWITCH#IP_address_or_Domain
4. I didnt notice a way to specify the port for a particular gateway - it would be nice if that were available on the "Gateways" page, I am assuming its something you set on the "External" page.
If the my domain for my gateway was proxy.mygateway.com you should be able to adjust the port with proxy.mygateway.com:5062.
-
A new FreeSWITCH update is available that adds ability for an extension to have more than one voicemail email address assigned to it. All you need to do is seperate the email addresses by a comma or a semi-colon. This would allow you to send your voicemail to as many email addresses as desired. You can even send it to a special email address for your cell phone provider so you will get a text message notification of your voicemail.
Reminder: voicemail can also be accessed by calling your extension number or by calling extension 4000 then providing your extension number and voicemail password.
-
Works perfectly! Thanks mcrane.
-
ok, thanks for the advice. keep in mind i am using the new vmware image, which by defualt has allow any/any to/from wan - wan is bridged to lan, unless i am misunderstanding what was stated on the blog, and the firewall rules shown on my box, but I am guessing you are right in that i need to mess with the ports or bind fs to the lan.
on a sidethought - i noticed there is a Snom module, which I like very much, but my utmost preferred phone is aastra for their huge xml apps, is there any thought to include them? I would think the native xml of FS would only compliment aastra phones (better than asterisk;) with their xml and php addons. I can help in porting the aastra package except for the dialplan components, which I will most likely not be fully comfortable with for a while, so - ya I am willing to do what ever small part in this area, and as much testing as anyone needs with aastra phones. something helpful- http://www.aastratelecom.com/cps/rde/xchg/SID-3D8CCB6A-D521E521/03/hs.xsl/23492.htm
-
on a sidethought - i noticed there is a Snom module, which I like very much, but my utmost preferred phone is aastra for their huge xml apps, is there any thought to include them? I would think the native xml of FS would only compliment aastra phones (better than asterisk;) with their xml and php addons. I can help in porting the aastra package except for the dialplan components, which I will most likely not be fully comfortable with for a while, so - ya I am willing to do what ever small part in this area, and as much testing as anyone needs with aastra phones. something helpful- http://www.aastratelecom.com/cps/rde/xchg/SID-3D8CCB6A-D521E521/03/hs.xsl/23492.htm
I haven't played much with asstra and don't currently have any for development. You are welcome to help out in any way you desire.
-
New version available for the TFTP package.
1. The new version automatically adds the TFTP option to the DHCP Server.
2. Configuration files in the /tftpboot directory can now be modified by clicking on the edit button. Make your changes and then click on 'Save.'== Note ==
If you have any problems with the TFTP double check that the tftp lines in the /etc/inetd.conf are not commented out.
The beginning of the line looks like
TFTP is commented out and will not run.
#tftp dgram udpTFTP is ready to go.
tftp dgram udp -
I got a weird issue with any recordings be it voice mail or IVR… as the recording ends the last several syllables repeat. Its happened for a while and Im wondering if something on my box is corupt or maybe a setting I can change.
I am running on pfSense 2.0 at this point. pfSense-Full-Update-2.0-ALPHA-ALPHA-20090115-2300.tgz Newest version as of yesterday seemed to break the freeswitch package.
Latest freeswitch package also but this has been happening for a couple of weeks.
Anyway just curious.. :)
Im using a Grandstream 502 here without any issues. Dialing with RFC28*** doesn't work. Using sip info. (normal?)
Dlink DVG 1402s wont stop ringing after it gets a call... (latest firmware)
Zoom 5822 works but seems to loose registration intermittently. (only good for one port)
:) ;D
-
but my utmost preferred phone is aastra for their huge xml apps, is there any thought to include them? I would think the native xml of FS would only compliment aastra phones (better than asterisk;) with their xml and php addons.
Totalimpact: I spent an awfully long time - hours - trying to get an aastra to register against my pf[reeSwitch] box. Have you been successful? I had this same aastra registered against an asterisk server; but could not get it to register at all to the freeswitch. My linksys 962 took all of two minutes to get working; and that includes getting the Slashdot rss feeds on the phone.
I might have been doing something wrong, so if you get an aastra working I'd be interested in seeing screenshots of your config screens.
I was using a aastra 9133i with the latest firmware.
-
no Adrian - i havent actually tried to get one going on it, I will see if I can check one out tomorrow. Aastras are pretty finicky with network and nat settings - you are connecting everything on the same network - right? I still have not had a chance to troubleshoot why FS wont register to an asterisk extension, but I am pretty sure its something in the network config.
-
Ok, so I got a 57i plugged in, it registers, but it fails to make calls. everything is on the local lan, and this phone worked fine yesterday on asterisk. So i did a packet capture, and the packets looks like this:
1. SIP/SDP Request: INVITE
2. SIP Status: 100 Trying
3. SIP Status: 407 Proxy Authentication Required
4. SIP Request: ACK sip:9000@192.168.2.123:5060
5. IP Fragmented IP protocol (proto=UDP 0x11, off=0) [Reassembled in #6]
6. SIP/SDP Request: INVITE
7. same as packet 5I dont know if this Aastra specific, or freeswitch, but something keeps breaking the invite packets, they get reassembled in the next packet, but keep breaking. Softphones work fine, I even tried a different switch. At any rate I opened a ticket with aastra support, i will see if they can make anything of it.
@Adrian - How far did you get with your 9133?
-
It may help to monitor freeswitch you can use fs_cli (command line interface)
SSH to pfsense FreeSWITCH machine then:
cd /usr/local/freeswitch/bin
./fs_cli -H 192.168.0.1Replace 192.168.0.1 with pfsense LAN ip address.
Then you can watch what is going on in FreeSWITCH.
-
ya - thanks, I was just messing around at the cli. I am hoping these will work since they are listed on the FS interop page.
on another note - my Nokia N80 over wifi works flawless, actually better than the softphone;).
yet another: I cant figure out why this gateway that I deleted keeps popping up on the Status page under "sofia status" - is there more than one place I need to delete a gateway? I even tried rebooting.
- 11 days later
-
Hi,
short question. Where can I find the current release of your freeswitch package?
Within the packages tab I can see only release 0.7 of freeswitch…thanks in advance
-
Within the packages tab I can see only release 0.7 of freeswitch…
That's the latest one as far as I know.
-
Hello mcrane…. I've finally setup another pfsense box to test out freeswitch. I'm a complete newb with a pap2(currently running 1 line with v-buzzer), but want to venture and try out a small SOHO setup.
I'm reading and reading, but I'm having a hard time with the initial setup. Is there a chance someone has a walkthrough for just the initial setup. I am sure that after I can get the system to at least talk to a phone and get the basics working, the rest is easy. The only way for me to figure out pfsense was to get the basic firewall working, and then one by one I learned how to setup and use the additional features (snort/proxy).
After I install the basic freeswitch package, what are the settings that have to be modified for a simple 2 phone system? How about settings for a pap2/spa942?
Funny thing was I originally thought I could do it by just some simple reading, and I was going to post a simple walkthough, as I know someone else who is interested. Instead it's me asking how..... -
Did you see this page?:
http://doc.pfsense.org/index.php/Category:FreeSWITCH -
Also Mcrane - I was able to finally get an Aastra 57i to work. evidentally it was generating packets that were exceeding the 1500 byte packet limit, so it was fragmenting the packets and for some reason pfsense/freeswitch was not able to reassemble them.
There is a fix for this on the phone: In the phone web-UI: Global SIP> Codec Preference List> Codec 1 >
change all to "Basic Codec", save settings and restart the phone.Or in cfg files for aastra set:
sip use basic codecs: 1
Not sure if there is a space for that in the wiki.
-
Did you see this page?:
http://doc.pfsense.org/index.php/Category:FreeSWITCHOf course. But there is nothing for a complete voip newb like me. If I just want my phone to talk to freeswitch to see that the connection is working, what do I need to setup?
The settings tab. Do I need to change anything in here?
Extensions. I am assuming that I need to setup one extension (ex 1001) and that is the username and password that the phone uses to connect to freeswitch?
Gateway. I assume that is where I setup my provider information.
I'm assuming that is all that I need minimum to get the SIP phone (spa942) to connect to freeswitch. After that I need to configure how the incoming calls are handled?
The page does not really get into what you need to get it running.I've tried the above and my SPA942 does not register with freeswitch..
Sorry but a lot of the terminology is way above a newb. I've been reading here and freeswitch site and there is just a lot for a new person to get into. It can't be that hard!!
If I ever get it running, I am going to make sure that I do a writeup for a newb. This system and what it can do should be easy to setup (at least for basic features). If it was easier, more people would use it. -
Of course. But there is nothing for a complete voip newb like me. If I just want my phone to talk to freeswitch to see that the connection is working, what do I need to setup?
The guide started out as a newb guide but I added more and more features too it.
Get phone to talk to FreeSWITCH…
1. Install the FreeSWITCH package
2. Setup the phone extension in the pfSense FreeSWITCH gui. Services -> FreeSWITCH -> Ext
3. Optional: If you are going to register the phone to the WAN IP of pfSense then skip this step.
If you to register to a domain then set the domain name under the 'Vars' tab with the variable 'domain'
domain=yourcustomdomaingoeshere.dyndns.org you can use dynamic dns if you have a dynamic ip address or a standard domain if you have a static ip address. If you changed the domain you might need to restart FreeSWITCH.
4. 'Status' click on reloadxml for FreeSWITCH to read the new changes to the configuration
5. Setup your phone or soft phone with the WAN IP or domain depending on what you chose on step 3.
6. Check the status page to see if your phone is registered.
7. Call extension 9999 which is music on hold.
8. Call your own extension and that will send you to voicemail. Or you can access voicemail for any extension at extension 4000.
9. Setup another extension and then try to call between extensions.The settings tab. Do I need to change anything in here?
You can set your 'area code' this is used if you want to use 7 digit dialing for outbound calls. The passwords on the settings page can be changed to make it more secure. The SMTP settings are for setting a mail server that will be delivering voice mails to email. Voicemail to email is optional there is standard voicemail saved that is saved on FreeSWITCH.
Extensions. I am assuming that I need to setup one extension (ex 1001) and that is the username and password that the phone uses to connect to freeswitch?
Yes, The username is the 'Extension' number and the password is the extensions 'Password'.
Gateway. I assume that is where I setup my provider information.
Yes, and then you can check to see if the Gateway/Provider is registered on the Status tab. If it is registered it will say 'reged'. On the 'Gateway' tab make sure to read the note next to the 'Dialplan Expression' tool. The Dialplan Expression is a shortcut that creates outbound routes on the 'Dialplan' tab. For the advanced user outbound routing can be handled directly from the 'Dialplan' tab without the 'Dialplan Expression'. I still use the 'Dialplan Expression' it works nicely as a shortcut. Note: don't expect anything to stay in the 'Dialplan Experssion' textarea shortcut the info is stored on the 'Dialplan' tab and not stored in the shortcut.
I'm assuming that is all that I need minimum to get the SIP phone (spa942) to connect to freeswitch.
I explained this pretty well in the 9 steps shown above.
After that I need to configure how the incoming calls are handled?
Incoming calls are handled with the 'Public' tab. There are notes inside this page that should help explain it.
First create the public 'Extension Name', make sure it is enabled, put a description on it like the phone number from the provider. Then add a condition to it 'destination_number' which will be the phone number that the provider has given you. This will usually be 11 digits but is sometimes 10 in the North America. For other areas I would ask the provider or experiment until you get it right. Then you need to add an action such as 'transfer'. On the transfer action you could put the extension number. If my main extension was 1001 then I would set it to '1001 XML default' or if you have setup an IVR at extension it would be '5002 XML default'If I ever get it running, I am going to make sure that I do a writeup for a newb. This system and what it can do should be easy to setup (at least for basic features). If it was easier, more people would use it.
You can get it running if you keep trying. Basic setup is really not that hard you probably are simply missing a few things.
Newb guides are always welcome the more the better. People learn best when they have multiples guides so that can pick the one that makes the most sense to them.
If you have any further questions then feel free to leave them here or ask them at #pfsense-freeswitch or #pfsense irc channels. If you try to reach me at #pfsense then make sure to prefix your question with 'mcrane: ' that way I'm alerted.
-
Hi,
short question. Where can I find the current release of your freeswitch package?
Within the packages tab I can see only release 0.7 of freeswitch…thanks in advance
0.7 is the current release for the pfSense FreeSWITCH. It doesn't follow the release number of the FreeSWITCH package.
However I am planning on rebuilding FreeSWITCH in the next day or two.I've also been working on a new 'follow me' feature that can ring multiple extensions simultaneously or ring them in order. The 'follow me' feature is working on 3 phone systems now but I'm either going to build a GUI for it or allow numbers to be entered through a phone.
-
thanks master! I vote too to change mcrane status to super hero menber or superman!
-
Thanks for the writeup mcrane!
I'll go over the whole thing step by step and see what I missed. I had basically done everything, but I now see my problem. On my original test machine, I could not get any voip phone connecting (even qutecom). I was totally fustrated after my post 2 days ago.. I then did another test machine with nothing but pfsense and freeswitch. I actually got the software to connect to freeswitch (ok, connecting, but nothing working). So I am on a roll, I know now I'll be able to get it running.
I now see the original problem as to why things were not working at all. On my original test setup I am running a whole bunch of services (snort/squid/squidguard/bandwidthd) and there must be a conflict somewhere. It finds my external ip ok, but for the internal it finds my external ip again. My test setup #2 has no issues and finds the correct ips.
One more thing… Any weird settings on a spa942? Trying to find the correct settings for a connection...Since my original test setup will be my final setup, I'll have to readup to see how freeswitch binds to the correct adapter.
And Again....
THANKS! It's nice to have the support base here. The freeswitch package will be a success just based on the great support. -
I now see the original problem as to why things were not working at all. On my original test setup I am running a whole bunch of services (snort/squid/squidguard/bandwidthd) and there must be a conflict somewhere.
I have snort and bandwidthd running on systems with the FreeSWITCH package and it runs fine. My guess if there is a conflict it will be with squid or squidguard.
It finds my external ip ok, but for the internal it finds my external ip again. My test setup #2 has no issues and finds the correct ips.
I suspect terminology is confusing you on this. FreeSWITCH binds by default to the WAN IP for both internal and external profiles. These SIP profiles are not exactly like a WAN and LAN. Internal is the SIP profile that handles SIP registrations. The external profiles handles anonymous calls that don't require registration. The external calls are routed using the 'Public' tab in the GUI.
You can make FreeSWITCH bind to the WAN or the LAN if you want it to bind to both you need to create an additional SIP profile.
One more thing… Any weird settings on a spa942? Trying to find the correct settings for a connection...
If your phone is behind NAT then on the extensions tab set NAT equal to yes. There is also changes needed on the SIP tab to make it handle NAT better. After I get some sleep I will look up these settings and document them here on the forum again (not sure where the link to it is on the forum but I believe I have mentioned it before).