(Asterisk + Home Assistant) I can't make calls

Hey guys. I’m new to Asterisk and I’m trying to use Home Assistant + Asterisk Addon + SIP card + Asterisk integration. As a end device, I have a desktop (Chrome or Firefox) and 2 smartphones (Home Assistant companion App).

I followed the tutorial as Jordy explained very well, but I can’t find where I’m going wrong.

I can´t make calls.

In advance, I’m sorry if I didn’t know how to explain myself correctly, I’m really new to Asterisk and I’ve been reading as much as I can:

I use DuckDNS + NGINX + SSL certificates.

My browser (Chrome and Firefox)
image

Port Forwarding

My SIP Card

http.conf

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/fullchain.pem
tlsprivatekey=/etc/asterisk/keys/privkey.pem

pjsip.conf

[global]
; SET GLOBAL SETTINGS HERE

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
local_net=192.168.1.0/24
local_net=127.0.0.1/32
external_media_address=*<mydomain>*.duckdns.org
external_signaling_address=*<mydomain>*.duckdns.org

[transport-tcp]
type=transport
protocol=tcp
bind=0.0.0.0

[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
method=tlsv1_2
cert_file=/etc/asterisk/keys/fullchain.pem
priv_key_file=/etc/asterisk/keys/privkey.pem

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0

; AUTO GENERATED SIP.JS EXTENSIONS
#include pjsip_default.conf

; CUSTOM EXTENSIONS
#include pjsip_custom.conf

pjsip_default.conf

; DON'T MODIFY THIS FILE, IT GET'S OVERWRITTEN!
; IF YOU REALLY WANT TO CHANGE sipjs-phone OR my-codecs, YOU CAN ADD THAT IN pjsip_custom.conf OR EVEN pjsip.conf

; For additional parameters go to https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Configuration_res_pjsip




; Common AUTH parameters (template)
[sipjs-phone-auth](!)
type=auth
auth_type=userpass
password=*<mypass>*

; Common AOR parameters (template)
[sipjs-phone-aor](!)
type=aor
max_contacts=6
remove_existing=yes
remove_unavailable=yes
qualify_frequency=0

; Common ENDPOINT parameters (template)
[sipjs-phone-endpoint](!) 
type=endpoint
send_rpid=yes
send_pai=yes
device_state_busy_at=1
webrtc=yes
; Setting webrtc=yes is a shortcut for setting the following options:
; use_avpf=yes
; media_encryption=dtls
; dtls_auto_generate_cert=yes (if dtls_cert_file is not set)
; dtls_verify=fingerprint
; dtls_setup=actpass
; ice_support=yes
; media_use_received_transport=yes
; rtcp_mux=yes
from_domain=asterisk
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
direct_media=no
context=default
disallow=all
allow=ulaw,alaw,speex,gsm,g726,g723,g722,opus




[100](sipjs-phone-aor)
[100](sipjs-phone-auth)
username=100
[100](sipjs-phone-endpoint)
aors=100
auth=100
callerid="junior" <100>


[101](sipjs-phone-aor)
[101](sipjs-phone-auth)
username=101
[101](sipjs-phone-endpoint)
aors=101
auth=101
callerid="pentagono" <101>


[102](sipjs-phone-aor)
[102](sipjs-phone-auth)
username=102
[102](sipjs-phone-endpoint)
aors=102
auth=102
callerid="desktop_carol" <102>

Asterisk logs (log level: NOTICE):

[Jul 14 23:41:00] WARNING[488][C-00000009]: pjsip/dialplan_functions.c:1018 pjsip_acf_dial_contacts_read: Specified endpoint '103' was not found
[Jul 14 23:41:00]     -- Executing [103@default:1] Dial("PJSIP/100-00000008", "") in new stack
[Jul 14 23:41:00]     -- No devices or endpoints to dial (technology/resource)
[Jul 14 23:41:00]     -- Auto fallthrough, channel 'PJSIP/100-00000008' status is 'CHANUNAVAIL'
[Jul 14 23:41:04] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:04] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:04] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - Failed to authenticate
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - Failed to authenticate
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - Failed to authenticate
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - Failed to authenticate
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - No matching endpoint found
[Jul 14 23:41:05] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:4000@192.168.31.133>' failed for '51.142.250.79:60636' (callid: 469413158-1897827147-628713520) - Failed to authenticate
[Jul 14 23:41:06] NOTICE[357]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:200@192.168.31.133>' failed for '51.142.250.79:64831' (callid: 1137233028-1187014833-730368208) - No matching endpoint found

