Is the documentation correct for ARI ContactStatusChange

It mentions Endpoint property. We receive EndpointName property and it’s a string. This is not listed in the documentation for Asterisk 20 or 22.

This is not an Endpoint Asterisk REST Data Models - Asterisk Documentation

{
“id”: “ContactStatusChange”,
“description”: “The state of a contact on an endpoint has changed.”,
“properties”: {
“endpoint”: {
** “required”: true,**
** “type”: “Endpoint”**
** },**
“contact_info”: {
“required”: true,
“type”: “ContactInfo”
}
}
}

What do you actually receive in the event?

Looking at the code it appears to be correct.

I just realized it’s actually a ContactStatus not a ContactStatusChange.

I’m not seeing any documentation for it. Perhaps that’s what I’m missing?
Two sample events from status changes.

Event: ContactStatus
Privilege: system,all
URI: sip:9mttanfu@x.x.x.x:49417;transport=ws;x-ast-orig-host=397ctgq20os
2.invalid:0
ContactStatus: NonQualified
AOR: myaor
EndpointName: myendpoint
RoundtripUsec: 0

Event: ContactStatus
Privilege: system,all
URI: sip:9mttanfu@192.168.32.134:49417;transport=ws;x-ast-orig-host=397ctgq20os
2.invalid:0
ContactStatus: Reachable
AOR: myaor
EndpointName: myendpoint
RoundtripUsec: 4210

That’s AMI[1].

[1] ContactStatus - Asterisk Documentation

Thanks Joshua.

I need to add some logging in my ARI application. I’m definitely missing something.

I tracked down my stupid mistake. I was searching for NotQualified (with a t), but it’s NonQualified.
Old eyes can’t read sometimes.