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 248.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.
    • L
      learnin9
      last edited by

      @marcelloc:

      If worked with dahdi-2.4.0rc5_5 ;D

      great!

      make package
      ===>  Installing for dahdi-2.4.0rc5_5
      ===>   dahdi-2.4.0rc5_5 depends on shared library: newt.52 - found
      ===>   Generating temporary packing list
      ===>  Checking if misc/dahdi already installed
      gmake[1]: Entering directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
      gmake[1]: Leaving directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
      install -d /usr/local/sbin
      install  fxotune dahdi_cfg dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint /usr/local/sbin/
      install -d /usr/local/man/man8
      install -m 644 doc/fxotune.8 doc/dahdi_cfg.8 doc/dahdi_monitor.8 doc/dahdi_test.8 doc/dahdi_scan.8 doc/dahdi_tool.8 /usr/local/man/man8/
      /usr/bin/install -c -o root -g wheel -d -m 755 /usr/local/etc/dahdi
      /usr/bin/install -c -o root -g wheel -m 644 system.conf.sample /usr/local/etc/dahdi/system.conf.sample
      /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/lib
      /usr/bin/install -c -o root -g wheel -m 755 libtonezone.a /usr/local/lib/
      /usr/bin/install -c -o root -g wheel -m 755 libtonezone.so /usr/local/lib/libtonezone.so.2.0
      if [ `id -u` = 0 ]; then \
              /sbin/ldconfig || : ;\
      fi
      rm -f /usr/local/lib/libtonezone.so
      /bin/ln -sf libtonezone.so.2.0 \
              /usr/local/lib/libtonezone.so.2
      /bin/ln -sf libtonezone.so.2.0 \
              /usr/local/lib/libtonezone.so
      # Overwrite the 1.0 links out there.  dahdi-tools 2.0.0 installed
      # 1.0 links but dahdi-tools changed them to 2.0 in order to explicitly
      # break applications linked with zaptel.  But, this also meant that
      # applications linked with libtonezone.so.1.0 broke when dahdi-tools
      # 2.1.0 was installed.
      /bin/ln -sf libtonezone.so.2.0 \
              /usr/local/lib/libtonezone.so.1.0
      /bin/ln -sf libtonezone.so.2.0 \
              /usr/local/lib/libtonezone.so.1
      /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/include/dahdi
      /usr/bin/install -c -o root -g wheel -m 644 tonezone.h /usr/local/include/dahdi/
      ###################################################
      ###
      ### DAHDI tools installed successfully.
      ### If you have not done so before, install init scripts with:
      ###
      ###   make config
      ###
      ###################################################
      ===>   Compressing manual pages for dahdi-2.4.0rc5_5
      ===>   Running ldconfig
      /sbin/ldconfig -m /usr/local/lib
      ===>   Registering installation for dahdi-2.4.0rc5_5
      ===>  Building package for dahdi-2.4.0rc5_5
      
      

      I'll include it on my repo and test when time permits

      You only compiled the dahdi tools, the driver src files you should compile.
      localhost# pwd
      /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd

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

        this should complete the install?

        tar -cvzf dahdi_drivers.tar.gz /usr/local/lib/dahdi /usr/local/include/dahdi/compat
        tar: Removing leading '/' from member names
        a usr/local/lib/dahdi
        a usr/local/lib/dahdi/dahdi.ko
        a usr/local/lib/dahdi/linker.hints
        a usr/local/lib/dahdi/dahdi_dynamic.ko
        a usr/local/lib/dahdi/dahdi_transcode.ko
        a usr/local/lib/dahdi/dahdi_voicebus.ko
        a usr/local/lib/dahdi/dahdi_dynamic_loc.ko
        a usr/local/lib/dahdi/dahdi_dynamic_eth.ko
        a usr/local/lib/dahdi/dahdi_dynamic_ethmf.ko
        a usr/local/lib/dahdi/ng_dahdi_netdev.ko
        a usr/local/lib/dahdi/dahdi_echocan_jpah.ko
        a usr/local/lib/dahdi/dahdi_echocan_kb1.ko
        a usr/local/lib/dahdi/dahdi_echocan_mg2.ko
        a usr/local/lib/dahdi/dahdi_echocan_sec.ko
        a usr/local/lib/dahdi/dahdi_echocan_sec2.ko
        a usr/local/lib/dahdi/wcfxo.ko
        a usr/local/lib/dahdi/wctdm.ko
        a usr/local/lib/dahdi/wctdm24xxp.ko
        a usr/local/lib/dahdi/dahdi-fw-hx8.bin.ko
        a usr/local/lib/dahdi/dahdi_vpmadt032_loader.ko
        a usr/local/lib/dahdi/wct4xxp.ko
        a usr/local/lib/dahdi/wcte11xp.ko
        a usr/local/lib/dahdi/wcte12xp.ko
        a usr/local/lib/dahdi/dahdi-fw-oct6114-064.bin.ko
        a usr/local/lib/dahdi/dahdi-fw-oct6114-128.bin.ko
        a usr/local/lib/dahdi/wcb4xxp.ko
        a usr/local/lib/dahdi/wctc4xxp.ko
        a usr/local/lib/dahdi/dahdi-fw-tc400m.bin.ko
        a usr/local/include/dahdi/compat
        a usr/local/include/dahdi/compat/types.h
        
        

        amd64
        http://e-sac.siteseguro.ws/packages/amd64/8/All/asterisk18-1.8.12.0.tbz
        http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi-2.4.0rc5_5.tbz
        http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi_drivers.tar.gz

        i386
        http://e-sac.siteseguro.ws/packages/8/All/asterisk18-1.8.12.0.tbz
        http://e-sac.siteseguro.ws/packages/8/All/dahdi-2.4.0rc5_5.tbz
        http://e-sac.siteseguro.ws/packages/8/All/dahdi_drivers.tar.gz

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • L
          learnin9
          last edited by

          Yes!thanks for your great job!
          Maybe needs the startup scripts to kldload the drivers when pfsense starts up.
          ;D ;D

          1 Reply Last reply Reply Quote 0
          • X
            xbaha
            last edited by

            @marcelloc:

            this should complete the install?

            tar -cvzf dahdi_drivers.tar.gz /usr/local/lib/dahdi /usr/local/include/dahdi/compat
            tar: Removing leading '/' from member names
            a usr/local/lib/dahdi
            a usr/local/lib/dahdi/dahdi.ko
            a usr/local/lib/dahdi/linker.hints
            a usr/local/lib/dahdi/dahdi_dynamic.ko
            a usr/local/lib/dahdi/dahdi_transcode.ko
            a usr/local/lib/dahdi/dahdi_voicebus.ko
            a usr/local/lib/dahdi/dahdi_dynamic_loc.ko
            a usr/local/lib/dahdi/dahdi_dynamic_eth.ko
            a usr/local/lib/dahdi/dahdi_dynamic_ethmf.ko
            a usr/local/lib/dahdi/ng_dahdi_netdev.ko
            a usr/local/lib/dahdi/dahdi_echocan_jpah.ko
            a usr/local/lib/dahdi/dahdi_echocan_kb1.ko
            a usr/local/lib/dahdi/dahdi_echocan_mg2.ko
            a usr/local/lib/dahdi/dahdi_echocan_sec.ko
            a usr/local/lib/dahdi/dahdi_echocan_sec2.ko
            a usr/local/lib/dahdi/wcfxo.ko
            a usr/local/lib/dahdi/wctdm.ko
            a usr/local/lib/dahdi/wctdm24xxp.ko
            a usr/local/lib/dahdi/dahdi-fw-hx8.bin.ko
            a usr/local/lib/dahdi/dahdi_vpmadt032_loader.ko
            a usr/local/lib/dahdi/wct4xxp.ko
            a usr/local/lib/dahdi/wcte11xp.ko
            a usr/local/lib/dahdi/wcte12xp.ko
            a usr/local/lib/dahdi/dahdi-fw-oct6114-064.bin.ko
            a usr/local/lib/dahdi/dahdi-fw-oct6114-128.bin.ko
            a usr/local/lib/dahdi/wcb4xxp.ko
            a usr/local/lib/dahdi/wctc4xxp.ko
            a usr/local/lib/dahdi/dahdi-fw-tc400m.bin.ko
            a usr/local/include/dahdi/compat
            a usr/local/include/dahdi/compat/types.h
            
            

            amd64
            http://e-sac.siteseguro.ws/packages/amd64/8/All/asterisk18-1.8.12.0.tbz
            http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi-2.4.0rc5_5.tbz
            http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi_drivers.tar.gz

            i386
            http://e-sac.siteseguro.ws/packages/8/All/asterisk18-1.8.12.0.tbz
            http://e-sac.siteseguro.ws/packages/8/All/dahdi-2.4.0rc5_5.tbz
            http://e-sac.siteseguro.ws/packages/8/All/dahdi_drivers.tar.gz

            hi
            can you update these files in pfsense packages (web-gui packages)

            i have digium card, i'll test it.

            thanks..

            1 Reply Last reply Reply Quote 0
            • X
              xbaha
              last edited by

              @mdima:

              @marcelloc:

              That's a good point.
              In an outbound scenario it may work with carp as clients will reauth with asterisk.
              For inbound calls, you can test configuring asterisk to listening on carp ips and see if backup asterisk will not crash.

              well, I am also worry about Asterisk try to register to the VOIP provider, then the VOIP provider will try to contact both boxes for an incoming call… I don't know if I can test that in the real environment, I will coordinate with my colleague that follows the telephony services in my company and try to imagine how we can manage a try. Now we use Freeswitch on a server in our DMZ network...

              Voip Provider will contact the box @ port 5060, which is used by asterisk service, then the communication will be on RTP, i think it should work…
              what things might go wrong you think?

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

                @xbaha:

                can you update these files in pfsense packages (web-gui packages)

                Try that using pkg_add on console fist. I 'll try to publish new version including asterisk-gui too.

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • X
                  xbaha
                  last edited by

                  @marcelloc:

                  @xbaha:

                  can you update these files in pfsense packages (web-gui packages)

                  Try that using pkg_add on console fist. I 'll try to publish new version including asterisk-gui too.

                  sorry, pkg_add gave lots of errors, i dlded all dependencies packages, is there an argument i should add with pkg_add ?

                  pkg_add.jpg
                  pkg_add.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • L
                    learnin9
                    last edited by

                    hi,marcelloc:
                    Maybye you missed the libpri-1.4.12.tbz and unixODBC-2.3.1.tbz file
                    see the following:

                    [2.0.1-RELEASE][root@pfSense.localdomain]/root(81): pkg_add asterisk18-1.8.12.0.tbz 
                    pkg_add: could not find package libpri-1.4.12 !
                    [2.0.1-RELEASE][root@pfSense.localdomain]/root(85): pkg_add -f asterisk18-1.8.12.0.tbz  
                    pkg_add: could not find package libpri-1.4.12  (proceeding anyway)
                    ===> Creating users and/or groups.
                    Creating group 'asterisk' with gid '931'.
                    Creating group 'dahdi' with gid '843'.
                    Creating user 'asterisk' with uid '931'.
                    Adding user 'asterisk' to group 'dahdi'.
                    pkg_add: can't open dependency file '/var/db/pkg/libpri-1.4.12/+REQUIRED_BY'!
                    dependency registration is incomplete
                    pkg_add: warning: package 'asterisk18-1.8.12.0' requires 'unixODBC-2.3.1', but 'unixODBC-2.3.0_1' is installed
                    
                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      learnin9,

                      I've pushed the missing libpri to my repo, try to reinstall.

                      this message:
                      pkg_add: warning: package 'asterisk18-1.8.12.0' requires 'unixODBC-2.3.1', but 'unixODBC-2.3.0_1' is installed
                      says that you have unixODBC-2.3.0_1 version installed, you need to uninstall this versioin to use unixODBC-2.3.1.

                      att,
                      Marcello Coutinho

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

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • L
                        learnin9
                        last edited by

                        marcelloc:
                          I did not find the unixODBC-2.3.1.tbz file,so i have to install the unixODBC-2.3.0_1.tbz file
                          Lots for thanks for your hard work.I will reinstall the asterisk packages.

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

                          libpri might be the last thing needed on an embedded system. The feature will probably be rarely used if at all.

                          1 Reply Last reply Reply Quote 0
                          • S
                            sdudley
                            last edited by

                            Marcelloc, Thanks for the hard work at creating the Asterisk package for us. Having a go at adding the Asterisk package via the 'Package' option through the GUI on a fresh x86 PF2.01 install. It seemed to install fine with no errors but under 'services' it shows Asterisk to be stopped and despite many attempts it won't start via the PF Web interface. Hardware and software SIP clients unable to connnect seem to support the fact it's not running. Is this symptom common? Is there a way to try starting Asterisk from a shell connection or a process to reveal a bit more detail on why it's not starting? I haven't rebooted the box since installing the Asterisk…do I need to or should I restart the web configurator? This is my first foray into Asterisk since my failed attempt at trying to rig up Freeswitch/FusionPBX with PF2.01 and the service won't start symptom may just be my own ignorance on how Asterisk operates.
                            Thanks

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

                              try to start asterisk on console, maybe you need to unselect some modules.

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • S
                                sdudley
                                last edited by

                                What would be the command to start the Asterisk daemon from a shell…wasn't quite certain and "/etc/init.d/asterisk start" returned a command not found.

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

                                  /usr/local/etc/rc.d/asterisk

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

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    sdudley
                                    last edited by

                                    Commenting out some of the modules did it, the daemon started and looks like it's running via the GUI now. Wonder if it was because the default extensions.conf and sip.conf contained references to demo interfaces that I didn't have? There's no telephony cards on the board…yet. SIP phones still aren't showing up but I can have a go at those now that I know the daemon is running. Thanks again Marcelloc.

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

                                      I downgraded to 2.0.1 just to install this!  :)

                                      Is there any tutorial on how to initially set it up?  (I am coming from Windows and Axon PBX)

                                      ..or asterisk-gui?  Trying that out first.

                                      EDIT:

                                      I fetched http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/All/asterisk-gui-2.0.4_4.tbz

                                      Tried to add it but I get:

                                      pkg_add: could not find package openldap-client-2.4.23 !
                                      pkg_add: could not find package perl-5.10.1_1 !
                                      pkg_add: could not find package libltdl-2.2.6b !
                                      pkg_add: could not find package wget-1.12_1 !
                                      pkg_add: could not find package libgcrypt-1.4.5_1 !
                                      pkg_add: could not find package postgresql-client-8.2.17_1 !

                                      EDIT 2:

                                      fetched the missing packages then pkg_add asterisk-gui-2.0.4_4.tbz it said it installed in /usr/local and gave me a url to go to but not working.

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

                                        Asterisk gui need some file changes to work and I did not had time to finish it.

                                        This current version can be configured only on console/files.

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

                                        Help a community developer! ;D

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

                                          I changed manager.conf and http.conf:

                                          manager.conf:

                                          enabled=yes
                                          webenabled=yes
                                          [admin]
                                          secret = password
                                          read = all
                                          write = all

                                          http.conf:

                                          enabled=yes
                                          enablestatic=yes

                                          And got it to load and login, but I get an alert:

                                          The GUI does not have necessary privileges.
                                          Please check the manager permissions for the user !

                                          Thanks for your time!!!

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

                                            these are few steps I did to get asterisk-gui working.
                                            I'm not sure if it is all remain steps.

                                            mkdir /var/lib
                                            mkdir /etc/dahdi/
                                            
                                            ln -s /usr/local/etc/asterisk /etc/asterisk
                                            ln -s /usr/local/share/asterisk /var/lib/asterisk
                                            
                                            /var/lib/asterisk/gui_backups
                                            /var/lib/asterisk/sounds/imageupdate
                                            
                                            chown -R asterisk /var/lib/asterisk
                                            chown -R asterisk /usr/local/etc/asterisk
                                            chown -R asterisk /etc/dahdi
                                            
                                            /var/lib/asterisk/static_html/config
                                            /var/lib/asterisk/scripts
                                            
                                            /usr/local/etc/rc.d/asterisk/restart
                                             asterisk -rx "core set debug 10"
                                            asterisk -rx "core set verbose 10"
                                            

                                            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.