Asterisk log (log level: ERROR )

[Jul 14 23:43:21] Asterisk Ready.
[Jul 14 23:43:21]   == WebSocket connection from '177.26.250.151:30281' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:21]   == WebSocket connection from '177.26.249.5:42043' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:22]   == WebSocket connection from '177.26.249.5:42023' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:22]   == WebSocket connection from '177.26.250.151:30303' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:22]   == WebSocket connection from '177.26.250.151:30283' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:24]     -- Added contact 'sip:jqaurqkm@177.26.249.5:42043;transport=ws' to AOR '100' with expiration of 600 seconds
[Jul 14 23:43:24]   == Endpoint 100 is now Reachable
[Jul 14 23:43:24]     -- Added contact 'sip:bchclcq8@177.26.250.151:30281;transport=ws' to AOR '100' with expiration of 600 seconds
[Jul 14 23:43:24]     -- Added contact 'sip:tr80bd6h@177.26.249.5:42023;transport=ws' to AOR '100' with expiration of 600 seconds
[Jul 14 23:43:24]   == WebSocket connection from '192.168.31.1:58488' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:25]     -- Added contact 'sip:ueosgn35@177.26.250.151:30303;transport=ws' to AOR '100' with expiration of 600 seconds
[Jul 14 23:43:25]     -- Added contact 'sip:oghqfj2k@177.26.250.151:30283;transport=ws' to AOR '100' with expiration of 600 seconds
[Jul 14 23:43:28]   == WebSocket connection from '192.168.31.1:58489' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:28]   == WebSocket connection from '192.168.31.1:58490' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:28]   == WebSocket connection from '192.168.31.1:58492' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:28]   == WebSocket connection from '192.168.31.1:58493' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:28]   == WebSocket connection from '192.168.31.1:58494' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:39]   == WebSocket connection from '192.168.31.1:54412' for protocol 'sip' accepted using version '13'
[Jul 14 23:43:39]     -- Added contact 'sip:uhhujub0@192.168.31.1:54412;transport=ws' to AOR '102' with expiration of 600 seconds
[Jul 14 23:43:39]   == Endpoint 102 is now Reachable
[Jul 14 23:44:10] ERROR[371]: pjproject: <?>: 	       sip_transport.c Error processing 721 bytes packet from UDP 5.9.98.247:50303 : PJSIP syntax error exception when parsing 'Request Line' header on line 1 col 15:
INVITE sip:00 17037187217@192.168.31.133:5060 SIP/2.0
Via: SIP/2.0/UDP 5.9.98.247:50303;branch=z9hG4bK1330007946
Max-Forwards: 70
From: <sip:101@192.168.31.133:5060>;tag=1823830497
To: <sip:00 17037187217@192.168.31.133:5060>
Call-ID: 428647227-1645119016-1469194077
CSeq: 1 INVITE
Contact: <sip:101@5.9.98.247:50303>
Content-Type: application/sdp
Content-Length: 207
Allow: ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE, UPDATE, PUBLISH
User-Agent: ims

