Assistance with FreeSwitch.



  • I've hit a wall after installing PFSense and adding the FreeSwitch package.  I've tried searching about forums and wiki, etc.  I'm not even sure what to look for.

    Basically I've install PFSense on an old box with 2 NICs.  Got WAN/LAN IPs, can ping LAN.  Do not care much for WAN.  Setup is pretty much default with PFSense.  Added a regular switch to the LAN NIC and two XP machines to the switch.  I see the webGUI using it's local IP.

    Install FreeSwitch Package and X-Lite on both XP machine. 
    Setup two extensions, and setup those extensions on the x-lite XP machines.
    Configured FreeSwitch SIP account with the basic settings.
    Cannot call the to either machines locally; from one computer to the other and vise versa

    I'm just trying to get this to work locally.  I don't want to sign up for a sip account none of these are connected to the internet all internal.

    I've been searching around for a few days not quite sure what I need to be looking for or whats it called, just need this to work internal without a SIP account.  Anyone can link me a how to/tips/help would be awesome.



  • Just got back from vacation. Have you checked the Status tab to see if your extensions are registered?

    On the Profiles tab do you see one with a name of lan.xml?



  • I started from scratch
    I install freeswitch to PFSense
    I created ext: 1000 and 1001
    I have NOT configured anything else
    I do see a lan.xml
    When I click on the status tab I get a bunch of these:
    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handle
    sofia status

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 181

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handle
    sofia status profile external

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 205

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handle
    sofia status profile internal-ipv6

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 205

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handle
    sofia status profile internal

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 205

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handle
    sofia status profile lan

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 205

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handlestatus

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 218

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handleshow channels

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 236

    Warning: fsockopen(): unable to connect to 10.1.10.118:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 Warning: fsockopen(): unable to connect to 10.2.2.1:8021 in /usr/local/pkg/freeswitch.inc on line 165 Warning: socket_set_blocking(): supplied argument is not a valid stream resource in /usr/local/pkg/freeswitch.inc on line 166 no handleshow calls

    Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/freeswitch/freeswitch_status.php on line 255



  • Also I noticed under Status > Services, that FreeSwitch Services has stopped.  When I click the play button to start the service, it says "freeswitch has been started", but under "Status" it still says "stopped".  I've rebooted/restarted with no luck.  Thanks!



  • I have had problems trying to register extensions on the LAN, so I register them to my DynDNS domain name, or the WAN in other words, and that seems to work fine (as long as I have DNS access!). In your case you could assign your WAN some imaginary address and your extensions should be able to register to that address.

    Of course that won't help you much if the freeswitch service isn't even starting. Do you see anything informative in the system log? I've had my troubles getting to know freeswitch, but I can't say I've ever had any real difficulty getting the package to install on pfsense.

    Anyway, mcrane will know more about what your errors mean. Perhaps it has something to do with no WAN connection, but that's a shot in the dark.

    db



  • professorpaw - What version of pfsense are you using? I saw errors like that on my 1.2.2 firewall, and when I upgraded to 1.2.3 RC1, it worked fine. See http://forum.pfsense.org/index.php/topic,16817.0.html

    Hope this helps!

    Library Mark



  • Thanks for the reply guys really appreciate it.  I am DLing 1.2.3 RC1 atm.  I'll try to at least get the freeswitch service running.  That may be the major brick wall right now @_@.  Hopefully the 1.2.3 will clear up those errors and get the f/s service up and running.  Then I'll try assigning the WAN an address and see if this works.  I'll keep this updated!  Thanks again for helping!



  • One thing to note with pfsense 1.2.3 RC1 has siproxyd package installed by default. It uses the same ports as FreeSWITCH therefore it conflicts with it. For that reason you will need to go to System -> Packages and remove it. I will lookup whether I can have it removed when FreeSWITCH is installed until then you will need to manually remove it.

    Best Regards,

    Mark J Crane



  • YES!  THANK YOU EVERYONE FOR HELPING!!!!  I downloaded v. 1.2.3 RC1 and it cleared up everything!  To make this work locally only, bind ext/int/lan to the LAN I.P.  Make sure turn off/configure your local machine's firewall too.  If there is anyone out there who is trying the same thing and are having some troubles feel free to contact me.  Thanks again guys for all the hard work and dedication to this wonderful software!!! ;D


Log in to reply