• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

FreeSWITCH package for pfSense.

Development
5
12
9.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    billm
    last edited by Aug 20, 2008, 6:00 PM

    I'd be interested in making use of the package.  And can certainly help getting it into the package repo.  Contact me via email - billm at pfsense dot org, if you are still interested in putting together a package for this.

    –Bill

    pfSense core developer
    blog - http://www.ucsecurity.com/
    twitter - billmarquette

    1 Reply Last reply Reply Quote 0
    • C
      cybrsrfr
      last edited by Aug 21, 2008, 2:03 AM

      Great I will send you email you and get this going.

      So far on my system I have had it running well for about a week. Earlier this week I added it to Status -> Service for monitoring and restarting the Freeswitch service. Also have built a page that communicates to Freeswitch with xmlrpc to monitor current calls… (includes ability to place a call on/off hold, start/stop recording).

      1 Reply Last reply Reply Quote 0
      • C
        cybrsrfr
        last edited by Sep 24, 2008, 9:20 AM

        The developer documetation was very helpful at:
        http://doc.pfsense.org/index.php/Developing_Packages

        Using this documentation I was able to setup a test package system to use for development.

        And some info was helpful at:
        http://forum.pfsense.org/index.php/topic,312.msg16925.html#msg16925

        The FreeSWITCH package now installs and is operational. The de-install of the package isn't working yet.
        It seems that the custom_php_deinstall_command(); function is not working.
        <custom_php_deinstall_command>custom_php_deinstall_command();</custom_php_deinstall_command>

        Also noticed that in services spamd service will stop but starting it back up from 'Services' appears to hang. However using SSH to remote into pfSense and then: ps -waux | grep spamd  I have verified that spamd does actually start. So PHP just doesn't release the process on its own. I'm having the same problem with the FreeSWITCH package I'm building.

        1 Reply Last reply Reply Quote 0
        • R
          ron
          last edited by Sep 25, 2008, 5:49 AM

          Give your custom_php_deinstall_command routine a unique name for your package (such as freeswitch_deinstall_command() and make sure it matches the deinstall routine you put in your package's .inc file.  It should work then.

          For the service restarting issue, make sure the  <executable></executable>tag in the package's .xml file holds the appropriate name for the executable that actually runs for the service.  This tag value is used to determine whether the service is running in the status screen or not.  If the specified value does not match the command exactly, it won't show the status properly.  The script should call that executable for you when starting.  If they don't match the status won't show correctly.

          For example, if you have <executable>bind</executable>, but your rcfile calls a daemon "named", you won't see the service as running on the service screen although named may actually be running fine.  Think something like "ps ax | grep <executable>" for determining if the service is running or not.

          Regards,
          Ron</executable>

          1 Reply Last reply Reply Quote 0
          • C
            cybrsrfr
            last edited by Sep 25, 2008, 11:05 AM Sep 25, 2008, 10:56 AM

            @ron:

            Give your custom_php_deinstall_command routine a unique name for your package (such as freeswitch_deinstall_command() and make sure it matches the deinstall routine you put in your package's .inc file.  It should work then.

            Thanks! The package now uninstalls correctly.

            @ron:

            For the service restarting issue, make sure the  <executable></executable>tag in the package's .xml file holds the appropriate name for the executable that actually runs for the service.  This tag value is used to determine whether the service is running in the status screen or not.  If the specified value does not match the command exactly, it won't show the status properly.  The script should call that executable for you when starting.  If they don't match the status won't show correctly.

            For example, if you have <executable>bind</executable>, but your rcfile calls a daemon "named", you won't see the service as running on the service screen although named may actually be running fine.  Think something like "ps ax | grep <executable>" for determining if the service is running or not.</executable>

            I had the service status working on Tuesday. it took a while to discover the resolution on my own. I wish that I had the instructions you gave above earlier in the day. The FreeSWITCH service will start manually from the console or SSH with either /usr/local/etc/rc.d/freeswitch start or with /usr/local/freeswitch/bin/./freeswitch -nc. The service will start fine when the firewall boots up. The strange issue is that if I go to Status: Services first stop the service and then start it then it never finishes loading the page. However the service is started. spamd service also shows the same problem at least from pfSense 1.2.1. If in the freeswitch.inc file if I run start_service("freeswitch"); at the end of the install function then the installation never completes.

            I've fixed the initial starting of the process after installation by using:

            $handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r");
            pclose($handle);

            Thanks again for the help.

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by Sep 25, 2008, 1:33 PM

              Can you post the code, even privately, so we can help better.

              1 Reply Last reply Reply Quote 0
              • C
                cybrsrfr
                last edited by Sep 26, 2008, 10:02 AM

                @ermal:

                Can you post the code, even privately, so we can help better.

                Thanks for offering to look at this.

                The FreeSWITCH package for pfSense is in development however it is operational. At this time the settings tab needs work as well as the dialplan. As well as the problem previously mentioned under 'Services' the 'freeswitch' service will stop correctly but the start will run the application but unfortunately hangs the GUI. Using PHP's popen I was able to get it to start after the install. Rebooting will start the service with the rc.d script or manually starting from SSH also works fine.

                Here is how to view the current package.

                Modify the following in /etc/inc/globals.inc
                "xmlrpcbaseurl" => "portableusbapps.com",

                Then browse System -> Packages and you will be able to install the FreeSWITCH package.

                Requires FreeBSD7 so far all testing has been done on pfSense 1.2.1. It might also work on pfSense 1.3 but this hasn't been tested.

                1 Reply Last reply Reply Quote 0
                • C
                  cybrsrfr
                  last edited by Oct 2, 2008, 8:06 AM

                  I have upgraded FreeSWITCH to a later version. Now Start and Stop is working great from the Services page. However I did notice that spamd still has a problem starting from Status -> Services page.

                  New version is a little larger as I have included HD sounds for high definition music on hold. I have one or two things left to do and then I will make it public hopefully sometime on Thursday.

                  Best Regards,
                  Mark

                  1 Reply Last reply Reply Quote 0
                  • C
                    cybrsrfr
                    last edited by Oct 7, 2008, 7:00 AM Oct 6, 2008, 10:06 PM

                    The package is complete for pfSense 1.2.1 and ready to run as a Proxy or as a PBX. I have it on 2 live systems adding more this week.

                    Here are some slightly outdated Screen Shots. I have added 3 more tabs including a 'Status'. I will update them soon as soon as I can.
                    http://portableusbapps.com/images/FreeSWITCH/

                    1 Reply Last reply Reply Quote 0
                    • S
                      slimtim
                      last edited by Oct 7, 2008, 11:38 AM

                      mcrane,

                      Very impressive work you've done. I wish I had half your talent. :)

                      How do I know if I have the latest edition of your package? (I already downloaded the FreeSwitch package before your current post here)

                      -TimJ

                      @mcrane:

                      The package is complete for pfSense 1.2.1 and ready to run as a Proxy or as a PBX. I have it on 2 live systems adding more this week.

                      Here are some slightly outdated Screen Shots. I have added 3 more tabs including a 'Status'. I will update them soon as soon as I can.
                      http://portableusbapps.com/images/FreeSWITCH/

                      1 Reply Last reply Reply Quote 0
                      • C
                        cybrsrfr
                        last edited by Oct 7, 2008, 2:53 PM

                        The latest version has a 'Status' tab. If you downloaded FreeSWITCH without modifying /etc/inc/globals.inc then you have the latest version. Any new changes after launch will get its version incremented.

                        Mark

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.