v=0
o=101 16264 18299 IN IP4 192.168.1.83
s=call
c=IN IP4 192.168.1.83
t=0 0
m=audio 25282 RTP/AVP 0 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
-- end of packet.
[Jul 14 23:44:12]     -- Executing [103@default:1] Dial("PJSIP/100-00000000", "") in new stack
[Jul 14 23:44:12]     -- No devices or endpoints to dial (technology/resource)
[Jul 14 23:44:12]     -- Auto fallthrough, channel 'PJSIP/100-00000000' status is 'CHANUNAVAIL'
[Jul 14 23:44:13]     -- Executing [103@default:1] Dial("PJSIP/100-00000001", "") in new stack
[Jul 14 23:44:13]     -- No devices or endpoints to dial (technology/resource)
[Jul 14 23:44:13]     -- Auto fallthrough, channel 'PJSIP/100-00000001' status is 'CHANUNAVAIL'
[Jul 14 23:44:15]     -- Executing [103@default:1] Dial("PJSIP/100-00000002", "") in new stack
[Jul 14 23:44:15]     -- No devices or endpoints to dial (technology/resource)
[Jul 14 23:44:15]     -- Auto fallthrough, channel 'PJSIP/100-00000002' status is 'CHANUNAVAIL'

What is Home Assistant in this context?

The do not edit warning in your configuration files indicate you are using some sort of Asterisk based GUI. The best place for the support is the maintainers of the GUI.

Also, please enable and use the full log, and please mark all logs and configuration files as pre-formatted text for the forum, as they contain characters that are otherwise interpreted as markup.

This is correct; there is no endpoint 103 in your coinfiguration.

1 Like

First, thanks for the feedback.

It’s a open source home automation.

I’m following the maintainers ( home assistant forum, discord, github) and was guided to look for the Asterisk Community for help. I’m really new on Asterisk, and I can go wrong with the simple things.

I’ll do that.

Whilst your GUI configuration shows an extension 103, as well as 100 and 101, the actual Asterisk configuration has Carol’s extension as 102. That looks like a Home Assistant issue, not an Asterisk one. Pass it back. (Either you failed to propagate the changes to Asterisk, or Home Assistant is buggy.)

Automatically the Asterisk addon creates the extensions(each person in Home Assistant, and I do think HA is buggy).

I’ll correct that and give a return at the end of the day.

It wasn’t a HA bug. I configured the card wrongly (I put extension 103 instead of 102). I just fixed this.

Now if I try to make the call, the device does not ring. I need to call back from the other device and answer right there; in this way, I can speak, but I hear nothing.

Asterisk Addon Log:

