Asterisk icon

Asterisk

Interact with Asterisk PBX via ARI (Asterisk REST Interface)

Asterisk → Set Variable

AI-generated

Overview

This node interacts with the Asterisk PBX system via the Asterisk REST Interface (ARI). Specifically, the 'Set Variable' operation under the 'Asterisk' resource allows users to set a global variable within the Asterisk system. This is useful for managing and controlling call flows or system behavior dynamically by updating global variables during runtime.

Use Case Examples

  1. Setting a global variable to track call status or user preferences.
  2. Updating system-wide flags or counters used in call routing logic.

Properties

Name Meaning
Variable Name The name of the global variable to set in the Asterisk system.
Variable Value The value to assign to the specified global variable.

Output

JSON

  • variable - The name of the global variable that was set.
  • value - The value assigned to the global variable.

Dependencies

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

Troubleshooting

  • Ensure the API credentials are correctly configured and have sufficient permissions to set global variables in Asterisk.
  • Verify that the variable name is valid and does not conflict with existing system variables.
  • Check network connectivity to the Asterisk ARI endpoint specified in the credentials.
  • Common error messages may include authentication failures, permission denied, or invalid variable names. Resolving these typically involves verifying credentials, permissions, and input values.

Links

Discussion