No ContactStatus AMI event when full_backend_cache=no

Thank you for your comment.

Before adding memory_cache settings like this:

[res_pjsip]
endpoint=config,pjsip.conf,criteria=type=endpoint
endpoint=realtime,ps_endpoints
auth=config,pjsip.conf,criteria=type=auth
auth=realtime,ps_auths
aor=config,pjsip.conf,criteria=type=aor
aor=realtime,ps_aors
contact=realtime,ps_contacts

I received ContactStatus AMI events
On registering:

Event: ContactStatus
Privilege: system,all
URI: sip:1003316@192.168.1.152:1183;transport=TLS;ob
ContactStatus: NonQualified
AOR: 1003316
EndpointName: 1003316
RoundtripUsec: 0

On unregistering:

Event: ContactStatus
Privilege: system,all
URI: sip:1003316@192.168.1.152:1183;transport=TLS;ob
ContactStatus: Removed
AOR: 1003316
EndpointName: 1003316
RoundtripUsec: 0

The aor record is below:

mysql> select * from ps_aors where id='1003316' \G
*************************** 1. row ***************************
                  id: 1003316
             contact: NULL
  default_expiration: NULL
           mailboxes: NULL
        max_contacts: 1
  minimum_expiration: NULL
     remove_existing: yes
   qualify_frequency: NULL
authenticate_qualify: NULL
  maximum_expiration: NULL
      outbound_proxy: NULL
        support_path: NULL
     qualify_timeout: NULL
 voicemail_extension: NULL

I reffered this topic and set qualify_frequency but the situation didn’t change.