[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:3558 rtp_add_candidates_to_ice: (0x55f031474620) ICE add system candidates
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: 192.168.31.133:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: 172.17.0.1:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: 172.30.32.1:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::6a04:acfe:7291:75c5]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::42:97ff:fe51:7311]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::42:e0ff:fe6d:9a15]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::c20:52ff:feb0:3ad]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::c8d1:9eff:fe57:e86c]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::8c66:8cff:fe7a:4c7c]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::806e:13ff:fe53:15a3]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::e0b8:d0ff:fe0f:a12e]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::54f5:b9ff:fee7:7976]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::c05f:fbff:fe63:2a16]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::58fc:faff:fe43:c678]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::c5e:6dff:fe4f:5a18]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::94ce:11ff:fe77:a533]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::fcb2:1bff:fe57:16f0]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::1018:c5ff:fe4b:14d2]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::78fb:4fff:fed8:f23f]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: [fe80::7099:cdff:fed5:e6aa]:13320, 2130706431
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:3664 rtp_add_candidates_to_ice: (0x55f031474620) ICE request STUN TCP RTP candidate
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: chan_pjsip.c:2419 chan_pjsip_call:  'call' task pushed
[Jul 16 02:07:20]     -- Called PJSIP/101/sip:v56ejrfa@192.168.31.1:35582;transport=ws
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: app_dial.c:1269 wait_for_answer:  PJSIP/100-00000014
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: channel.c:5821 set_format: Channel PJSIP/101-00000015 setting read format path: opus -> opus
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: channel.c:5821 set_format: Channel PJSIP/100-00000014 setting write format path: opus -> opus
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: channel.c:5821 set_format: Channel PJSIP/100-00000014 setting read format path: opus -> opus
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: channel.c:5821 set_format: Channel PJSIP/101-00000015 setting write format path: opus -> opus
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: chan_pjsip.c:1632 chan_pjsip_indicate:  PJSIP/100-00000014: Indicated Connected line update
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: chan_pjsip.c:1863 chan_pjsip_indicate:  PJSIP/100-00000014
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1330 ast_rtp_ice_add_cand: (0x55f031474620) ICE add candidate: MYIP:13320, 1694498815
[Jul 16 02:07:20] DEBUG[471]: rtp_engine.c:543 ast_rtp_instance_new: RTP instance '0x55f031474620' is setup and ready to go
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1761 ast_rtp_ice_change_components: (0x55f031474620) ICE change number of components 2 -> 1
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:980 ice_reset_session: (0x55f031474620) ICE resetting
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:982 ice_reset_session:  (0x55f031474620) ICE nevermind, not ready for a reset
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:8441 ast_rtp_prop_set: (0x55f031474620) RTCP setup on RTP instance
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:2152 ast_rtp_dtls_set_configuration: (0x55f031474620) DTLS RTP setup
[Jul 16 02:07:20] DEBUG[471]: res_rtp_asterisk.c:1858 dtls_setup_rtcp: (0x55f031474620) DTLS RTCP setup
[Jul 16 02:07:20] DEBUG[471]: res_srtp.c:676 crypto_init_keys: local_key64 xlS6HssCGXAe9i2IbCYoaC5inZ4ghO/tIIuzoQKn len 40
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_sdp_rtp.c:1309 add_msid_to_stream: Stream msid: 0x55f0314749c0 audio 22431643-6ad4-4543-8089-2ae6cba8ce7e 2f5439d2-2dea-45a0-970e-640f755e8ac5
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_sdp_rtp.c:2031 create_outgoing_sdp_stream:  RC: 1
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:5006 add_sdp_streams:  Handled
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:5194 create_local_sdp:  PJSIP/101-00000015: Adding bundle groups (if available)
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:5200 create_local_sdp:  PJSIP/101-00000015: Copying connection details
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:5244 create_local_sdp:  PJSIP/101-00000015
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:2876 ast_sip_session_create_invite:  
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4496 handle_outgoing_request:  PJSIP/101-00000015: Method is INVITE
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4506 handle_outgoing_request:  PJSIP/101-00000015
[Jul 16 02:07:20] DEBUG[471]: res_pjsip/pjsip_resolver.c:475 sip_resolve: Performing SIP DNS resolution of target '192.168.31.1'
[Jul 16 02:07:20] DEBUG[471]: res_pjsip/pjsip_resolver.c:502 sip_resolve: Transport type for target '192.168.31.1' is '(null)'
[Jul 16 02:07:20] DEBUG[471]: res_pjsip/pjsip_resolver.c:523 sip_resolve: Target '192.168.31.1' is an IP address, skipping resolution
[Jul 16 02:07:20] DEBUG[471]: res_http_websocket.c:381 __ast_websocket_write: Writing websocket text frame, length 3429
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4630 session_inv_on_state_changed:  PJSIP/101-00000015 Event: TSX_STATE  Inv State: CALLING
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4656 session_inv_on_state_changed: PJSIP/101-00000015: Source of transaction state change is TX_MSG
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4704 session_inv_on_state_changed:  
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4748 session_inv_on_tsx_state_changed:  PJSIP/101-00000015 TSX State: Calling  Inv State: CALLING
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4936 session_inv_on_tsx_state_changed:  Nothing delayed
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4180 session_on_tsx_state:  PJSIP/101-00000015 TSX State: Calling  Inv State: CALLING
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4184 session_on_tsx_state:  Topology: Pending:  <0:audio-0:audio:sendrecv (ulaw|alaw|g722|opus|speex|gsm|g726|g723)>  Active: (null topology)
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4189 session_on_tsx_state:  
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:2402 call:  RC: 0
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: channel.c:4466 indicate_connected_line: PJSIP/100-00000014: Dropping redundant connected line update "pentagono" <101>.
[Jul 16 02:07:20] DEBUG[471]: res_pjsip/pjsip_distributor.c:502 distributor: Searching for serializer associated with dialog dlg0x55f030c87ee8 for Response msg 100/INVITE/cseq=15249 (rdata0x55f030c89b48)
[Jul 16 02:07:20] DEBUG[471]: res_pjsip/pjsip_distributor.c:510 distributor: Found serializer pjsip/outsess/101-00000074 associated with dialog dlg0x55f030c87ee8
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4203 session_on_rx_response:  PJSIP/101-00000015 Method: INVITE Status: 100
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4206 session_on_rx_response:  
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4748 session_inv_on_tsx_state_changed:  PJSIP/101-00000015 TSX State: Proceeding  Inv State: CALLING
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4465 handle_incoming_response:  PJSIP/101-00000015: Response is 100 Trying
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:3210 chan_pjsip_incoming_response:  PJSIP/101-00000015: Status: 100
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:3255 chan_pjsip_incoming_response:  PJSIP/101-00000015: Not queueing anything
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:3259 chan_pjsip_incoming_response:  PJSIP/101-00000015
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:3182 chan_pjsip_incoming_response_update_cause:  PJSIP/101-00000015: Status: 100
[Jul 16 02:07:20] DEBUG[471]: chan_pjsip.c:3203 chan_pjsip_incoming_response_update_cause:  PJSIP/101-00000015
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4477 handle_incoming_response:  PJSIP/101-00000015
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4936 session_inv_on_tsx_state_changed:  Nothing delayed
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4180 session_on_tsx_state:  PJSIP/101-00000015 TSX State: Proceeding  Inv State: CALLING
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4184 session_on_tsx_state:  Topology: Pending:  <0:audio-0:audio:sendrecv (ulaw|alaw|g722|opus|speex|gsm|g726|g723)>  Active: (null topology)
[Jul 16 02:07:20] DEBUG[471]: res_pjsip_session.c:4189 session_on_tsx_state:  
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: chan_pjsip.c:1632 chan_pjsip_indicate:  PJSIP/100-00000014: Indicated Private Cause Code
[Jul 16 02:07:20] DEBUG[628][C-0000000b]: chan_pjsip.c:1863 chan_pjsip_indicate:  PJSIP/100-00000014
[Jul 16 02:07:26] DEBUG[620]: threadpool.c:1169 worker_idle: Worker thread idle timeout reached. Dying.
[Jul 16 02:07:26] DEBUG[619]: threadpool.c:1169 worker_idle: Worker thread idle timeout reached. Dying.
[Jul 16 02:07:26] DEBUG[618]: threadpool.c:1169 worker_idle: Worker thread idle timeout reached. Dying.
[Jul 16 02:07:26] DEBUG[467]: threadpool.c:1029 worker_thread_destroy: Destroying worker thread 52
[Jul 16 02:07:26] DEBUG[467]: threadpool.c:1029 worker_thread_destroy: Destroying worker thread 51
[Jul 16 02:07:26] DEBUG[467]: threadpool.c:1029 worker_thread_destroy: Destroying worker thread 50
[Jul 16 02:07:26] DEBUG[621]: threadpool.c:1169 worker_idle: Worker thread idle timeout reached. Dying.
[Jul 16 02:07:26] DEBUG[467]: threadpool.c:1029 worker_thread_destroy: Destroying worker thread 53
[Jul 16 02:07:27] DEBUG[452]: res_rtp_asterisk.c:9056 stunaddr_resolve_callback: Resolved stunaddr 'stun.l.google.com' to '142.250.15.127'. Lowest TTL = 5.
[Jul 16 02:07:33] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=1 (rdata0x7f094409f778)
[Jul 16 02:07:33] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000038 to use for Request msg REGISTER/cseq=1 (rdata0x7f094409f778)
[Jul 16 02:07:33] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:07:33] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username 'abc' domain '192.168.31.133'
[Jul 16 02:07:33] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username 'abc' domain '192.168.31.133'
[Jul 16 02:07:33] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:07:33] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:abc@192.168.31.133>' failed for '138.201.20.184:54978' (callid: 1716010294-428805230-573174653) - No matching endpoint found
[Jul 16 02:07:33] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: NOAUTH
[Jul 16 02:07:33] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:07:33.849-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="abc",SessionID="1716010294-428805230-573174653",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/54978"
[Jul 16 02:07:33] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeSent",EventTV="2022-07-16T02:07:33.849-0300",Severity="Informational",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1716010294-428805230-573174653",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/54978",Challenge=""

A second Asterisk Addon Log (call back and answer the call):

[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: NOAUTH
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeSent",EventTV="2022-07-16T02:13:39.023-0300",Severity="Informational",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge=""
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=5 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-0000002e to use for Request msg REGISTER/cseq=5 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=2 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000030 to use for Request msg REGISTER/cseq=2 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '6914' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '6914' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '3206' realm 'asterisk'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '6914' realm 'asterisk'
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '3206' realm 'asterisk'
[Jul 16 02:13:39] NOTICE[472]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - No matching endpoint found
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '6914' realm 'asterisk'
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:6914@192.168.31.133>' failed for '138.201.20.184:57049' (callid: 1181751426-2117832922-229809225) - No matching endpoint found
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:39] DEBUG[472]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:39] NOTICE[472]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - Failed to authenticate
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:6914@192.168.31.133>' failed for '138.201.20.184:57049' (callid: 1181751426-2117832922-229809225) - Failed to authenticate
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:39.272-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="3206",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155"
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:39.272-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="6914",SessionID="1181751426-2117832922-229809225",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/57049"
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:39.272-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="01464f0be7b7aef8236609bae2fef139",ExpectedResponse=""
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:39.272-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1181751426-2117832922-229809225",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/57049",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="db30b11df5fbb948fb83bbbf79b1e058",ExpectedResponse=""
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=3 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000030 to use for Request msg REGISTER/cseq=3 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '3206' realm 'asterisk'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '3206' realm 'asterisk'
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - No matching endpoint found
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:39.538-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="3206",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155"
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - Failed to authenticate
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:39.538-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="05780c94380675c136e3dcf5919ed2f7",ExpectedResponse=""
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=6 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-0000002e to use for Request msg REGISTER/cseq=6 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '6914' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '6914' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '6914' realm 'asterisk'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '6914' realm 'asterisk'
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:6914@192.168.31.133>' failed for '138.201.20.184:57049' (callid: 1181751426-2117832922-229809225) - No matching endpoint found
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:39.576-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="6914",SessionID="1181751426-2117832922-229809225",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/57049"
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:6914@192.168.31.133>' failed for '138.201.20.184:57049' (callid: 1181751426-2117832922-229809225) - Failed to authenticate
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:39.576-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1181751426-2117832922-229809225",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/57049",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="ab41f40e05d515cbdbc1d73f040691d5",ExpectedResponse=""
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=4 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000030 to use for Request msg REGISTER/cseq=4 (rdata0x7f094409f778)
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '3206' domain '192.168.31.133'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '3206' realm 'asterisk'
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '3206' realm 'asterisk'
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - No matching endpoint found
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:39.886-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="3206",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155"
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:39] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:39] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - Failed to authenticate
[Jul 16 02:13:39] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:39.886-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="143b3f0ab947d1e227fd841963447f6a",ExpectedResponse=""
[Jul 16 02:13:40] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=5 (rdata0x7f094409f778)
[Jul 16 02:13:40] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000030 to use for Request msg REGISTER/cseq=5 (rdata0x7f094409f778)
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '3206' domain '192.168.31.133'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '3206' domain '192.168.31.133'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '3206' realm 'asterisk'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '3206' realm 'asterisk'
[Jul 16 02:13:40] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - No matching endpoint found
[Jul 16 02:13:40] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:40.193-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="3206",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155"
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948419/0e31618537730ee63a06e0bb42d4e105. Actual nonce is 1657948419/0e31618537730ee63a06e0bb42d4e105
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:40] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - Failed to authenticate
[Jul 16 02:13:40] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:40.193-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge="1657948419/0e31618537730ee63a06e0bb42d4e105",Response="19e25e6551c2132ebe58367d80c8fb4a",ExpectedResponse=""
[Jul 16 02:13:40] DEBUG[470]: res_pjsip/pjsip_distributor.c:393 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=6 (rdata0x7f094409f778)
[Jul 16 02:13:40] DEBUG[470]: res_pjsip/pjsip_distributor.c:471 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000030 to use for Request msg REGISTER/cseq=6 (rdata0x7f094409f778)
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:148 username_identify: Attempting identify by From username '3206' domain '192.168.31.133'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:152 username_identify: Endpoint not found for From username '3206' domain '192.168.31.133'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_ip.c:275 common_identify: No identify sections to match against
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:173 auth_username_identify: Attempting identify by Authorization username '3206' realm 'asterisk'
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_endpoint_identifier_user.c:178 auth_username_identify: Endpoint not found for Authentication username '3206' realm 'asterisk'
[Jul 16 02:13:40] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - No matching endpoint found
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_authenticator_digest.c:261 check_nonce: Calculated nonce 1657948420/5a83f9db21de89936ca9373d84ae0d12. Actual nonce is 1657948420/5a83f9db21de89936ca9373d84ae0d12
[Jul 16 02:13:40] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="InvalidAccountID",EventTV="2022-07-16T02:13:40.417-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="3206",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155"
[Jul 16 02:13:40] DEBUG[471]: res_pjsip_authenticator_digest.c:358 verify: Realm: asterisk  Username:   Result: FAIL
[Jul 16 02:13:40] NOTICE[471]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:3206@192.168.31.133>' failed for '138.201.20.184:63155' (callid: 1385333560-1493362782-1693306314) - Failed to authenticate
[Jul 16 02:13:40] SECURITY[554]: res_security_log.c:114 security_event_stasis_cb: SecurityEvent="ChallengeResponseFailed",EventTV="2022-07-16T02:13:40.417-0300",Severity="Error",Service="PJSIP",EventVersion="1",AccountID="<unknown>",SessionID="1385333560-1493362782-1693306314",LocalAddress="IPV4/UDP/192.168.31.133/5060",RemoteAddress="IPV4/UDP/138.201.20.184/63155",Challenge="1657948420/5a83f9db21de89936ca9373d84ae0d12",Response="edd1bbef56166660fbfdc1f9c4203c43",ExpectedResponse=""

