[SOLVED] Unable to Provision Digium phone with Asterisk 16 using DPMA/PJSIP

Hi,

I have been unsuccessful in provisioning a DIgum D60 phone from Asterisk 16 w/DPMA and PJSIP. After the first time the phone contacts the Asterisk box using an out-of-call MESSAGE, Asterisk responds with error “No matching endpoint found.” Hence the provisioning does not even happen.

If someone would be able to take a look at my config and offer suggestions, I would really appreciate it…

Specs:
Asterisk 16.0.1
res_digium_phone-16.0_3.4.9

CLI output:

<--- Received SIP request (1175 bytes) from UDP:10.10.73.249:5060 --->
MESSAGE sip:proxy@10.10.16.13 SIP/2.0
Via: SIP/2.0/UDP 10.10.73.249:5060;rport;branch=z9hG4bKPjhK2qudgZSoubWxPh9pay0wi5eq7tzaCO
Max-Forwards: 70
From: <sip:10.10.73.249>;tag=wfK9BcrbD6fjoVwrMLRpX.YUuoXoyZum
To: <sip:proxy@10.10.16.13>
Call-ID: paBOvQISWlliHEFQr1t8DAiCtVM58Lg1
CSeq: 11569 MESSAGE
Accept: text/plain, application/im-iscomposing+xml
User-Agent: Digium D60 2_7_0
X-Digium-User-Agent: Digium D60 2_7_0
X-Digium-AppServer-RequestType: Handshake
X-Digium-AppServer-MACAddress: 000FD30AC99D
X-Digium-Software-Version: 2_7_0
X-Digium-AppServer-ID: bootc_489243
X-Digium-AppServer-Message-Sequence: 0
Content-Type: text/plain
Content-Length:   500

-----BEGIN CERTIFICATE-----
MIICyzCCAjQCAVUwDQYJKoZIhvcNAQEFBQAwYDELMAkGA1UEBhMCVVMxCzAJBgNV
BAgTAkNBMRIwEAYDVQQHEwlTYW4gRGllZ28xFTATBgNVBAoTDERpZ2l1bSwgSW5j
LjEZMBcGA1UEAxMQRGlnaXVtIEFwcHNlcnZlcjAeFw0xODA3MjAxMzQ1MjVaFw00
ODA3MTIxMzQ1MjVaMEsxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEUMBIGA1UE
CgwLRGlnaXVtLCBJbmMxGTAXBgNVBAMMEERpZ2l1bSBBcHBzZXJ2ZXIwXDANBgkq
hkiG9w0BAQEFAANLADBIAkEA1UINvd9jh7mC/W0mKWNMSi9Sv1ERCSQsRcxGfRpo
YPj1vhziLnNPpM3WM6snVtbQloULGVA6GZdr0et2CCQNeQIDAQABo4HyMIHvMAkG
A1UdEwQCMAAwLgYJY
[Jan 17 02:32:23] NOTICE[21411]: res_pjsip/pjsip_distributor.c:659 log_failed_request: Request 'MESSAGE' from '<sip:10.10.73.249>' failed for '10.10.73.249:5060' (callid: paBOvQISWlliHEFQr1t8DAiCtVM58Lg1) - No matching endpoint found
<--- Transmitting SIP response (544 bytes) to UDP:10.10.73.249:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.73.249:5060;rport=5060;received=10.10.73.249;branch=z9hG4bKPjhK2qudgZSoubWxPh9pay0wi5eq7tzaCO
Call-ID: paBOvQISWlliHEFQr1t8DAiCtVM58Lg1
From: <sip:10.10.73.249>;tag=wfK9BcrbD6fjoVwrMLRpX.YUuoXoyZum
To: <sip:proxy@10.10.16.13>;tag=z9hG4bKPjhK2qudgZSoubWxPh9pay0wi5eq7tzaCO
CSeq: 11569 MESSAGE
WWW-Authenticate: Digest  realm="asterisk",nonce="1547710343/89373f540311499f7af0d81896cc72b3",opaque="29eee14b1ffda8b7",algorithm=md5,qop="auth"
Server: Asterisk PBX 16.0.1
Content-Length:  0


