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 235.6k 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.
    • R
      robi
      last edited by

      To save logs to the USB stick I think it would be enough to just change the logdir path in asterisk.conf```
      astlogdir => /var/log/asterisk

      
      For a remote syslog server you can try some tips found on the internet: http://www.savelono.com/linux/configuring-asterisk-for-a-remote-syslog-server.html

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

        Over here on pfSense-2.1-RELEASE-4g-amd64-nanobsd_vga after package installation console outputs:

        Parse error: syntax error, unexpected $end in /usr/local/pkg/asterisk.inc on line 389

        1 Reply Last reply Reply Quote 0
        • D
          danisam
          last edited by

          HEllo ,
          In 2.1-RELEASE (i386)
          built on Wed Sep 11 18:16:22 EDT 2013
          FreeBSD 8.3-RELEASE-p11

          With clean package install i am wondering to activate the AEL module , but there is an error.

          nxtwall*CLI> module load pbx_ael.so
          Unable to load module pbx_ael.so
          Command 'module load pbx_ael.so ' failed.
          [Feb 10 11:18:17] WARNING[92895]: loader.c:481 load_dynamic_module: Error loading module 'pbx_ael.so': /usr/pbi/asterisk-i386/lib/asterisk/modules/pbx_ael.so: Undefined symbol "destroy_pval"
          [Feb 10 11:18:17] WARNING[92895]: loader.c:894 load_resource: Module 'pbx_ael.so' could not be loaded.

          Thanks for your help.

          Regards

          1 Reply Last reply Reply Quote 0
          • R
            robi
            last edited by

            I never used pbx_ael.so module. I guess it depends on something, which is missing. Perhaps googling on the error message could give some hints…

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

              I just upgraded my pFsense to the latest 2.1.2 release….
              After the reboot & successfull update pFsense gave me the following message "Packages are currently being reinstalled in the background."

              Nice !

              I have 2 packages....a small one (CRON) and Asterisk.
              The problem is the size of the new Asterisk package that is automatically installed !!!!!

              • previous release - asterisk-1.8.25.0-i386.pbi  -> 41MB
              • current release - asterisk-1.8.26.1-i386.pbi -> 108MB

              At the end of the installation Asterisk burns 580MB of space which leaves my 1GB CF card....voiceless...as my VoIP installation.

              In fact even with a 2GB CF card it has been problematic for me to install it.
              88% space used & installation goes forever. Then reboot, install the package again (in fact it will just run the installation phase not the download) and finally....it works ! But my card is nearly full with 88% of 907M used.

              Is there a reason for such a size increase ?
              What would be the way for installing the older release instead ?

              Thanks for your help.

              1 Reply Last reply Reply Quote 0
              • R
                robi
                last edited by

                Hmm…

                I also noticed that on my 4G CF card the space usage was higher after the upgrade, but I thougt that was because I was also upgrading architecture from i386 to x64. Your post shows me that I was most probably wrong.

                As far as I can remember the older Asterisk had some security issues, so the upgraded version is recommended to be used. However it's indeed surprising more than twice disk space to be used.
                The older asterisk had quite a lot of non-functional modules, because of many missing dependencies. Maybe here these were fixed, that would explain the increased disk space requirerements.

                I don't know.

                However, I suggest to move to 4GB card on NanoBSD...

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

                  @robi:

                  As a workaround, all you have to do is keep the comment line "demo extension for pfSense" present in the conf file, but delete the demos themselves. The script only checks for the string "demo extension for pfSense", if it's present, it doesn't add anything.

                  I have the same behaviour here and using your workaround does the trick.
                  But it is annoying….

                  1 Reply Last reply Reply Quote 0
                  • D
                    danisam
                    last edited by

                    Hello ,
                    I am using Asterisk package in the new Pcengines APU board with Pfsense 2.1 .
                    I am searching to use Codec G729  ?  there is someone who try it?

                    Regards

                    Daniel

                    1 Reply Last reply Reply Quote 0
                    • D
                      danisam
                      last edited by

                      I think i need to recompile the sources  from here http://asterisk.hosting.lv/ 
                      in a FreeBSD 8.0 system , with the linux compatibility ( Pfsense 2.1 doenst)

                      Tell me if i am in the right way !!

                      Thanks for your help

                      Regards

                      Daniel

                      1 Reply Last reply Reply Quote 0
                      • W
                        w32-blaster
                        last edited by

                        Hi All,

                        Does somebody tried the odbc connector from pfsense to another host?
                        I'm trying to configure it (to use a remote mysql server as dialplan backend) but can't configure properly the odbc on pfsense.
                        After adding the driver and the DSN, with isql I receive segmentation fault.
                        It is a missconfiguration or bug?

                        1 Reply Last reply Reply Quote 0
                        • W
                          whitewidow
                          last edited by

                          I have a IPSEC VPN connections between 2 locations.

                          Location 1 Has a pfsense router (10.0.1.254) with a dedicated Asterisk server (10.0.1.2) behind the routers LAN port.

                          Location 2 is a pfSense Netgate router with Asterisk installed on the router (10.0.9.254)

                          At location 2 anything behind the Netgate router LAN port (10.0.9.254) ipsec traffic travels to Location 1 (10.0.1.0/24) fine with out issues. But from inside the Netgate router (10.0.9.254) either via trying to ping in the GUI or ssh the Location 1's network (10.0.1.0/24)  no packetes travel down the VPN.

                          So my issues is that I have short codes (ie *80) to dial the two locations but since Asterisk is not using the VPN tunnel on the Location 2 Netgate router (10.0.9.254) they time out.

                          I need to find out how to get Asterisk from Location 2 to communicate down the VPN. Right now it simply does not even see the 10.0.1.0/24 network at location 1 from inside the router.

                          Any idea how to get inner office extension to work over vpn? My other locatios with dedicated Asterisk servers behind the router/firewall work fine. I can not get any location with asterisk as an add on to register as a sip peer over the vpn

                          1 Reply Last reply Reply Quote 0
                          • R
                            Rezin
                            last edited by

                            Is anyone else having issues installing the Asterisk package?

                            pfSense version: 2.1.5-RELEASE (amd64)
                            Asterisk package details: Beta - 1.8.26.1 pkg v0.3.3 - platform: 2.0

                            Beginning package installation for Asterisk .
                            Downloading package configuration file… done.
                            Saving updated package information... done.
                            Downloading Asterisk and its dependencies...
                            Checking for package installation...
                            Downloading https://files.pfsense.org/packages/amd64/8/All/asterisk-1.8.26.1-amd64.pbi ...  (extracting)
                            Verifying Checksum...SKIP_ARCHLINES: 62
                            Archive checksum: 58be47139e05fac3450d80a4b884ba9c89015eb775d7af0e22880b7f382f991c
                            Saved checksum: b2a19cd1ee8711e4794554d58c065a9471ab3637d5b1b1340e2bd0060ac648d5
                            pbi_add: /tmp/apkg_asterisk-1.8.26.1-amd64.pbi failed checksum, the archive may be corrupt.
                            of asterisk-1.8.26.1-amd64 failed!

                            Installation aborted.Removing package…
                            Starting package deletion for asterisk-1.8.26.1-amd64...done.
                            Removing Asterisk components...
                            Menu items... done.
                            Services... done.
                            Loading package instructions...
                            Include file asterisk.inc could not be found for inclusion.
                            Deinstall commands...
                            Not executing custom deinstall hook because an include is missing.
                            Removing package instructions...done.
                            Auxiliary files... done.
                            Package XML... done.
                            Configuration... done.
                            done.
                            Failed to install package.

                            Installation halted.

                            Even though it's only meant for pfSense 2.0, is that because I'm running 2.1.5 the issue here?

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

                              Hello,

                              I'm not installing it on AMD but on my Alix system I also run pFsense 2.1.5
                              As you maybe read in my earlier posts I had a lot of trouble installing that new Asterisk version. Main cause was storage:

                              • short of storage (this version consumes 580GB)
                              • speed of storage. On a low speed CF card install nearly always failed and had to be resumed.

                              But finally it succeeded and runs ok.

                              1 Reply Last reply Reply Quote 0
                              • R
                                Rezin
                                last edited by

                                @chercheur:

                                Main cause was storage:

                                • short of storage (this version consumes 580GB)

                                Is that a typo? 580 gigabytes?

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

                                  The Asterisk 1.8 package is not working\installing correctly under PFsense 2.2 i386 nanobsd (4 Gig dist) :(
                                  I am trying to install on an Alix board (alix2d13).
                                  Installing through the web interface does not seem to be the right way because this takes so long the web browser times out.
                                  So I also tried to install the package using the console (pfSsh.php playback installpkg Asterisk)
                                  The package seems to install correctly, but after the installation is done I am unable to start the service using de webinterface.
                                  When starting Asterisk using the console by starting /usr/pbi/bin/asterisk as root, the service starts and Asterisk is running fine. It Does not seem to be an Asterisk configuration issue (this also happens with de default Asterisk config)

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

                                    Some additional info
                                    It looks like de asterisk.inc file is not executed correctly
                                    After a reboot, /var/log/asterisk for example is not created

                                    Here also some logging after the manual start as root from the console

                                    [Jan 26 20:34:01] NOTICE[-1] cdr.c: CDR simple logging enabled.
                                    [Jan 26 20:34:02] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:02] NOTICE[-1] loader.c: 162 modules will be loaded.
                                    [Jan 26 20:34:02] WARNING[-1] loader.c: Error loading module 'res_snmp.so': Shared object "libperl.so" not found, required by "libnetsnmpmibs.so.30"
                                    [Jan 26 20:34:03] WARNING[-1] res_fax.c: 'modems' setting 'V17,V27,V29' is no longer accepted with 'minrate' setting 2400
                                    [Jan 26 20:34:03] WARNING[-1] res_fax.c: 'minrate' has been reset to 4800, please update res_fax.conf.
                                    [Jan 26 20:34:03] NOTICE[-1] pbx_lua.c: Lua PBX Switch loaded.
                                    [Jan 26 20:34:03] WARNING[-1] loader.c: Error loading module 'res_snmp.so': Shared object "libperl.so" not found, required by "libnetsnmpmibs.so.30"
                                    [Jan 26 20:34:03] WARNING[-1] loader.c: Module 'res_snmp.so' could not be loaded.
                                    [Jan 26 20:34:04] NOTICE[-1] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:04] WARNING[-1] db.c: Database unavailable
                                    [Jan 26 20:34:04] NOTICE[-1] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
                                    [Jan 26 20:34:06] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:06] WARNING[-1] db.c: Database unavailable
                                    [Jan 26 20:34:06] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
                                    [Jan 26 20:34:06] WARNING[-1] db.c: Database unavailable
                                    [Jan 26 20:36:11] WARNING[-1] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory

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

                                      @matthijs:

                                      The Asterisk 1.8 package is not working\installing correctly under PFsense 2.2 i386 nanobsd (4 Gig dist) :(

                                      I did not had time to look asterisk package yet.

                                      these "missing" folder maybe under /usr/pbi dir.

                                      If you know how to symlinks dirs on unix systems, you may get it running.

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

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        robi
                                        last edited by

                                        Hi guys,

                                        It works if you log in by ssh shell and just type in "asterisk", but log file is not seen by the web interface.
                                        I'll have a look at this in the next few days, shouldn't be hard to fix.

                                        By the way, marcelloc, do you think it would be possible to have a newer asterisk package for 2.2?
                                        I'm thinking of Asterisk v11.10 at least, with extra support for the super-high quality and open opus audio codec.

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

                                          I changed

                                          $replace[2]='astdbdir => /tmp';

                                          in /usr/local/pkg/asterisk.inc

                                          the astdb file gets created there after a reboot
                                          Unfortunatly the asterisk service is still not started automaticly after a reboot and I am also still unable to manualy start the service by using the webinterface (still have to start /usr/pbi/bin/asterisk via the ssh console)

                                          After starting Asterisk I still see the following in the asterisk log
                                          (Maybe some issues are related to my specific asterisk configuration)

                                          ==>

                                          [Jan 27 10:15:59] NOTICE[-1] cdr.c: CDR simple logging enabled.
                                          [Jan 27 10:15:59] NOTICE[-1] loader.c: 162 modules will be loaded.
                                          [Jan 27 10:16:00] WARNING[-1] loader.c: Error loading module 'res_snmp.so': Shared object "libperl.so" not found, required by "libnetsnmpmibs.so.30"
                                          [Jan 27 10:16:00] WARNING[-1] res_fax.c: 'modems' setting 'V17,V27,V29' is no longer accepted with 'minrate' setting 2400
                                          [Jan 27 10:16:00] WARNING[-1] res_fax.c: 'minrate' has been reset to 4800, please update res_fax.conf.
                                          [Jan 27 10:16:00] NOTICE[-1] pbx_lua.c: Lua PBX Switch loaded.
                                          [Jan 27 10:16:01] WARNING[-1] loader.c: Error loading module 'res_snmp.so': Shared object "libperl.so" not found, required by "libnetsnmpmibs.so.30"
                                          [Jan 27 10:16:01] WARNING[-1] loader.c: Module 'res_snmp.so' could not be loaded.
                                          [Jan 27 10:16:01] NOTICE[-1] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
                                          [Jan 27 10:16:01] NOTICE[-1] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.

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

                                            Disabled the loading of res_snmp.so
                                            And changed minrate' setting to 4800 in res_fax.conf
                                            (wich I guess was specific for my configuration)
                                            No more logging errors\issues now

                                            Asterisk still not  starting after a reboot (any hint on where to seach for to fix this ?)
                                            If I run asterisk via the webinterface (diagnostics ==> command prompt) Asterisk also starts.

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