sdesalve / hassio-addons

MIT License
87 stars 21 forks source link

Cannot index number with string "url" #3

Closed EnerGeh closed 5 years ago

EnerGeh commented 5 years ago

Hi, first of all: Thanks a lot for your add-on, this is exactly what I need. Unfortunately, I'm currently running into the issue jq: error (at <stdin>:1): Cannot index number with string "url" when dialing any number with your add-on. I cant find the issue by myself as I exactly follow your example configuration like

action:

  • service: hassio.addon_stdin data_template: addon: 89275b70_dss_voip input: {"call_sip_uri":"sip:**123@domain.tld","message_tts":"This is a test call"}

I simply want to call an internal number (starting with ** [double asterisk]) but even with an external number (without asterisk) I'm getting the above error. What the hack am I doing wrong?

sdesalve commented 5 years ago

Can you post your addon config? Obviously without any confidential data...

Can you send me a message thru https://t.me/HassioHelp? @ sdesalve

EnerGeh commented 5 years ago

It's currently a proof of concept, so no problem about the config. Of course I'm using different credentials in production.

My "SIP-Provider" is a router that is very popular in Germany, called FritzBox and works pretty well with a couple of SIP clients so I assume that it's not an issue with the router.

{ "sip_parameters": { "caller_id_uri": "sip:username@fritz.box", "realm": "*", "username": "username", "password": "password", "sip_server_uri": "fritz.box" } }

sdesalve commented 5 years ago

any error in /share/dss_voip/dss_pjsua.log?

Option sip_parameters: sip_server_uri IS OPTIONAL... If set, addon will auto-answer to call and play a dummy audio so you can check system's status... https://github.com/sdesalve/hassio-addons/tree/master/dss_voip#option-sip_parameters-sip_server_uri-optional

EnerGeh commented 5 years ago

any error in /share/dss_voip/dss_pjsua.log?

Nope, just a copy of the sip_parameters = '{"caller_id_uri":"... and so on.

Yes, I know about the sip_server_uri, it is not working with and without the optional parameter. Btw: I have no idea how to join your telegram channel, I don't understand italian ;-)

sdesalve commented 5 years ago

As stated in Features section you need to setup Google Translate Text-to-Speech.