Skip to main content

Send Action Service

The send_action service can be used to send any AMI action.

Settings

warning

Remember that most AMI actions use milliseconds for timing. So if you're Originate call immediately stops, check the timeout.

Originate Example
Service options
service: asterisk.send_action
data:
action: Originate
parameters:
channel: PJSIP/100
context: default
exten: "101"
priority: "1"
callerid: Home Assistant
timeout: 60000
Hangup Example
Service options
service: asterisk.send_action
data:
action: Hangup
parameters:
channel: PJSIP/100

Option: Action

Channel name to call.

Option: Parameters

Used settings for your set action. Look at the Asterisk docs for the settings for the action.