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?