TECH7Fox / sip-hass-card

A SIP client inside home assistant!
MIT License
189 stars 39 forks source link

empty SIP-Card #79

Closed andynolle closed 2 years ago

andynolle commented 2 years ago

Hi there, I've tried to setup the card, the add-on and the integration according to your tutorial (https://tech7fox.github.io/sip-hass-docs/docs/tutorial/introduction). However, after adding a SIP-Card the card is not shown resp. is empty in the edit-mode. screenshot Even if I misconfigure the server ip, no error is displayed. What could be the reasons for that problem or where can I find the logs of the SIP-Card?

bkbilly commented 2 years ago

You can check the logs by pressing F12 and going to the console. Make sure you have configured correctly the sections for extensions and custom. If you don't have custom entities write it like this:

custom: []
andynolle commented 2 years ago

Many thanks for your fast reply! The problem was a type in person... Now the card is displayed, however the log shows: ICE config: undefined sipjs-card.ts:740:16 SIP-Card Failed Registeration with SIP Server sipjs-card.ts:755:20

andynolle commented 2 years ago

to be more precise:

the card-log is now: SIP-Card Unregistered with SIP Server sipjs-card.js:873:4267 ICE config: undefined sipjs-card.ts:740:16 SIP-Card Registered with SIP Server sipjs-card.ts:745:20

after pressing call, the log comprises: Call: newRTCSession: Originator: local sipjs-card.ts:765:20 ICE gathering timeout: 5 seconds sipjs-card.ts:832:20 Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. ICE: gathering state changed: gathering sipjs-card.ts:850:24 ICE: candidate: candidate:0 1 UDP 2122252543 192.168.X.X 64726 typ host sipjs-card.ts:835:24 ICE: candidate: candidate:1 1 TCP 2105524479 192.168.X.X 9 typ host tcptype active sipjs-card.ts:835:24 ICE: candidate: candidate:0 2 UDP 2122252542 192.168.X.X 64727 typ host sipjs-card.ts:835:24 ICE: candidate: candidate:1 2 TCP 2105524478 192.168.X.X 9 typ host tcptype active sipjs-card.ts:835:24 ICE: candidate: sipjs-card.ts:835:24 ICE: gathering state changed: complete sipjs-card.ts:850:24 ICE: candidate gathering complete. Cancelling ICE application timeout timer... sipjs-card.ts:853:28 Call failed. Originator: remote

and the aserix logs shows: [May 19 12:33:04] -- Removed contact 'sip:uc7elcst@192.168.X.X:60508;transport=ws' from AOR '8000' due to shutdown [May 19 12:33:04] == Contact 8000/sip:uc7elcst@192.168.X.X:60508;transport=ws has been deleted [May 19 12:33:04] == Endpoint 8000 is now Unreachable [May 19 12:33:04] == WebSocket connection from '192.168.X.X:60508' closed [May 19 12:33:05] == WebSocket connection from '192.168.X.X:60562' for protocol 'sip' accepted using version '13' [May 19 12:33:05] -- Added contact 'sip:4vppr9jk@192.168.X.X:60562;transport=ws' to AOR '8000' with expiration of 600 seconds [May 19 12:33:05] == Endpoint 8000 is now Reachable

TECH7Fox commented 2 years ago

Can you share your card config? And how does your 8000 endpoint look like? Because the card requires a special ws (websocket) extension. The add-on generates ws extensions for every person, which you can find in pjsip_default.conf.

TECH7Fox commented 2 years ago

No reaction so will close for now. Let me know if you are still having this issue.