The identifier you are using in the CLI is not the identifier that can be used to query for it using the PJSIP_CONTACT dialplan function. It used to be, but some Contact URIs are quite large. You can use the PJSIP_AOR dialplan function to get the actual value. We should be able to allow both though so please file an issue on the issue tracker[1] for it.
1 Like