TECH7Fox / sip-hass-card

A SIP client inside home assistant!
MIT License
172 stars 35 forks source link

Browser not asking for microphone using sip card #119

Open Dronedale opened 4 months ago

Dronedale commented 4 months ago

Hi everyone,

i am trying the past couple of days getting the SIP card to work. I´m using duckdns for https. After configuration of my SIP card and start making a call, nothing happens (it just says 'calling' and i cannot hang up) As far as I know I should be asked by the browser for mic access, but this is not happening in my case.

the browser log says:

'Connecting to wss://:8089undefined/ws', which fails (invalid arg exception)

I think 'undefined' shouldn´t be there?

here my config:

`type: custom:sipjs-card server: 192.168.178.2 port: '8089' video: false ringtone: /local/asterisk/ringtone.mp3 button_size: '62' custom: [] dtmfs:

Any suggestions?

TECH7Fox commented 4 months ago

Looks like your missing the prefix option. Try adding prefix: '' to the card config.

Dronedale commented 4 months ago

Thanks for your quick response! Tried it and it is working. Why do I need to set this parameter in the config while your default config does not contain it?