NGINX Home Assistant Proxy Log:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[23:17:42] INFO: Running nginx...
2022/07/15 08:10:23 [crit] 122#122: *1159 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 124.156.223.97, server: 0.0.0.0:443
2022/07/16 01:27:37 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:27:37 [error] 122#122: *7292 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:37 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.30.32.1:8123/service_worker.js", host: "mydomain.duckdns.org"
2022/07/16 01:27:38 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:27:38 [error] 122#122: *7296 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:38 [error] 122#122: *7298 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:39 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.30.32.1:8123/service_worker.js", host: "mydomain.duckdns.org"
2022/07/16 01:27:40 [error] 122#122: *7301 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:40 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:27:40 [error] 122#122: *7304 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:40 [error] 122#122: *7306 connect() failed (111: Connection refused) while connecting to upstream, client: 177.26.243.145, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:41 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.30.32.1:8123/service_worker.js", host: "mydomain.duckdns.org"
2022/07/16 01:27:42 [error] 122#122: *7309 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:42 [error] 122#122: *7311 connect() failed (111: Connection refused) while connecting to upstream, client: 177.26.243.145, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:43 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:27:43 [error] 122#122: *7314 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:44 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.30.32.1:8123/service_worker.js", host: "mydomain.duckdns.org"
2022/07/16 01:27:44 [error] 122#122: *7317 connect() failed (111: Connection refused) while connecting to upstream, client: 177.26.243.145, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:45 [error] 122#122: *7319 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:47 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:27:47 [error] 122#122: *7321 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:47 [error] 122#122: *7324 connect() failed (111: Connection refused) while connecting to upstream, client: 177.26.243.145, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:27:48 [error] 122#122: *7290 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.30.32.1:8123/service_worker.js", host: "mydomain.duckdns.org"
2022/07/16 01:27:49 [error] 122#122: *7327 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:08 [error] 122#122: *7697 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:09 [error] 122#122: *7699 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:09 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:09 [error] 122#122: *7701 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:09 [error] 122#122: *7704 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:10 [error] 122#122: *7706 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:10 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:10 [error] 122#122: *7709 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:11 [error] 122#122: *7711 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:12 [error] 122#122: *7713 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:12 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:12 [error] 122#122: *7716 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:14 [error] 122#122: *7718 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:15 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:16 [error] 122#122: *7720 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:16 [error] 122#122: *7723 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:18 [error] 122#122: *7725 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:20 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:20 [error] 122#122: *7727 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:20 [error] 122#122: *7730 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomainduckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:23 [error] 122#122: *7732 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:25 [error] 122#122: *7734 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"
2022/07/16 01:49:25 [error] 122#122: *7689 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "POST /auth/token HTTP/2.0", upstream: "http://172.30.32.1:8123/auth/token", host: "mydomain.duckdns.org", referrer: "https://mydomain.duckdns.org/config/system"
2022/07/16 01:49:25 [error] 122#122: *7737 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.31.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org"

Looks like you have instances of MYIP and mydomain on the asterisk side and the HA side so unless you’ve sanitised the logs you just haven’t set/ replaced some placeholder variables with specific values

Sorry, I didn’t make it clear. I edited the log so that my DuckDNS domain and my fixed ip are not published on the internet.

Apparently the required ports are redirected.

I have been using the SSL certificate created by DuckDNS addon (It includes support for Let’s Encrypt and automatically creates and renews my certificates).

I looked at the HA website. Unfortunately, whilst it might be open source, it is still written in a marketing style and I don’t think I’m going to get an adequate understanding of its role in this in an acceptable amount of time.

Therefore, if possible, can you reproduce the problem with just Asterisk, a router and standard SIP phones, with Asterisk configured directly? Alternatively, I think you need to provide quite a lot of information, in technical terms, of how HA relates to Asterisk and the other networking components. Also, I think we are going to need information on your network topology, as there are hints that NAT may be an issue.

If there is any way of testing without TLS, that would also make debugging much easier, as, for example, you might not properly understand how public key infrastructure works and may be pushing LetsEncrypt out of its envelope. You might also not really need a widely trusted signer.

Also, at the early stages, debug logging generally produces too much noise, but what is useful is the verbose output produced by “pjsip set logger on”

Yeah and thank you very much for your time. I sent a personal message to Jordy Kuhne(maintainer of this integration) about this topic. I think he can help more than me with some informations(technical terms) that i am not able to.

Of course. And installing Asterisk like this will be a learning curve for me. However, I don’t have standard SIP phones. Could I use it with Intercom + ATA and my smartphones (installing linphone) to test?

I really don’t know if it’s possible.

On which log level/channel can I listen to what matters?
loglevel

Typically one would uncomment the full log,

but, in this case, I’m suggesting you don’t turn up the debugging level, and leave it at zero: core set debug 0. I’m afraid I’d have to leave translating this into your GUI to others.

I can make and receive calls now. My SIP card was missing some config:

customs: []

And I added in pjsip.conf the follow lines:

local_net=192.168.31.0/24
local_net=127.0.0.1/32
external_media_address=mydomain.duckdns.org
external_signaling_address=mydomain.duckdns.org

Here’s my thanks to Jordy, @david551, and all the people at Discord (HA-SIP) and this forum. You guys are amazing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.