Details

    Description

      I've created a new patch and some code rewritten of the old Asterisk post: http://jira.observium.org/browse/OBSERVIUM-234?jql=text%20~%20%22asterisk%22

      Please add this Application to Observium

      Attachments

        1. asterisk.patch
          9 kB
        2. asterisk.png
          asterisk.png
          0.6 kB
        3. channels.jpg
          channels.jpg
          128 kB

        Activity

          [OBS-655] Asterisk Application
          paketecuento paco added a comment -

          yes, it also works...

          paketecuento paco added a comment - yes, it also works...
          tromp Tromp Wezelman added a comment - - edited

          Our Asterisk version = Asterisk 1.8.9.2

          Can you test it with the following commands?

          asterisk -rx 'core show channels' | tail -3 | grep channels | cut -d' ' -f1
          asterisk -rx 'core show channels' | tail -3 | grep 'active calls' | cut -d' ' -f1

          I will upload a new patch if that works.

          tromp Tromp Wezelman added a comment - - edited Our Asterisk version = Asterisk 1.8.9.2 Can you test it with the following commands? asterisk -rx 'core show channels' | tail -3 | grep channels | cut -d' ' -f1 asterisk -rx 'core show channels' | tail -3 | grep 'active calls' | cut -d' ' -f1 I will upload a new patch if that works.
          paketecuento paco added a comment -

          for 1.6 the following commands will success:

          channels:

           asterisk -rx "core show channels" | sed -n 2p | awk '{print $1}' 

          calls:

           asterisk -rx "core show channels" | sed -n 3p | awk '{print $1}' 

          paketecuento paco added a comment - for 1.6 the following commands will success: channels: asterisk -rx "core show channels" | sed -n 2p | awk '{print $1}' calls: asterisk -rx "core show channels" | sed -n 3p | awk '{print $1}'

          What do you get when you run the following command at the command line:

          asterisk -rx "core show channels"

          See also http://www.voip-info.org/wiki/view/Asterisk+CLI+1.6

          tromp Tromp Wezelman added a comment - What do you get when you run the following command at the command line: asterisk -rx "core show channels" See also http://www.voip-info.org/wiki/view/Asterisk+CLI+1.6
          paketecuento paco added a comment -

          already tested... 1.6 will fail

          paketecuento paco added a comment - already tested... 1.6 will fail

          I will look into it. I do not know our asterisk version. I will let you know. Maybe you can test the commands with you asterisk version.

          tromp Tromp Wezelman added a comment - I will look into it. I do not know our asterisk version. I will let you know. Maybe you can test the commands with you asterisk version.
          paketecuento paco added a comment - - edited

          be carefull... not working with asterisk 1.6 branch

          asterisk -rx "core show channels" | tail -2 | grep channels | cut -d' ' -f1 
          

          not valid in 1.6

          paketecuento paco added a comment - - edited be carefull... not working with asterisk 1.6 branch asterisk -rx "core show channels" | tail -2 | grep channels | cut -d' ' -f1 not valid in 1.6

          People

            adama Adam Armstrong
            tromp Tromp Wezelman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: