Trunk > pjsip Settings > Advanced > Match Inbound Authentication is set to “Default”.
Settings > Asterisk SIP settings > SIP Settings [chan_pjsip] > Endpoint Identifier Order is “ip”, “username”, “anonymous”, “header” and “auth_username”
Here it goes:
freepbx*CLI> pjsip show endpoints
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
==========================================================================================
Endpoint: 106/106 Not in use 0 of inf
InAuth: 106-auth/106
Aor: 106 1
Contact: 106/sip:106@192.168.10.115:5060 5a14e859dc Avail 7.122
Endpoint: anonymous Unavailable 0 of inf
Endpoint: dpma_endpoint Unavailable 0 of inf
Endpoint: pstn Not in use 0 of inf
OutAuth: pstn/pstn
Aor: pstn 1
Contact: pstn/sip:pstn@192.168.10.3:5060 5ee615f4ae Avail 14.745
Transport: 0.0.0.0-udp udp 3 96 0.0.0.0:5060
Objects found: 4
And here is the SPA’s Line 1 (configured to extension 102 - chan_sip):
freepbx*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
102/102 192.168.10.3 D Yes Yes A 5160 OK (9 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
Thanks.