Skip to content

Unable to see paStash messages (AudioCodes plugin) in Homer 10 #240

Open
@myrcinos

Description

@myrcinos

Hi,

This is my second try with the following setup AudioCodes via Syslog to paStash -> Homer 10 (last time I tried with Homer 7). I installed a fresh Debian 12 VM with Docker and Homer 10 inside a container. I used docker compose as recommended. Homer and Grafana work fine, I can see test HEP messages from hepgen in Homer. Then I installed the AudioCodes filter plugin. It was installed in the global folder location:

myrcin@Homer:~$ npm list -g --depth 0
/usr/local/lib
├── @pastash/[email protected]
├── @pastash/[email protected]
└── [email protected]

I use basic config file copied from Github:

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

filter {
  app_audiocodes{}
}

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

When I start paStash it seems to be fine. If I turn on Debug log level it complains about the missing plugin but it was already discussed in another issue and can be safely ignored.

myrcin@Homer:~$ sudo pastash --config_file=/home/myrcin/audiocodes.conf
[Wed, 11 Dec 2024 14:37:03 GMT] NOTICE Starting pastash 1.0.82
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Max http socket 100
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Loading config file : /home/myrcin/audiocodes.conf
[Wed, 11 Dec 2024 14:37:03 GMT] INFO File loaded, 3 urls found
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Loading config : 6 urls
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing output HEP/EEP Server
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Start output to HEP udp to 127.0.0.1:9060
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing filter AddHost
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing filter AddTimestamp
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing filter AddVersion
Loading npm module... @pastash/filter_app_audiocodes
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing filter AppAudiocodes
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initialized App Audiocodes SysLog to SIP/HEP parser
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Initializing input Udp
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Start listening on udp 0.0.0.0:514
[Wed, 11 Dec 2024 14:37:03 GMT] INFO Config loaded.

When I make a test call, I get the following output in the console:

[Wed, 11 Dec 2024 14:38:34 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5204) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:34 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5205) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:34 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5207) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:34 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5208) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:34 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5209) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:35 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5210) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:35 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5211) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:35 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5213) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:35 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5214) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:35 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5215) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:36 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5216) ---- Incoming SIP Message from 192.168.3.115:47097 to SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----
[Wed, 11 Dec 2024 14:38:36 GMT] INFO Incomplete SIP Message no more to add at this time, will cache (N     5217) ---- Outgoing SIP Message to 192.168.3.115:47097 from SIPInterface #0 (SIPInterface_0) UDP TO(#0) ----

tcpdump shows that SYSLOG messages are being received on port UDP 514 from AudioCodes. However, if I run tcpdump withing the heplify-server container there is nothing on the destination port 9060:

~ # tcpdump -nn dst port 9060
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes

The AudioCodes firmware version is:

7.40A.500.781

What am I doing wrong? Could you please help me troubleshoot this issue? I am happy to provide more details. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions