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

Trying to get Dahua VTO working with SIP-HASS #34

Open
Cr4z33 opened this issue Jun 19, 2024 · 0 comments
Open

Trying to get Dahua VTO working with SIP-HASS #34

Cr4z33 opened this issue Jun 19, 2024 · 0 comments

Comments

@Cr4z33
Copy link

Cr4z33 commented Jun 19, 2024

OK I followed all the tutorials on how to setup the ASTERISK and the card, went into the Dahua VTO Web UI to edit everything listed in the guide, created custom entry for the VTO in pjsip_custom.conf, logs look fine, but when I press the videodorbell button it ends up saying nobody answered.

Looking at the log it looks like there are SSL issues?

The certs are generated (and are 100% working) for my external IP (from Dynu.com) and I am using Lovelace with that IP address in the browser.

At the end of the day what I wanted to achieve was the card to automatically show up so let me attach here everything and please help me as I feel confused now... 😅

Asterisk integration configuration

ami_password: ****
auto_add: true
auto_add_secret: ****
video_support: false
generate_ssl_cert: false
certfile: fullchain.pem
keyfile: privkey.pem
additional_sounds: []
mailbox: false
mailbox_port: 12345
mailbox_password: my-secure-password
mailbox_extension: "100"
mailbox_google_api_key: my-google-stt-key
log_level: info

SIP Card YAML

type: custom:sipjs-card
server: <homeassistantlocalipaddress>
prefix: ''
port: '8089'
video: true
auto_answer: true
hide_me: false
state_color: true
custom_title: ''
ringtone: /local/asterisk/ringtone.mp3
ringbacktone: /local/asterisk/backtone.mp3
button_size: 42
extensions:
  - person: person.cr4z33
    name: Home Assistant
    extension: 100
    secret: ****
    icon: mdi:monitor
    entity: binary_sensor.sensor1
    camera: ''
  - person: person.cr4z33
    name: Video Doorbell
    extension: 8001
    secret: ****
    icon: mdi:doorbell-video
    entity: binary_sensor.sensor1
    camera: camera.videocitofono_main
custom: []
dtmfs: []
buttons: []

Asterisk logs

[Jun 19 12:18:44] Asterisk Ready.
[Jun 19 12:18:44]   == Manager '******' logged on from 127.0.0.1
[Jun 19 12:18:48]     -- Added contact 'sip:8001@<localipadressofthedahuavtodoorbell>' to AOR '8001' with expiration of 60 seconds
[Jun 19 12:18:48]   == Endpoint 8001 is now Reachable
[Jun 19 12:19:29]     -- Executing [100@default:1] Dial("PJSIP/8001-00000000", "") in new stack
[Jun 19 12:19:29]     -- No devices or endpoints to dial (technology/resource)
[Jun 19 12:19:29]     -- Auto fallthrough, channel 'PJSIP/8001-00000000' status is 'CHANUNAVAIL'
[Jun 19 12:23:12]     -- Executing [100@default:1] Dial("PJSIP/8001-00000001", "") in new stack
[Jun 19 12:23:12]     -- No devices or endpoints to dial (technology/resource)
[Jun 19 12:23:12]     -- Auto fallthrough, channel 'PJSIP/8001-00000001' status is 'CHANUNAVAIL'
[Jun 19 12:39:38] ERROR[606]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:38] ERROR[606]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47381'
[Jun 19 12:39:38] ERROR[606]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:40] ERROR[607]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:40] ERROR[607]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47385'
[Jun 19 12:39:40] ERROR[607]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:43] ERROR[608]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:43] ERROR[608]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47389'
[Jun 19 12:39:43] ERROR[608]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:49] ERROR[609]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:49] ERROR[609]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47391'
[Jun 19 12:39:49] ERROR[609]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:56] ERROR[610]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:39:56] ERROR[610]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47395'
[Jun 19 12:39:56] ERROR[610]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:40:21]     -- Executing [100@default:1] Dial("PJSIP/8001-00000002", "") in new stack
[Jun 19 12:40:21]     -- No devices or endpoints to dial (technology/resource)
[Jun 19 12:40:21]     -- Auto fallthrough, channel 'PJSIP/8001-00000002' status is 'CHANUNAVAIL'
[Jun 19 12:40:22] ERROR[613]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:40:22] ERROR[613]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47403'
[Jun 19 12:40:22] ERROR[613]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:40:52] ERROR[614]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:40:52] ERROR[614]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47407'
[Jun 19 12:40:52] ERROR[614]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:41:22] ERROR[615]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:41:22] ERROR[615]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47465'
[Jun 19 12:41:22] ERROR[615]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:41:53] ERROR[616]: iostream.c:647 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0)::reason(1), Internal SSL error
[Jun 19 12:41:53] ERROR[616]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer '<localipaddressofmycomputer>:47471'
[Jun 19 12:41:53] ERROR[616]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error

VTO Local Settings
local

VTO SIP Settings
sip

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