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

    Asterisk 1.8 package

    Scheduled Pinned Locked Moved pfSense Packages
    281 Posts 59 Posters 234.4k 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.
    • Z
      zhhh
      last edited by

      The package installation failed on pfsense 2.2.3 i386  :-\ help plz!!!

      1 Reply Last reply Reply Quote 0
      • B
        ben.suffolk
        last edited by

        I Have the Asterisk Package Installed (0.3.1) on my pfSense system (2.2.2-RELEASE (amd64)) but there does not seem to be any of the modules installed. The config file suggests "/usr/local/lib/asterisk/modules" would be the place, but that directory does not exist.

        This means things like musiconhold won't work.

        Have I missed something out when installing this package?

        Regards

        Ben

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

          @ben.suffolk:

          I Have the Asterisk Package Installed (0.3.1) on my pfSense system (2.2.2-RELEASE (amd64)) but there does not seem to be any of the modules installed. The config file suggests "/usr/local/lib/asterisk/modules" would be the place, but that directory does not exist.

          This means things like musiconhold won't work.

          Have I missed something out when installing this package?

          Regards

          Ben

          I have the same package version installed on the same pfSense version, but i386 instead of amd64.
          Yes, according to asterisk.conf the modules directory is /usr/local/lib/asterisk/modules.
          No, that directory doesn't exist on my system either.
          But Asterisk works fine.
          If no modules were being loaded Asterisk would be basically dead.
          Are you speculating that something will not work if you attempt it, or have you actually observed that Asterisk does not work?

          For reference du -h /usr/pbi/asterisk-i386 reports 472MB. amd64 should be somewhat larger.

          EDIT:
          To see what modules are loaded issue the following command at the Asterisk CLI prompt:

          module show

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            The asterisk.conf references the chrooted paths. (For details on PBI junk, search this forum…)

            1 Reply Last reply Reply Quote 0
            • B
              ben.suffolk
              last edited by

              @carlm:

              If no modules were being loaded Asterisk would be basically dead.
              Are you speculating that something will not work if you attempt it, or have you actually observed that Asterisk does not work?

              For reference du -h /usr/pbi/asterisk-i386 reports 472MB. amd64 should be somewhat larger.

              EDIT:
              To see what modules are loaded issue the following command at the Asterisk CLI prompt:

              module show

              Your right, lots of modules are loaded. What does not work for me is the music on hold command. Thats when I started looking and found the modules directory missing.

              1 Reply Last reply Reply Quote 0
              • N
                nguyentan1980
                last edited by

                Please help me to install Asterisk-GUI on PFsense. I'm a newbie on this. My Pfsense box version is:
                2.2.1-RELEASE (amd64)
                FreeBSD 10.1

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

                  @nguyentan1980:

                  Please help me to install Asterisk-GUI on PFsense. I'm a newbie on this. My Pfsense box version is:
                  2.2.1-RELEASE (amd64)
                  FreeBSD 10.1

                  I assume you are referring to the old Asterisk GUI developed by Digium.
                  Before doing anything take a look at this page:

                  https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI

                  There is no pfSense package for Asterisk GUI. Someone would have to make one, assuming it would be practical to run Asterisk GUI on pfSense (maybe not).

                  Alternately, Asterisk GUI doesn't need to run on the same machine that Asterisk runs on – it communicates with Asterisk via AMI. A more practical approach would be to build and run Asterisk GUI on a separate UNIX/Linux box, if you have one.

                  Note: I have never used Asterisk GUI. If you read the web page linked above you'll know as much about it as I do.

                  Personally, I just configured Asterisk manually. Now I know what goes on "under the hood."

                  1 Reply Last reply Reply Quote 0
                  • N
                    nguyentan1980
                    last edited by

                    Thanks Carlm for your advice.

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

                      Another one of many reasons to stick with 2.1.5

                      If you are serious about VoIP, 2.1.5 has working limiters, working asterisk (nice redundancy even if you do/should have another box or VM behind pfsense)

                      Strange, too , how hard it is to find old versions…..

                      :( >:( >:(

                      1 Reply Last reply Reply Quote 0
                      • dotdashD
                        dotdash
                        last edited by

                        @msmith9xr4:

                        Strange, too , how hard it is to find old versions…..

                        Ok, so there isn't a big button on the download page saying 'old versions', but is it really that hard to look in the folder marked 'old' on the download mirror?
                        There are a few situations where you might want 2.1.5, but for most people 2.2.4 is better.

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

                          I started out w/ v 0.3.1 of the Asterisk package.
                          Others have commented that this version is much larger than the previous version.
                          Anyone know what accounts for the size increase?
                          Anything to do with the gcc48 stuff? Is that stuff necessary?

                          Whenever I have to reinstall Asterisk (e.g., restore a previous config) it takes about 25 minutes to untar the Asterisk .pbi. I'm running nanoBSD i386 with a SanDisk 8GB Class 4 microSD card. Was about the same with a Kingston Class 10 card. A much smaller .pbi would really help, unless there's a way to speed up the untar operation (permanent R/W on nanoBSD??).

                          Thanks!

                          1 Reply Last reply Reply Quote 0
                          • marcellocM
                            marcelloc
                            last edited by

                            Until pfSense 2.3 some packages will work better(and smaller) if you isntall via gui and then via console remove the pbi and install the freebsd package via pkg install

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

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

                              @marcelloc:

                              Until pfSense 2.3 some packages will work better(and smaller) if you isntall via gui and then via console remove the pbi and install the freebsd package via pkg install

                              Maybe I wasn't clear. My primary problem is the time required to reinstall Asterisk when, for instance, I restore a previous pfSense config. Of course, the time to untar the .pbi is proportional to the size of the .pbi, so any significant size reduction would be a significant help.

                              Your suggestion wouldn't help with the installation time: pfSense would still reinstall the .pbi when it determined it necessary to do so. (Unless you're talking about uninstalling the .pbi. But then I'd lose the Asterisk GUI.)

                              Also, the Asterisk package is unusual in that has that embedded gcc48 stuff and embedded Perl. The Perl is definitely necessary (res_snmp.so uses it, for one example). I'm not sure how I'd replace the untarred .pbi package with the FreeBSD package and its dependencies, even if it would help with the install time problem.

                              One more little gotcha: The FreeBSD 10.1 package is a slightly older Asterisk version: 1.8.31.1.

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by

                                1/ No, you don't lose any GUI by removing PBI. (That is NOT the same thing like unstalling the package from GUI.)
                                2/ Install the latest package version (0.3.2).

                                1 Reply Last reply Reply Quote 0
                                • marcellocM
                                  marcelloc
                                  last edited by

                                  @carlm:

                                  One more little gotcha: The FreeBSD 10.1 package is a slightly older Asterisk version: 1.8.31.1.

                                  Freebsd ports has both 11 and 13 version of asterisk.

                                  https://www.freebsd.org/cgi/ports.cgi?query=asterisk13&stype=all

                                  Treinamentos de Elite: http://sys-squad.com

                                  Help a community developer! ;D

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

                                    I didn't know there was a v0.3.2.
                                    What is the size of the .pbi? (0.3.1 i-386: 113MB)
                                    What is the installed size not including the .pbi? (0.3.1 i-386: 472MB)

                                    (I couldn't find the .pbi to download manually.)

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      doktornotor Banned
                                      last edited by

                                      Simply install the updated package via GUI and report back whether it works for you or not. I have NFC why would the PBI size matter. It's actually the GUI install that's changed, hopefully fixing a bunch of stuff here.

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

                                        @doktornotor:

                                        Simply install the updated package via GUI and report back whether it works for you or not. I have NFC why would the PBI size matter. It's actually the GUI install that's changed, hopefully fixing a bunch of stuff here.

                                        OK, I looked at GitHub.

                                        I was asking about size because I had no idea what had changed in v0.3.2. If the .pbi were half the size of v0.3.1 then I'd expect the installed size to be about half of v0.3.1.

                                        I had already manually applied Robi's fixes to get v0.3.1 working and added a fix of my own (earlier in this thread) to eliminate the log warnings about the missing Perl library. My v0.3.1 Asterisk installation is working fine, no warnings or errors in the log file.

                                        If anyone knows, I'd still like to know why v0.3.1 got so much larger and if there is anything that can be done about it, again because it takes 25+ minutes to revert a config while pfSense nanoBSD untars 472MB of Asterisk stuff, and that's 25+ minutes that my phone is down.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          doktornotor Banned
                                          last edited by

                                          The package version has nothing to do with the PBI version. There is no 0.3.2 PBI. There are no changes in the binaries in this update.

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

                                            Bug and fix

                                            I just found and fixed a bug in /usr/local/pkg/asterisk.inc (v0.3.1, not latest).

                                            Symptom:
                                            Every time the Asterisk package is started, the following files in /conf/asterisk are modified:
                                            asterisk.conf
                                            logger.conf

                                            Edits that the user has made to these files may be lost (if they overlap the modifications
                                            performed by asterisk.inc).

                                            Description:
                                            These files are supposed to be modified the FIRST time that the Asterisk package is started.
                                            When asterisk.inc modifies other .conf files it adds a flag comment '; by pfSense ;' .
                                            The flag comment is present in logger.conf, missing in asterisk.conf.
                                            The code in asterisk.inc doesn't, but should, check for presence of the flag comment in these two files and not modify them if the flag comment is present.

                                            Fix:
                                            In asterisk.inc:
                                            1. Add flag comment to asterisk.conf when modifying it.
                                            2. Do not modify asterisk.conf or logger.conf if the file already contains the flag comment.

                                            I have attached a .zip with both a unified context diff and the full file (patched), whichever you prefer to work with.
                                            Remember, this is for package v0.3.1 (what I'm running).
                                            The file asterisk.inc has changed since then.

                                            asterisk_inc_0_3_1-patch.zip

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