Actions76
- Applications Actions
- Asterisk Actions
- Bridges Actions
- Channels Actions
- Device States Actions
- Endpoints Actions
- Events Actions
- Mailboxes Actions
- Playbacks Actions
- Recordings Actions
- Sounds Actions
Channels → Get Variable
AI-generatedOverview
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
- Retrieve the caller ID or custom variable from an active call channel to make routing decisions.
- 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
- Asterisk ARI Channels Get Variable API - Official documentation for retrieving channel variables via the Asterisk REST Interface.