TECH7Fox / sip-hass-card

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

Can't connect to HA #58

Closed soulcola closed 2 years ago

soulcola commented 2 years ago

Hello! I try to setup sip connection in HA, but without success. I have asterisk server and first of all i set it up exactly how in this article. And made a test extension for HA device But there was no success. Can't make or receive calls.

Then i install Asterisk integration. It found this test extension, but i still can't make a calls. HA recieve calls from another sip numbers, but when i press green phone button, call end up.

What i do wrong?

here is my settings screenshots sip_general sip_pjsip sip_chan

soulcola commented 2 years ago

[2022-03-20 12:40:14] NOTICE[1814] chan_sip.c: Registration from '<sip:104@192.168.50.95>' failed for '10.8.0.6:57786' - Wrong password [2022-03-20 12:40:14] NOTICE[1815] chan_sip.c: Registration from '<sip:104@192.168.50.95>' failed for '10.8.0.6:57787' - Wrong password [2022-03-20 12:40:14] NOTICE[1816] chan_sip.c: Registration from '<sip:104@192.168.50.95>' failed for '10.8.0.6:57788' - Wrong password [2022-03-20 12:40:52] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'PUBLISH' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 1b5b72e58ec74bdebd7b33759958c1c2) - Failed to authenticate [2022-03-20 12:41:32] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 81d1ef9f98104f90bbffb36a6a584bec) - Failed to authenticate [2022-03-20 12:41:41] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'PUBLISH' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 089fa54435a44ad4b6b5e27167f5a996) - Failed to authenticate [2022-03-20 12:41:45] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'SUBSCRIBE' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 95bd59f7932c408fb0578aceebca47c2) - Failed to authenticate [2022-03-20 12:42:16] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'PUBLISH' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 4206b48088d543068abd5f7a1253bd9a) - Failed to authenticate [2022-03-20 12:42:52] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 7ff88912b9fc49acb71d029065e0b8f1) - Failed to authenticate [2022-03-20 12:42:54] NOTICE[1465] res_pjsip/pjsip_distributor.c: Request 'PUBLISH' from '"103" <sip:103@192.168.50.95>' failed for '10.8.0.6:56150' (callid: 918cba6e249347f1906c92bf278b73a0) - Failed to authenticate

no matter what I do, I get this messages in log

TECH7Fox commented 2 years ago

It says wrong password. Did you set the secrets correctly?

Can you share the card log? (press F12 for the browser console)