You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
; 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".
I have person and user doorbell setup in HA with password "mypassword".
I have configured SIP in the doorbell:
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
The text was updated successfully, but these errors were encountered:
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".
I have person and user doorbell setup in HA with password "mypassword".
I have configured SIP in the doorbell:
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
The text was updated successfully, but these errors were encountered: