Actions76
- Applications Actions
- Asterisk Actions
- Bridges Actions
- Channels Actions
- Device States Actions
- Endpoints Actions
- Events Actions
- Mailboxes Actions
- Playbacks Actions
- Recordings Actions
- Sounds Actions
Asterisk → Get Variable
AI-generatedOverview
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
- Retrieve the value of a global variable named 'CALLERID' to use in call routing logic.
- 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.