TECH7Fox / asterisk-hass-addons

Asterisk add-on for Home Assistant
https://tech7fox.github.io/sip-hass-docs/
MIT License
63 stars 23 forks source link

Generate a call from HA ? #329

Open vincegre opened 6 days ago

vincegre commented 6 days ago

Hi

I'm trying to generate a call programmatically from HA but it works half way ! I can generate the call but it's always displayed as coming from Anonymous and not the extension I have setup in the service call as below. Both extensions 100 and 100 are well registered in system. Any ideas what's wrong there ? or is it a limitation of the addon ?

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

Thanks

Vincèn

felipecrs commented 6 days ago

Maybe @TECH7Fox can help. I just wanted to comment on:

or is it a limitation of the addon ?

It would be a limitation on Asterisk if that was the case.

vincegre commented 6 days ago

@felipecrs thanks for your answer. Just to be sure the field exten: is supposed to be the extension from which the call is done no or looks to be done no ?

TECH7Fox commented 6 days ago

It works in my case. Did you maybe add a name in the card config?

Maybe try with an extension that isn't configured in the card.

vincegre commented 6 days ago

It works in my case. Did you maybe add a name in the card config? Maybe try with an extension that isn't configured in the card.

I don't use it with the card, I call the service from a button to ring a phone (sort of call bell). Screenshot_20240702_190031