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 246.9k 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.
    • M
      m4f1050
      last edited by

      @tempest69:

      What is the content of your asterisk.conf (/usr/local/etc/asterisk/asterisk.conf)?
      Do you have this at the beginning?

      [directories]
      astetcdir => /usr/local/etc/asterisk
      astmoddir => /usr/local/lib/asterisk/modules
      astvarlibdir => /usr/local/share/asterisk
      astdbdir => /tmp
      astkeydir => /usr/local/share/asterisk
      astdatadir => /usr/local/share/asterisk
      astagidir => /usr/local/share/asterisk/agi-bin
      astspooldir => /tmp
      astrundir => /var/run/asterisk
      astlogdir => /var/log/asterisk
      

      I remember that when i edit this file i see that the first line  was
      directories  and not [directories]
      so i changed it…

      Yup, it has the (!)

      
      [directories](!)
      astetcdir => /usr/local/etc/asterisk
      astmoddir => /usr/local/lib/asterisk/modules
      astvarlibdir => /usr/local/share/asterisk
      astdbdir => /tmp
      astkeydir => /usr/local/share/asterisk
      astdatadir => /usr/local/share/asterisk
      astagidir => /usr/local/share/asterisk/agi-bin
      astspooldir => /tmp
      astrundir => /var/run/asterisk
      astlogdir => /var/log/asterisk
      
      

      Removing the (!) now to see if it works…

      (tick...tock...tick...tock...)

      Hmmm!  That seems to have done something...it's now /tmp/astdb
      Maybe add to the installer the removal of (!)
      Wonder if I can set it to /usr/local/db/asterisk now....

      EDIT:

      I left it at /tmp ...   here is my log: (cleared it before starting asterisk)

      
      [Jul 22 11:08:19] NOTICE[62646] cdr.c: CDR simple logging enabled.
      [Jul 22 11:08:19] NOTICE[62646] loader.c: 207 modules will be loaded.
      [Jul 22 11:08:19] NOTICE[62646] res_odbc.c: res_odbc loaded.
      [Jul 22 11:08:19] NOTICE[62646] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
      [Jul 22 11:08:20] NOTICE[62646] config.c: Registered Config Engine curl
      [Jul 22 11:08:20] NOTICE[62646] res_config_ldap.c: No directory user found, anonymous binding as default.
      [Jul 22 11:08:20] ERROR[62646] res_config_ldap.c: No directory URL or host found.
      [Jul 22 11:08:20] ERROR[62646] res_config_ldap.c: Cannot load LDAP RealTime driver.
      [Jul 22 11:08:20] ERROR[62646] res_config_sqlite.c: unable to open database: /var/lib/asterisk/sqlite.db
      
      

      I know I forced a pkg… openldap-client-2.4.23.tbz  So that could be causing my "ldap" errors.  Going reinstall pfsense 2.0.1 and then install the asterisk pkg to get rid of that error...

      After about a minute it started showing in Status / Asterisk and added this to the log:

      
      [Jul 22 11:09:35] ERROR[62646] res_config_pgsql.c: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1:
      [Jul 22 11:09:35] WARNING[62646] res_config_pgsql.c: PostgreSQL RealTime: Couldn't establish connection. Check debug.
      [Jul 22 11:09:35] NOTICE[62646] config.c: Registered Config Engine pgsql
      [Jul 22 11:09:35] NOTICE[62646] config.c: Registered Config Engine odbc
      [Jul 22 11:09:35] NOTICE[62646] chan_skinny.c: Configuring skinny from skinny.conf
      [Jul 22 11:09:35] NOTICE[62646] cdr_radius.c: Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
      [Jul 22 11:09:35] NOTICE[62646] cdr_sqlite.c: This module has been marked deprecated in favor of using cdr_sqlite3_custom.
      [Jul 22 11:09:35] WARNING[62646] cel_pgsql.c: CEL pgsql config file missing global section.
      [Jul 22 11:09:35] NOTICE[62646] cel_radius.c: Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
      [Jul 22 11:09:35] NOTICE[62646] cel_tds.c: cel_tds has no global category, nothing to configure.
      [Jul 22 11:09:35] WARNING[62646] cel_tds.c: cel_tds module had config problems; declining load
      [Jul 22 11:09:36] WARNING[62646] chan_unistim.c: Your OS does not support IP_PKTINFO, you must set public_ip.
      [Jul 22 11:09:36] ERROR[62646] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: Starting AEL load process.
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'.
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'.
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'.
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'.
      [Jul 22 11:09:36] NOTICE[62646] pbx_ael.c: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'.
      
      
      1 Reply Last reply Reply Quote 0
      • T
        tempest69
        last edited by

        @m4f1050
        I have also some messages about ldap and other .conf files missing, i think it's due to a lot of modules being loaded (autoload module as default?)… It can be solved by not loading the modules that we don't use in our configuration (not a bug, it's normal that the standard installation use autoload of modules)
        I'm not in production with asterisk but i will in a short time and i'm going to tweak my installation and the .conf files to not load the modules that i do not use.
        if you have this message just after a call :
        Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directory
        go to see :
        http://forum.pfsense.org/index.php/topic,47210.msg274214.html#msg274214

        @marcelloc
        is it normal that the /usr/local/etc/asterisk/asterisk.conf files comes with "directories" at the beginning ?
        Generaly the (!) is used for template purpose in sip.conf but it seems to be problematic when used in asterisk.conf…

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

          @tempest69:

          @m4f1050
          I have also some messages about ldap and other .conf files missing, i think it's due to a lot of modules being loaded (autoload module as default?)… It can be solved by not loading the modules that we don't use in our configuration (not a bug, it's normal that the standard installation use autoload of modules)
          I'm not in production with asterisk but i will in a short time and i'm going to tweak my installation and the .conf files to not load the modules that i do not use.
          if you have this message just after a call :
          Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directory
          go to see :
          http://forum.pfsense.org/index.php/topic,47210.msg274214.html#msg274214

          Yeah, I noticed it kept showing the errors.  Please let me know when you configure your asterisk, I would love to see the config files (removing any personal information of course.)

          @tempest69:

          @marcelloc
          is it normal that the /usr/local/etc/asterisk/asterisk.conf files comes with "directories" at the beginning ?
          Generaly the (!) is used for template purpose in sip.conf but it seems to be problematic when used in asterisk.conf…

          Wonder if we can run a script that replaces values (and stores a temp config file on i.e. /tmp) then have asterisk read from this /tmp/.conf file?  We can then use other symbols, i.e. replace the (!) with [!] and have the script translate it to (!) or compile asterisk to look for something else?  (Is it asterisk the one doing the conf file reading?)

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

            Hello,

            Just installed Asterisk packages on pfSense 2.0.1. I can't find the GUI for it. Is there a GUI for it? It would be great if the description for each package tells you which menu the newly installed package goes under. If there is no GUI, the community available tool is the status_asterisk.php file?

            Thanks,

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

              It's on status menu.

              If you can't see it, maybe you need to reinstall the package.

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

              Help a community developer! ;D

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

                I see it upon re-install.

                Thanks

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

                  @tempest69:

                  It would also be nice to have the "module show" command or even better the possibility to type commands (like with the  fivn asterisk management  "command" menu)

                  Replying to my self.
                  To execute all sort of asterisk CLI command, we just have to type it in the browser as a link :
                  https://MyPfsense_Url/asterisk_cmd.php ==> will execute the default command "core show sttings"
                  and
                  https://MyPfsense_Url/asterisk_cmd.php?cmd=module+show ==> Will execute "module show"
                  and
                  https://MyPfsense_Url/asterisk_cmd.php?cmd=core+show+help ==> Will execute "core show help" giving the list off available CLI commands…
                  (not all commands cause it seems to display a limited numbers of characters...)

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

                    infinitely, How to Fix?

                    http://forum.lissyara.su/viewtopic.php?f=3&t=29728&p=333556#p333556

                    1.jpg_thumb
                    1.jpg

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

                      I hope this is the right place to ask this question because I just found this thread.  I am setting up an Asterisk box with a Digium TDM400P with two FXOs and two FXSs so I can tie in POTS and house phones with VOIP.  My original aim was to have a separate pfSense gateway to control access.  Now, having seen this thread, I'm wondering if I wouldn't have the same functionality with only one host.  I would need to move the TDM400P to the pfSense box (and install DAHDI drivers) and I would probably use a browser for Asterisk configuration anyway.  Is all of this currently feasible?  Thanks!

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

                        I have some packages compiled on my personal repo but take a look on all this thread to get additional info.

                        I don't think pfsense is the right place for a voip boad. The idea of this package was to be usefull as a sip gateway/firewall.

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

                        Help a community developer! ;D

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

                          Anyone has a port of zaptel driver for FreeBSD-8.1? I'd like to use a X100P FXO PCI card on my pfSense box, but it's not even listed in dmesg…

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

                            @marcelloc:

                            I don't think pfsense is the right place for a voip boad. The idea of this package was to be usefull as a sip gateway/firewall.

                            I fully agree, but I'm not sure that Asterisk is the right software to use on a SIP gateway/proxy.

                            Have a look at:
                            http://www.opentelecoms.org/use-a-sip-proxy-instead-of-asterisk

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

                              @dhatz:

                              I fully agree, but I'm not sure that Asterisk is the right software to use on a SIP gateway/proxy.

                              Works nice  :)

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

                              Help a community developer! ;D

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

                                @dhatz:

                                @marcelloc:

                                I don't think pfsense is the right place for a voip boad. The idea of this package was to be usefull as a sip gateway/firewall.

                                I fully agree, but I'm not sure that Asterisk is the right software to use on a SIP gateway/proxy.

                                That depends on the requirements. In many cases a SIP proxy is just not enough, for example when you need to select between multiple providers based on callee destinations (to select cheapest of them). Or when you need Music on Hold while transferring a call from one handset to another.

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

                                  I was mostly referring to pfsense being a security device (rather than a full blown VoIP pbx, Squid proxy server, NFS/SMB server etc), and so some sort of session-border-controller software (i.e. SIP L7 inspection/filtering) would be the most appropriate to use on pfsense itself …

                                  Otherwise, I'm sure Asterisk or FreeSWITCH can probably both work fine on it.

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

                                    Since i moved asterisk on my pf-sense box, i have better quality with my calls, i don't know if it's due to move from asterisk 1.6 to 1.8 or move to my pf-sense box. Maybe the few milliseconds gain are sufficient to have better quality? or less nat traffic (udp 5060 no more redirected to another server)?
                                    So i'm very pleased with this solution!
                                    i still have work on the subject : save my logs from time to time because i'm on embedded pf-sense. (Yesterday i was with a uptime of +5 weeks, and a short of electric power make me loose all my calls history…)

                                    And now i have gone to read the opentelecoms site : i want to test sip proxy!

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

                                      @robi:

                                      Anyone has a port of zaptel driver for FreeBSD-8.1? I'd like to use a X100P FXO PCI card on my pfSense box, but it's not even listed in dmesg…

                                      Nobody?

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Appears to be here:
                                        http://svn.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/

                                        Unfortunately the project to port DAHDI to FreeBSD was completed in Oct 2010, after the 8.1 release so it is not in the 8.1 ports tree. You could try the version from 8-stable but it's a complex package so the chances of it working seem quite small. Backup everything first because you'll probably cause all sort of problems! ;)

                                        
                                        pkg_add -r ftp://ftp-archive.freebsd.org/mirror/FreeBSD/ports/i386/packages-8-stable/Latest/dahdi.tbz
                                        

                                        When you say 'not even listed in dmesg' are you saying it doesn't even appear as a 'none' device? (one that has no driver attached)

                                        Steve

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

                                          hi everybody i'm miguelshady new pfsense user's
                                          I have a real problem with  asterisk services
                                          I use pfsense 2.0.1 and I installed the asterisk package, statut state asterisk stpopped and I can't start services or  find files configuration where located in usr / local / etc, as described in the topic, I also install siproxy and FreeSwitch, I would like to allow a user  to call through asterisk server  with their sofphones after a captive portal authentication
                                          thank you for helping  and sorry for the quality of my english

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

                                            Configure on service at once. siproxy, freeswitch and asterisk will try to bind on the same port.

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

                                            Help a community developer! ;D

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