Asterisk icon

Asterisk

Interact with Asterisk PBX via ARI (Asterisk REST Interface)

Applications → Subscribe

AI-generated

Overview

This node interacts with the Asterisk PBX system via the Asterisk REST Interface (ARI). Specifically, for the 'Applications' resource and 'Subscribe' operation, it allows users to subscribe to events from a specified Stasis application and event source URI. This is useful for monitoring and reacting to real-time events in telephony applications, such as channel or bridge state changes, device states, or endpoint activities.

Use Case Examples

  1. Subscribe to events from a specific Stasis application to monitor call channel activities in real-time.
  2. Subscribe to device state changes for a particular device to trigger automated workflows based on device availability.

Properties

Name Meaning
Application Name The name of the Stasis application to subscribe to events from.
Event Source The URI of the event source to subscribe to, such as a channel, bridge, endpoint, or device state.

Output

JSON

  • event - The event data received from the subscribed application and event source.

Dependencies

  • Requires an API key credential for authenticating with the Asterisk REST Interface (ARI).

Troubleshooting

  • Ensure the 'Application Name' matches an existing Stasis application configured in Asterisk.
  • Verify the 'Event Source' URI is correctly formatted and corresponds to a valid event source in Asterisk.
  • Authentication errors may occur if the API key credential is missing or invalid; verify credentials are correctly configured.
  • Network connectivity issues between n8n and the Asterisk server can prevent event subscription; check network settings and firewall rules.

Links

Discussion