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

      Note to users upgrading from pfSense v2.0.x:

      Asterisk package was converted to PBI, thus the system file locations for it have been changed. That means that the asterisk.conf file on the 2.0.x and 2.1 will have different [directories] sections. Please revise the directory paths on the fresh install of Asterisk on v2.1, and correct them manually before restoring the configuration from 2.0.x.

      On simpler scenarios, where only SIP protocol is used, the first approach to upgrade Asterisk would be to actually install it fresh on a v2.1 box, and replace sip.conf and extensions.conf files with the previous ones. All the other config files can be left in their default state if you didn't modify them earlier.

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

        @robi:

        Work is in progress just now with modifications to address these issues.

        Actually paths will be corrected on the file system to point to writable locations (as /usr/pbi/…. is not writable on NanoBSD), symlinks will be used and Asterisk configuration files will be updated accordingly on first install.

        Please be patient, soon the update will be available in the packages list.

        Thanks robi for the quick answer :)

        @robi:

        Package update v0.3 should be online soon.

        If you already installed asterisk package on v2.1, I suggest to start from scratch by creating a fresh install of pfSense, or at least uninstall the complete Asterisk package, remove these directories by hand, reboot and reinstall Asterisk package:

        Spool directory:             /var/spool/asterisk
        Log directory:               /var/log/asterisk
        Run/Sockets directory:       /var/run/asterisk
        ASTDB:                       /var/db/asterisk/astdb
        

        i'll have to reinstall my setup from scratch on 2.1 cause my HDD is failing

        if i have little time, i'll post the name of the file and what to temporary modify as a workaround until the package is completely updated.

        you do a great job here folks :)

        thanks

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

          It's already done, devs from pfSense need to pull it in to the servers…

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

            @robi:

            It's already done, devs from pfSense need to pull it in to the servers…

            awsome !!

            i'll wait and test it :)

            thanks

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

              is the last update Asterisk 1.8 pkg v0.3 broken for you ?

              • does'nt want to start via web GUI (via status -> service or via Asterisk command page).
              • asterisk log page is broken (parse error)
              • it start manually but extension won't register (no modification in conf file from 1.8 pkg v0.2)

              EDIT :
              nevermind for extension not registering

              BUT
              still need to start manually via shell ( asterisk -C /usr/pbi/asterisk-amd64/etc/asterisk/asterisk.conf )

              and log page is missing a ")" on line 70

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

                Yes, I've fixed them yesterday evening, pushed them to the server, still waiting to be pulled in.

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

                  Hi roby,

                  I've tested it on 2.1 and code was not working correctly.

                  I did some changes and at least on 2.1 it's working fine now.

                  Check if it's ok on nanobsd too.

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

                  Help a community developer! ;D

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

                    It's broken again, sent you a PM with the reason why.

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

                      @robi:

                      It's broken again, sent you a PM with the reason why.

                      Can you check again with latest changes?

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

                      Help a community developer! ;D

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

                        The Asterisk package works now with pfSense 2.1. both full setup and NanoBSD.

                        It includes a web interface for issuing basic or custom commands to asterisk console, calls log, system log, configuration files editing option, configuration directory backup and restore option.

                        By default when installed on pfSense it's preconfigured for SIP operation, and has got two demo extensions, 301 and 302 which allow testing with real IP phones or softphones through the LAN interface.

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

                          hello
                          tell here how to install chan-dongle? https://code.google.com/p/asterisk-chan-dongle/ ?

                          PF 2.1
                          Asterisk Services 1.8 pkg v0.3.1 Asterisk is an open source framework for building communications applications.
                          Asterisk turns an ordinary computer into a communications server.

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

                            You need to compile it on freebsd 8.3

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

                            Help a community developer! ;D

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

                              How cool… One could use Asterisk to place directly mobile calls through a supported 3G modem.

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

                                @robi:

                                How cool… One could use Asterisk to place directly mobile calls through a supported 3G modem.

                                Yes. I've tested it on linux and it works. The problem I had way with usb power supply for multiple 3g modem and power boot sequence some times.

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zlyzwy
                                  last edited by

                                  Hi Marcelloc,

                                  First, thanks for your great work again…
                                  I was running a FreePBX server behind Pfsense, however it seems there are some NAT problem and I can't find any solution for that.
                                  Then I tried your Asterisk package, it works perfect  :D. The only question is it's difficult for me to edit the configurations... :-[
                                  I read your post and you have installed Asterisk-gui successful before, I am now sure it's still working for latest pfsense 2.1?
                                  Can I ask you to post a guide here?

                                  Thanks

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

                                    I've not tested it on 2.1 yet and freebsd port is still pending.

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

                                    Help a community developer! ;D

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

                                      @zlyzwy:

                                      Hi Marcelloc,

                                      First, thanks for your great work again…

                                      It's mainly a robi work. I just did some small modifications  ;)

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

                                      Help a community developer! ;D

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

                                        @zlyzwy:

                                        The only question is it's difficult for me to edit the configurations… :-[
                                        [/quote]

                                        if it is only to modify the config file directly, you can do it this way (if you use windows) :

                                        • enable SSH in "System" -> "Advanced" - > "Admin Access" and check "Enable Secure Shell"
                                        • use WINCSP to access the files in /conf/asterisk/

                                        that's the way i modify my conf files for asterisk.

                                        I hope the GUI will be ported soon. :) Will be good to have a complete GUI to manage configuration.

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

                                          Why don't you use edit configuration tab? ???

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

                                          Help a community developer! ;D

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

                                            I am running the Asterisk 1.8 package on pfsense 2.1 and have the following issues:

                                            Everytime I reboot pfsense the following (demo) configuration text is added to sip.conf

                                            ==>

                                            [301]
                                            ;demo extension for pfSense
                                            type=friend
                                            defaultuser=301
                                            insecure=port,invite
                                            secret=1234
                                            regexten=301
                                            host=dynamic
                                            context=default

                                            [302]
                                            ;demo extension for pfSense
                                            type=friend
                                            defaultuser=302
                                            insecure=port,invite
                                            secret=1234
                                            regexten=302
                                            host=dynamic
                                            context=default

                                            <==

                                            Everytime I reboot pfsense my call history is lost
                                            Everytime I reboot pfsense my Asterisk log file is empty
                                            Everytime I reboot pfsense my personal voicemail message is gone

                                            Are there any sollutions to my above problems

                                            Thanks in advance

                                            Kr,

                                            Matthijs

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