Asterisk icon

Asterisk

Interact with Asterisk PBX via ARI (Asterisk REST Interface)

Channels → Get Variable

AI-generated

Overview

This node interacts with the Asterisk PBX system via the Asterisk REST Interface (ARI) to manage telephony channels. Specifically, the 'Get Variable' operation retrieves the value of a specified variable from a given channel. This is useful in scenarios where you need to access dynamic channel-specific data during a call, such as retrieving call metadata or custom variables set during the call flow.

Use Case Examples

  1. Retrieve the caller ID or custom variable from an active call channel to make routing decisions.
  2. Access channel variables to log call details or trigger specific actions based on variable values.

Properties

Name Meaning
Channel ID The unique identifier of the channel from which to retrieve the variable.
Variable Name The name of the channel variable to retrieve.

Output

JSON

  • variableValue - The value of the requested channel variable.

Dependencies

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

Troubleshooting

  • Ensure the Channel ID provided is valid and corresponds to an active channel; otherwise, the variable retrieval will fail.
  • Verify that the variable name exists on the channel; requesting a non-existent variable may result in an error or empty response.
  • Check network connectivity and correct base URL configuration for the ARI endpoint to avoid connection errors.

Links

Discussion