Yes, that’s available if you trigger an automation with a webhook, but I would like to directly call a script in an action from an incoming call and give the caller number as a variable.
The dirty workaround would be to use a webhook in an automation and call the script from there, but I was hoping to call the script directly from my sip-1-inciming.yaml
I’m afraid it’s not possible to do that in the incoming-yaml file, as this is not parsed by home-assistant. If you don’t want to mix up incoming.yaml and webhooks you can do it like described in Generating dynamic Menus and messages on HA Entity State · Issue #86 · arnonym/ha-plugins · GitHub. That way you also don’t need to access the config directory to change your sip actions, but can do it directly from the home-assistant UI. Personally I don’t feel dirty doing it that way.
And you can even have different menus per caller, as you can use conditions to accept certain calls only.
The menu from the file and menu from stdin are handled exactly the same. At the beginning of every call ha-sip logs the parsed menu. Can you check if the choice is correctly parsed in the logs?
You asked for a stand-alone docker version. Fyi - with todays release it is possible.
You will need an Mqtt Broker like Mosquitto for the communcation. If that is set up - all you need to do is to create your own .env file with your connection details. Then you can do a docker compose up and post your commands as json to hasip/execute! Enjoy!
Thank you very much, it’s great to see your reply to create a version for using docker. I will use it for whatever purpose I will inform you. have a nice day
@arnonym I know I am a little bit late to the party, but I just wanted to say that this add-on is probably the absolute best thing I have ever added to my HA! I have a grandstream UCM IP PBX at home and this really ties everything together really splendidly. I’ve (so far) used the “Announcement Center” in the PBX to upload about 8 .wav files for things like doors being opened, motion detection, etc - and can now trigger them through automations using this add-on. The announcements play in perfect unison across all the IP phones. I’ve only just scratched the surface with what’s possible with this add-on but still wanted to say thanks!
Hi @arnonym , sorry to bother you with this. I’ve finally stumbled across your incredible work and I am a little stuck with a call menu. I’m trying to call into my Home Assistant, but the DTMF tones aren’t working. I have an option to hang-up if no menu option selected, so I know the menu is working. I’m unable to hear the tones when I call the system. I saw a previous post with a similar issue and changing the ‘method’, however this looked like it was for an outbound call. I’m using the HA-SIP service as an operator, that I can call inbound. Hope this makes sense. Thanks again for your amazing work on this.
I got HA-SIP connected to my 3CX portal. Incoming calls trigger the webhook but I would love to see the number on screen. It seems so simple no one mentioned it in the docs
Even better if I can select the caller ID for two different screens (doorphone and landline)
Any example code available and where to place it?
I left the webhook option in the add-on standard and just trigger on the webhook now.
Can I somehow initiate a call to 2 phones (one internal, and one external) from HA? So make both phones ring, and after they both pick up, they can speak to each other?