Hangup Channel
AI-generatedSummary
Sends an Asterisk AMI Hangup action for the specified channel, asking Asterisk to end that channel. Connects using the configured AMI credentials and returns the AMI response for each input item.
Inputs
- Channel (required) — AMI channel identifier to hang up, such as PJSIP/4000 or PJSIP/trunk/0033… (default: PJSIP/4000).
Output shape
A list of items, one per input item, each containing a JSON object with the operation and AMI response fields.
Each result includes operation set to hangup and the AMI action result, including actionId, response, message, raw packet, events, and headers when provided by the server. Connection or action errors are raised as node errors.