Registered SIP endpoint does not show as available

I am making a simple SIP client, that can now successfully register with Asterisk as user 250. After sending the REGISTER message (with authorization) I receive a 200 OK from Asterisk, so that means that my endpoint should be available within Asterisk/PJSIP.

But, issuing command “pjsip show endpoint 250” shows:

   Endpoint:  250/250                                              Unavailable   0 of inf
    OutAuth:  250-auth/250
     InAuth:  250-auth/250
        Aor:  250
                                            1

Why does Asterisk not show the endpoint as registered/available (there should be a contact line with the 250/sip:250@myip:5060 " and “avail” above. ???

Looking at the PJSIP debug output I see that Asterisk sent an “OPTIONS” request to 250, and a “NOTIFY” request to my 250 client right after it registered. I thought I could ignore those - but maybe not? Does my client have to respond to OPTIONS in order to be shown as available in PJSIP?

Yes. If you have qualify enabled, then you must respond to OPTIONS or else Asterisk will consider it unavailable. You should also actually show the SIP trace, otherwise we are relying on your analysis of things.

Even if you don’t have qualify enabled, you still need to respond to OPTIONS, even if the response is Method not Allowed. That’s a requirement of SIP!