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

    Asterisk status on pfSense2.0.1 webGUI

    Scheduled Pinned Locked Moved webGUI
    18 Posts 5 Posters 19.5k 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.
    • S
      Supermule Banned
      last edited by

      Yes :)

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

        Also in status_services.php if you add this at lines 271 (below the similar ntpd entry), you'll get service status info, and start/stop commands will also work correctly.

        $pconfig = array();
        $pconfig['name'] = "asterisk";
        $pconfig['description'] = gettext("Asterisk VoIP telephony");
        $services[] = $pconfig;
        

        For the dashboard, in widgets/widgets/services_status.widget.php add this at line 76 (similarly below the similar ntpd entry):

        $svcconfig = array();
        $svcconfig['name'] = "asterisk";
        $svcconfig['description'] = gettext("Asterisk VoIP telephony");
        $services[] = $svcconfig;
        
        

        pfsene_asterisk_services_dash.png
        pfsene_asterisk_services_dash.png_thumb
        pfsene_asterisk_services.png
        pfsene_asterisk_services.png_thumb

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

          @marcelloc:

          Maybe it will be the first alpha release of asterisk package to pfsense.  :)

          If freepbx runs on pfsense without issues, it will be a nice package option fro sip server/gatway/proxy.

          Got no clue how to make a pfSense-compatible full-blown package. Configuring Asterisk is no easy task at all, so beside status info, manual editing of config files remains for now.

          Fivn's Asterisk Managemnet GUI brings much more than these, all we need to do is make it run on the box, it's just a single script.

          1 Reply Last reply Reply Quote 0
          • S
            Supermule Banned
            last edited by

            Therefore Tommyboy180 or Marcello is the guys to talk to. They can make a pacakage happen and if one could use an alternate free product like Freepbx instead, then it would make a lot of PFSense… :D

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

              I've extended the capability of my Asterisk Status page.

              • look & feel matching pfSense's skin
              • more useful status commands + reload
              • detailed callog, with option to download original CSV file, trim, clear
              • asterisk log, with option to trim, clear the file

              Download the attached status_asterisk.zip.xls file, and rename it to status_asterisk.zip.

              Copy status_asterisk.php, status_asterisk_calls.php, status_asterisk_log.php to /usr/local/www

              Good luck!

              pfsense_Asterisk_Status_OK.png
              pfsense_Asterisk_Status_OK.png_thumb
              status_asterisk.zip.xls

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

                Updates:

                • calls list in reversed order
                • log lines 50 instead of 200

                (rename .xls to .zip after download)

                status_asterisk_v01_pfSense.zip.xls

                1 Reply Last reply Reply Quote 0
                • B
                  blietaer
                  last edited by

                  This rocks !
                  Any way this becomes an insstallable pfSense package ?  ::)

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

                    It will soon.  ;)

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

                    Help a community developer! ;D

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

                      Update:

                      • added a config file editor, based on original edit.php

                      pfsense_Asterisk_Edit_config_files.png
                      pfsense_Asterisk_Edit_config_files.png_thumb
                      status_asterisk_v02.zip.xls

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

                        First package release is out.  :)

                        http://forum.pfsense.org/index.php/topic,47210.msg248054.html#msg248054

                        I did some changes to improve stability and checks for nanobsd or normal install.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • E
                          easyhugo
                          last edited by

                          HI

                          and thats what i am looking for waiting for  only great

                          and now my question
                          is it possible to get info from an external asterisk?
                          i have read that is possible that to make an ssh connect over php
                          over an ssh connection that script would work or?

                          thx max

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

                            You need to enable asterisk managment to get stats but this package has no options for remote connections. Maybe you can edit asterisk.Inc file and point to your remote server

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • E
                              easyhugo
                              last edited by

                              The first part of your answer i understood but the second part i did totaly not.

                              thx max

                              1 Reply Last reply Reply Quote 0
                              • E
                                easyhugo
                                last edited by

                                hi

                                no idea ?

                                max

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

                                  Asterisk.Inc file is the script that creates asterisk config file. You can edit it to include your config to asterisk.

                                  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.