npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pastash/filter_app_audiocodes_beta

v1.1.6

Published

Audiocodes Syslog plugin for @pastash/pastash

Downloads

4

Readme

App Audiocodes filter

Status : functional, experimental plugin.

AUDIOCODES Syslog

This example recipe parse, reassemble and convert Audiocodes SBC logs back into IP/SIP/HEP types, received as Syslog UDP/TCP and shipped back to a HEP Capture Server such as HOMER or HEPIC for use cases where encrypted communication is unavailable off-the-wire for monitoring and troubleshooting.

Dependencies

  • Audiocodes Mediant SBC
    • 7.20A.260.012 (or higher)
    • 7.20A.256.511 (or lower)
  • NodeJS 10.x+ and paStash need to be installed before execution

NPM

# sudo npm install --unsafe-perm -g @pastash/pastash @pastash/filter_app_audiocodes

SBC Settings

image

NOTE: Since UDP is the only transport, paStash should be deployed in close network proximity of the SBC!

PaStash Recipe

  • syslog input on port 514
  • audiocodes filter to parse syslog events
  • hep output to port 9060

Save the following recipe to a readable location, ie: /path/to/pastash_audiocodes.conf

input {
  udp {
    host => 0.0.0.0
    port => 514
    type => syslog
  }
}

filter {
  app_audiocodes{
    version => '7.40A.100.114'
    debug => false
    autolocal => true
    ini => '/path/to/copy/of/audiocodes.ini'
  }
}

output {
  if [rcinfo] != 'undefined' {
        hep {
          host => '127.0.0.1'
          port => 9060
          hep_id => 2222
        }
  }
}

Usage

pastash --config_file=/path/to/pastash_audiocodes.conf

To configure as a service, please follow this guide

Options

Parameters for app_audiocodes:

  • ini: Audiocodes INI path. Supports extraction and replacement of Interface aliases to IP:PORT. Default: false
  • iniwatch: Audiocodes INI watched. Reloads changes upon modifications. Default: false
  • autolocal: Enable detection of Local SBC IP from logs. Default : false.
  • localip: Replacement IP for missing SBC Aliases. Default : 127.0.0.1.
  • localport: Replacement port for missing SBC Aliases. Default : 5060.
  • logs: Enable emulation of HEP 100 logs. Default : false.
  • qos: Enable emulation of HEP QoS logs. Default : true.
  • correlation_hdr: SIP Header to use for correlation IDs. Default : false.
  • correlation_contact: Auto-Extract correlation from Contact x-c. Default : false.
  • debug: Enable debug logs. Default : false.
  • version: Syslog parser version. Supports 7.20A.260.012 (or higher). Default: 7.20A.260.012

For full instructions consult the plugin documentation


Limitations / TODO

  • [x] Correlate SID to Call-IDs for SIP, Logs, QoS events
  • [x] Parse SIP messages split across different syslog events
  • [x] Parse Media Reports page 353 to HEP RTP reports
  • [x] Autodetect SBC IP:PORT (experimental)
  • [x] Convert non SIP logs to HEP 100 (correlation?)
  • [x] Parse SBC Interfaces and Aliases from Audiocodes INI config file.
  • [ ] Use Timestamp from event tail (is time UTC?)