Hi @arnonym
I think I manage to connect my doorbell.
- Can you confirm please?
11:00:56.039 pjsua_core.c .PJSUA state changed: NULL --> CREATED
11:00:56.040 sip_endpoint.c .Module "mod-pjsua-log" registered
11:00:56.040 sip_endpoint.c .Module "mod-tsx-layer" registered
11:00:56.040 sip_endpoint.c .Module "mod-stateful-util" registered
11:00:56.040 sip_endpoint.c .Module "mod-ua" registered
11:00:56.040 sip_endpoint.c .Module "mod-100rel" registered
11:00:56.040 sip_endpoint.c .Module "mod-pjsua" registered
11:00:56.040 sip_endpoint.c .Module "mod-invite" registered
11:00:56.047 alsa_dev.c ..ALSA driver found 0 devices
11:00:56.047 alsa_dev.c ..ALSA initialized
11:00:56.047 pjlib ..select() I/O Queue created (0x7f99945bba48)
11:00:56.051 sip_endpoint.c .Module "mod-evsub" registered
11:00:56.051 sip_endpoint.c .Module "mod-presence" registered
11:00:56.051 sip_endpoint.c .Module "mod-mwi" registered
11:00:56.051 sip_endpoint.c .Module "mod-refer" registered
11:00:56.051 sip_endpoint.c .Module "mod-pjsua-pres" registered
11:00:56.051 sip_endpoint.c .Module "mod-pjsua-im" registered
11:00:56.051 sip_endpoint.c .Module "mod-pjsua-options" registered
11:00:56.051 pjsua_core.c .No SIP worker threads created
11:00:56.051 pjsua_core.c .pjsua version 2.14.1 for Linux-6.6.54/x86_64 initialized
11:00:56.051 pjsua_core.c .PJSUA state changed: CREATED --> INIT
| 11:00:56.051589 [ ] Supported audio codecs: speex/16000/1, speex/8000/1, speex/32000/1, iLBC/8000/1, GSM/8000/1, PCMU/8000/1, PCMA/8000/1, G722/16000/1, opus/48000/2, L16/44100/2, L16/44100/1
11:00:56.051 pjsua_aud.c Setting null sound device..
11:00:56.051 pjsua_aud.c .Opening null sound device..
11:00:56.052 pjsua_core.c SIP UDP socket reachable at 192.168.1.15:5060
11:00:56.053 udp0x7f99922cefd0 SIP UDP transport started, published address is 192.168.1.15:5060
11:00:56.053 pjsua_core.c PJSUA state changed: INIT --> STARTING
11:00:56.053 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
11:00:56.053 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
11:00:56.053 pjsua_acc.c Adding account: id=sip:[email protected]
11:00:56.053 pjsua_acc.c .Account sip:[email protected] added with id 0
11:00:56.053 pjsua_acc.c .Acc 0: setting registration..
11:00:56.053 pjsua_acc.c ..Contact for acc 0 updated: <sip:[email protected]:5060;ob>;+sip.ice
11:00:56.053 pjsua_core.c ...TX 521 bytes Request msg REGISTER/cseq=63660 (tdta0x7f99920b34a8) to UDP 47.91.88.33:5060:
REGISTER sip:vdpconnect.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.15:5060;rport;branch=z9hG4bKPjsMUzRZ2SMs4RuHkKlO6zN2i3DHaRPzOk
Max-Forwards: 70
From: <sip:[email protected]>;tag=beMg-RDsadSdT5nL001ETPIs9N14Qi.F
To: <sip:[email protected]>
Call-ID: QNuGlyuEED2AobJBePD-gvdiMMuj64hJ
CSeq: 63660 REGISTER
Contact: <sip:[email protected]:5060;ob>;+sip.ice
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
11:00:56.053 pjsua_acc.c ..Acc 0: Registration sent
11:00:56.094 pjsua_core.c .RX 540 bytes Response msg 401/REGISTER/cseq=63660 (rdata0x7f99920ae0d8) from UDP 47.91.88.33:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.15:5060;received=79.131.159.180;rport=57895;branch=z9hG4bKPjsMUzRZ2SMs4RuHkKlO6zN2i3DHaRPzOk
From: <sip:[email protected]>;tag=beMg-RDsadSdT5nL001ETPIs9N14Qi.F
To: <sip:[email protected]>;tag=47f5494f4dd8677feafc1bbd25a7fb92.9417
Call-ID: QNuGlyuEED2AobJBePD-gvdiMMuj64hJ
CSeq: 63660 REGISTER
WWW-Authenticate: Digest realm="vdpconnect.com", nonce="6714b8d60000c9a5760ac251cd8d88d92ec3c52a89659383"
Server: OpenSIPS (2.3.2 (x86_64/linux))
Content-Length: 0
--end msg--
11:00:56.094 pjsua_acc.c ....IP address change detected for account 0 (192.168.1.15:5060 --> 79.131.159.180:57895). Updating registration (using method 4)
11:00:56.094 pjsua_acc.c ....Contact for acc 0 updated: <sip:[email protected]:57895;ob>;+sip.ice
11:00:56.094 sip_auth_client.c ...Digest algorithm is ""
11:00:56.094 pjsua_core.c ....TX 727 bytes Request msg REGISTER/cseq=63661 (tdta0x7f99920b34a8) to UDP 47.91.88.33:5060:
REGISTER sip:vdpconnect.com SIP/2.0
Via: SIP/2.0/UDP 79.131.159.180:57895;rport;branch=z9hG4bKPjUAmqhflxP7S8PJJIBpA6PgIqPKPZTPPU
Max-Forwards: 70
From: <sip:[email protected]>;tag=beMg-RDsadSdT5nL001ETPIs9N14Qi.F
To: <sip:[email protected]>
Call-ID: QNuGlyuEED2AobJBePD-gvdiMMuj64hJ
CSeq: 63661 REGISTER
Contact: <sip:[email protected]:57895;ob>;+sip.ice
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="0e001a2fea54", realm="vdpconnect.com", nonce="6714b8d60000c9a5760ac251cd8d88d92ec3c52a89659383", uri="sip:vdpconnect.com", response="9a6c0d12526678fda2b88ce90bb06772"
Content-Length: 0
--end msg--
11:00:56.140 pjsua_core.c .RX 629 bytes Response msg 200/REGISTER/cseq=63661 (rdata0x7f99920ae038) from UDP 47.91.88.33:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 79.131.159.180:57895;received=79.131.159.180;rport=57895;branch=z9hG4bKPjUAmqhflxP7S8PJJIBpA6PgIqPKPZTPPU
From: <sip:[email protected]>;tag=beMg-RDsadSdT5nL001ETPIs9N14Qi.F
To: <sip:[email protected]>;tag=47f5494f4dd8677feafc1bbd25a7fb92.2207
Call-ID: QNuGlyuEED2AobJBePD-gvdiMMuj64hJ
CSeq: 63661 REGISTER
Contact: <sip:[email protected]:57895;ob>;expires=300;received="sip:79.131.159.180:57895", <sip:[email protected]:49307;transport=udp>;expires=19;received="sip:79.131.159.180:49307"
Server: OpenSIPS (2.3.2 (x86_64/linux))
Content-Length: 0
--end msg--
11:00:56.140 pjsua_acc.c ....SIP outbound status for acc 0 is not active
11:00:56.140 pjsua_acc.c ....sip:[email protected]: registration success, status=200 (OK), will re-register in 300 seconds
11:00:56.140 pjsua_acc.c ....Keep-alive timer started for acc 0, destination:47.91.88.33:5060, interval:13s
| 11:00:56.140991 [1] OnRegState: 200 OK
11:00:57.053 pjsua_aud.c Closing sound device after idle for 1 second(s)
11:00:57.053 pjsua_aud.c .Closing null sound device..
with this configuration
sip_global:
port: 5060
log_level: 5
name_server: ""
cache_dir: /config/audio_cache
sip:
enabled: true
registrar_uri: sip:vdpconnect.com
id_uri: sip: [email protected]
realm: "*"
user_name: xxxxxxx
password: "xxxxxx"
answer_mode: listen
settle_time: 1
incoming_call_file: ""
sip_2:
enabled: false
registrar_uri: sip:fritz.box
id_uri: sip:[email protected]
realm: "*"
user_name: anotheruser
password: secret
answer_mode: listen
settle_time: 1
incoming_call_file: ""
sip_3:
enabled: false
registrar_uri: sip:192.168.178.10
id_uri: ""
realm: "*"
user_name: ""
password: ""
answer_mode: listen
settle_time: 1
incoming_call_file: ""
tts:
platform: google_translate
language: en
webhook:
id: xxxxxx
- In the configuration if I try to remove the 2 other sip accounts from your example code i get error
Is that ok? Do we need the other 2 false sip accounts?
Failed to save add-on configuration, Missing option 'sip_3' in root in ha-sip (c7744bff_ha-sip). Got {'sip_global': {'port': 5060, 'log_level'
for the time being I haven’t add anything else.
I have never user an event or webhook trigger and nothing I have tried until now seems to working. So I am not sure that everything is ok in my setup.
i tried something like this but it didn’t work
- id: SIP Incoming call
alias: SIP Incoming call
description: ""
trigger:
- platform: webhook
allowed_methods:
- POST
local_only: true
webhook_id: doorbell_ringing_webhook
condition: []
action:
- action: notify.mobile_app_makis_smartphone
data:
message: 'the doorbell is ringing!'
mode: single