<--- Received SIP request (1175 bytes) from UDP:10.10.73.249:5060 --->
MESSAGE sip:proxy@10.10.16.13 SIP/2.0
Via: SIP/2.0/UDP 10.10.73.249:5060;rport;branch=z9hG4bKPjFlR5p5b6uPjS5FDAtoM7MgCuJVEwmWX4
Max-Forwards: 70
From: <sip:10.10.73.249>;tag=3aQzq6Ms-GKLxoTT.cEs9ZyMsYdYBJ0Y
To: <sip:proxy@10.10.16.13>
Call-ID: i3C0fT6Ot.RMf3aU7h.cqZl5zBhiY3IZ
CSeq: 40417 MESSAGE
Accept: text/plain, application/im-iscomposing+xml
User-Agent: Digium D60 2_7_0
X-Digium-User-Agent: Digium D60 2_7_0
X-Digium-AppServer-RequestType: Handshake
X-Digium-AppServer-MACAddress: 000FD30AC99D
X-Digium-Software-Version: 2_7_0
X-Digium-AppServer-ID: bootc_489243
X-Digium-AppServer-Message-Sequence: 1
Content-Type: text/plain
Content-Length:   500

IZIAYb4QgENBCEWHyJPcGVuU1NMIEdlbmVyYXRlZCBDZXJ0
aWZpY2F0ZSIwHQYDVR0OBBYEFDCfoJlSymTNVccxIfJLGQ08+RDQMIGSBgNVHSME
gYowgYeAFEOFzKnocn5pXGDUIYKIcTcvMt/1oWSkYjBgMQswCQYDVQQGEwJVUzEL
MAkGA1UECBMCQ0ExEjAQBgNVBAcTCVNhbiBEaWVnbzEVMBMGA1UEChMMRGlnaXVt
LCBJbmMuMRkwFwYDVQQDExBEaWdpdW0gQXBwc2VydmVyggkAyDf8KH4CG/owDQYJ
KoZIhvcNAQEFBQADgYEAQWu0vFC4gMPxSWkWF7ZdLjYzjJ81Z9RVJj1CmNMy9rcz
1l1+/7QSPzxajY94hhtl/hSQdbLAu0CwOZnVDFfppTcIE+ozQ6YfvjF/UuKREYgE
ZbB1NTtulaCFZzhMtz4WLU392s/FWokW3Pmon8HtngaeBgQ7AMAKHDN4aSFmmJ
<--- Received SIP request (744 bytes) from UDP:10.10.73.249:5060 --->
MESSAGE sip:proxy@10.10.16.13 SIP/2.0
Via: SIP/2.0/UDP 10.10.73.249:5060;rport;branch=z9hG4bKPjJ48khPdMx8A0HelXfRQlHoblSuc.zuxo
Max-Forwards: 70
From: <sip:10.10.73.249>;tag=eZ1.FsZcQK4.eUj4Oh4-OqfogZ71Dkpr
To: <sip:proxy@10.10.16.13>
Call-ID: N1U7cnXuDRYIS-sqZK9RkAzg91ZqDDdF
CSeq: 19278 MESSAGE
Accept: text/plain, application/im-iscomposing+xml
User-Agent: Digium D60 2_7_0
X-Digium-User-Agent: Digium D60 2_7_0
X-Digium-AppServer-RequestType: Handshake
X-Digium-AppServer-MACAddress: 000FD30AC99D
X-Digium-Software-Version: 2_7_0
X-Digium-AppServer-ID: bootc_489243
X-Digium-AppServer-Message-Sequence: 2
X-Digium-AppServer-Message-Finished: 1
Content-Type: text/plain
Content-Length:    29

M=
-----END CERTIFICATE-----

[Jan 17 02:32:23] NOTICE[21411]: res_pjsip/pjsip_distributor.c:659 log_failed_request: Request 'MESSAGE' from '<sip:10.10.73.249>' failed for '10.10.73.249:5060' (callid: i3C0fT6Ot.RMf3aU7h.cqZl5zBhiY3IZ) - No matching endpoint found
[Jan 17 02:32:23] NOTICE[21412]: res_pjsip/pjsip_distributor.c:659 log_failed_request: Request 'MESSAGE' from '<sip:10.10.73.249>' failed for '10.10.73.249:5060' (callid: N1U7cnXuDRYIS-sqZK9RkAzg91ZqDDdF) - No matching endpoint found
<--- Transmitting SIP response (544 bytes) to UDP:10.10.73.249:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.73.249:5060;rport=5060;received=10.10.73.249;branch=z9hG4bKPjFlR5p5b6uPjS5FDAtoM7MgCuJVEwmWX4
Call-ID: i3C0fT6Ot.RMf3aU7h.cqZl5zBhiY3IZ
From: <sip:10.10.73.249>;tag=3aQzq6Ms-GKLxoTT.cEs9ZyMsYdYBJ0Y
To: <sip:proxy@10.10.16.13>;tag=z9hG4bKPjFlR5p5b6uPjS5FDAtoM7MgCuJVEwmWX4
CSeq: 40417 MESSAGE
WWW-Authenticate: Digest  realm="asterisk",nonce="1547710343/89373f540311499f7af0d81896cc72b3",opaque="59b2d94275ed1b5a",algorithm=md5,qop="auth"
Server: Asterisk PBX 16.0.1
Content-Length:  0

pjsip.conf

[global]
type=global
default_outbound_endpoint=dpma_endpoint

[dpma_endpoint]
type=endpoint

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
local_net=10.10.0.0/16

[101]
type=aor
max_contacts=1

[101]
type=auth
auth_type=userpass
password=DJw2jtgsrjD
username=101

[101]
type=endpoint
aors=101
auth=101
context=users
disallow=all
allow=ulaw
direct_media=yes
trust_id_inbound=yes
send_pai=yes
transport=transport-udp

res_digium_phone.conf

[general]
server_uuid=phone-server
userlist_auth=disabled
config_auth=mac
mdns_address=10.10.16.13
mdns_port=5060
mdns_transport=udp
service_name=test Digium Phones Config Server
service_discovery_enabled=yes
file_directory=/var/lib/asterisk/digium_phones


; ---- CONFIGURING NETWORKS ----
[network-default]
type=network
alias=US Network
cidr=0.0.0.0/0
registration_address=10.10.16.13
registration_port=5060
transport=udp
file_url_prefix=http://10.10.16.13/digium_phones_files
ntp_server=0.digium.pool.ntp.org
network_vlan_discovery_mode=MANUAL
sip_qos=3
rtp_qos=5
pc_qos=2
sip_dscp=24
rtp_dscp=46
udp_ka_interval=60

; ---- CONFIGURING PHONES ----
[phone](!)
type=phone
network=network-default
dim_backlight=yes
backlight_timeout=30
backlight_dim_level=2
active_locale=en_US


[line](!)
type=line
digit_map=911T|9911|*123|*xxxx|[0-6]xxx|*xx*|[89]0T|[89][2-9]xxxxxx|[89]1[2-9]xx[2-9]xxxxxx|[89]011xx.T

[101phone](phone)
timezone=America/New_York
mac=000fd30ac99d
line=101
full_name=Phone User

[101](line)
line_label=101

The configuration is probably fine. I have loaded it, with modifications only to IP addresses and networks. Did you fail to load res_pjsip_endpoint_identifier_dpma.so or res_pjsip_pidf_digium_body_supplement.so or res_digium_phone.so?

Thank you so much for helping me out! Your question sent me on the correct path to find that res_pjsip_endpoint_identifier_dpma.so was missing in modules directory. After adding that in, now everything is working.