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

    FreeSWITCH package for pfSense 1.2.1 and 2.0 released. PBX or Proxy

    Scheduled Pinned Locked Moved pfSense Packages
    314 Posts 39 Posters 285.7k Views
    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.
    • T
      Taras_
      last edited by

      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
      
      
      1 Reply Last reply Reply Quote 0
      • C
        cybrsrfr
        last edited by

        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.

        @Taras:

        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.'

        1 Reply Last reply Reply Quote 0
        • chpalmerC
          chpalmer
          last edited by

          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...

          :)

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • C
            cybrsrfr
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • C
              cybrsrfr
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • chpalmerC
                chpalmer
                last edited by

                Thanks mcrane!  :)

                Triggering snowflakes one by one..
                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                1 Reply Last reply Reply Quote 0
                • T
                  totalimpact
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cybrsrfr
                    last edited by

                    @totalimpact:

                    4 things - 1. I AM IMPRESSED!!! Awesome work MCRANE

                    I'm glad you appreciate it.

                    @totalimpact:

                    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. "

                    @totalimpact:

                    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

                    @totalimpact:

                    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.

                    1 Reply Last reply Reply Quote 0
                    • C
                      cybrsrfr
                      last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mrguitar
                        last edited by

                        Works perfectly! Thanks mcrane.

                        1 Reply Last reply Reply Quote 0
                        • T
                          totalimpact
                          last edited by

                          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

                          1 Reply Last reply Reply Quote 0
                          • C
                            cybrsrfr
                            last edited by

                            @totalimpact:

                            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.

                            1 Reply Last reply Reply Quote 0
                            • C
                              cybrsrfr
                              last edited by

                              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 udp

                              TFTP is ready to go.
                              tftp dgram udp

                              1 Reply Last reply Reply Quote 0
                              • chpalmerC
                                chpalmer
                                last edited by

                                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

                                Triggering snowflakes one by one..
                                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  adrianhensler
                                  last edited by

                                  @totalimpact:

                                  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.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    totalimpact
                                    last edited by

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      totalimpact
                                      last edited by

                                      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 5

                                      I 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?

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        cybrsrfr
                                        last edited by

                                        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.1

                                        Replace 192.168.0.1 with pfsense LAN ip address.

                                        Then you can watch what is going on in FreeSWITCH.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          totalimpact
                                          last edited by

                                          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.

                                          1 Reply Last reply Reply Quote 0
                                          • K
                                            Kintera
                                            last edited by

                                            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

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