Is action ExtensionState working with PJSIP?

hello everyone
I migrated my asterisk from SIP to PJSIP (asterisk 13.15.0-rc3), everything is working well now but API ExtensionState.

pjsip.conf:
[8887]
type=endpoint
aors=8887
auth=8887-auth
allow=ulaw,alaw,gsm,g726
context=from-webcall
callerid=device <8887>
dtmf_mode=rfc4733
use_avpf=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
rtp_symmetric=yes
rewrite_contact=yes

[8887]
type=aor
mailboxes=
max_contacts=5
remove_existing=no
qualify_frequency=60

[8887-auth]
type=auth
auth_type=userpass
password=123456
username=8887

in Dialplan:
[my-context]
exten => _XXXX,hint,PJSIP/${EXTEN}

AMI script:
fputs($oSocket, “Action: login\r\n”);
fputs($oSocket, “Events: Off\r\n”);
fputs($oSocket, “Username: $strUser\r\n”);
fputs($oSocket, “Secret: $strSecret\r\n\r\n”);
fputs($oSocket, “Action: ExtensionState\r\n”);
fputs($oSocket, “Context: my-context\r\n”);
fputs($oSocket, “Exten: 8887\r\n”);
fputs($oSocket, “ActionID: 1\r\n\r\n”);
fputs($oSocket, “Action: Logoff\r\n\r\n”);

I got response with Status code: 4, no matter my extension is registered or not.

"Asterisk Call Manager/2.10.0
Response: Success
Message: Authentication accepted
Response: Success
ActionID: 1
Message: Extension Status
Exten: 8887
Context: my-context
Hint: SIP/8887,CustomPresence:8887
Status: 4
StatusText: Unavailable
Response: Goodbye
Message: Thanks for all the fish. "

in response message, i see Hint is always SIP/8887. Should it be PJSIP/8887 ? is ExtensionState working with PJSIP or just for SIP ?

Thanks in advance
Vinh Phan

Yes, it works fine with PJSIP. I don’t believe that the context you have provided is the one actually being read and used by your Asterisk. What does the output of “dialplan show my-context” show?

sorry, it’s my mistake. API was connecting to wrong server. it works perfectly now.
Thanks for your response.