Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doorbell registration fails #363

Open
PKort opened this issue Jan 13, 2025 · 0 comments
Open

Doorbell registration fails #363

PKort opened this issue Jan 13, 2025 · 0 comments

Comments

@PKort
Copy link

PKort commented Jan 13, 2025

Hi,

I am trying to get Asterisk up&running in my HA setup.
I have downloaded the Add-On and am attempting to get my video doorbell (HikVision DS-KV8113) registered.
I have setup new extension as per documentation:

cat /usr/share/hassio/homeassistant/asterisk/custom/pjsip_custom.conf

; Place your custom extensions here
[outgoing-flexisip]
type=endpoint
disallow=all
allow=ulaw,alaw
allow=h264
from_domain=192.168.0.2

[8000]
type = endpoint
context = default
disallow = all
allow = alaw,ulaw ; Audio codecs
allow=h264 ; Video codecs
direct_media_method=invite
dtmf_mode=info
callerid="Doorbell" <8000>
force_rport=no
aors= 8000
auth = auth8000

[8000]
type = aor
max_contacts = 1

[auth8000]
type=auth
auth_type=userpass
password=mypassword ; Set your password here
username=8000

I have configured the "Audo Add Extensions" option in the Add-On settings and setup Auto Add Secret to "mypassword".
obraz

I have person and user doorbell setup in HA with password "mypassword".
obraz
obraz

I have configured SIP in the doorbell:
obraz
with password = mypassword so I can get it running with any settings at all.
When I press "Save", I can see in the logs:

[Jan 13 10:15:30] DEBUG[566]: res_pjsip/pjsip_distributor.c:390 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=100 (rdata0x7fccd4007b38)
[Jan 13 10:15:30] DEBUG[566]: res_pjsip/pjsip_distributor.c:468 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-0000002d to use for Request msg REGISTER/cseq=100 (rdata0x7fccd4007b38)
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '6000' domain '192.168.0.2'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '6000' domain '192.168.0.2'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] NOTICE[567]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'REGISTER' from '"doorbell" sip:[email protected]' failed for '192.168.0.210:5060' (callid: [email protected]:5060) - No matching endpoint found
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_authenticator_digest.c:356 verify: Realm: asterisk Username: Result: NOAUTH
[Jan 13 10:15:30] DEBUG[566]: res_pjsip/pjsip_distributor.c:390 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=101 (rdata0x7fccd4007b38)
[Jan 13 10:15:30] DEBUG[566]: res_pjsip/pjsip_distributor.c:468 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-0000002d to use for Request msg REGISTER/cseq=101 (rdata0x7fccd4007b38)
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '6000' domain '192.168.0.2'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '6000' domain '192.168.0.2'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username 'doorbell' realm 'asterisk'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username 'doorbell' realm 'asterisk'
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_endpoint_identifier_ip.c:333 common_identify: No identify sections to match against
[Jan 13 10:15:30] NOTICE[567]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'REGISTER' from '"doorbell" sip:[email protected]' failed for '192.168.0.210:5060' (callid: [email protected]:5060) - No matching endpoint found
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_authenticator_digest.c:259 check_nonce: Calculated nonce 1736759730/ef3a8c1e5ad8e29d979c7e402aeb8f6e. Actual nonce is 1736759730/ef3a8c1e5ad8e29d979c7e402aeb8f6e
[Jan 13 10:15:30] DEBUG[567]: res_pjsip_authenticator_digest.c:356 verify: Realm: asterisk Username: Result: FAIL
[Jan 13 10:15:30] NOTICE[567]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'REGISTER' from '"doorbell" sip:[email protected]' failed for '192.168.0.210:5060' (callid: [email protected]:5060) - Failed to authenticate

Can you please advise what are possible issues and what how they can be fixed?

Kind regards,
Piotr Kortyka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant