TECH7Fox / asterisk-hass-integration

Asterisk integration for Home Assistant
57 stars 13 forks source link

send_action: originate cancels right away #84

Closed andyboeh closed 1 year ago

andyboeh commented 1 year ago

After porting my automations to the new send_action command, I can no longer originate calls. The device rings briefly and the call is immediately terminated. The SIP log shows that Asterisk sends "CANCEL" right away. However, originating from the Asterisk CLI works fine.

What could be the cause?

TECH7Fox commented 1 year ago

I also noticed that, and it's because the timeout is in milliseconds, not seconds. Try changing the 60 to 60000.

Before I simply converted it to seconds in the service itself, but not anymore since you now have direct access to the AMI action.

I Will update the docs.

TECH7Fox commented 1 year ago

@andyboeh please reopen if your still getting this issue.