Asterisk icon

Asterisk

Interact with Asterisk PBX via ARI (Asterisk REST Interface)

Asterisk → Get Variable

AI-generated

Overview

This node interacts with the Asterisk PBX system via the Asterisk REST Interface (ARI). Specifically, the 'Get Variable' operation retrieves the value of a global variable from the Asterisk system. This is useful for scenarios where you need to access or monitor system-wide variables within Asterisk, such as configuration flags or status indicators, to integrate or automate telephony workflows.

Use Case Examples

  1. Retrieve the value of a global variable named 'CALLERID' to use in call routing logic.
  2. Check the status of a system-wide feature flag stored as a global variable before executing a specific telephony action.

Properties

Name Meaning
Variable Name The name of the global variable in the Asterisk system whose value you want to retrieve.

Output

JSON

  • variableName - The name of the global variable requested.
  • variableValue - The value of the requested global variable retrieved from Asterisk.

Dependencies

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

Troubleshooting

  • Ensure the provided variable name exists in the Asterisk system; otherwise, the node may return an error or empty result.
  • Verify that the API credentials are correct and have sufficient permissions to access global variables via ARI.
  • Common error messages may include authentication failures or variable not found errors; check the variable name spelling and API access rights.

Links

  • Asterisk ARI Overview - Official documentation for the Asterisk REST Interface, which this node uses to interact with Asterisk.

Discussion