Hello Asterisk Community,
I am currently working with Asterisk’s ARI to send messages to specific endpoints, but I am encountering an issue with the request format. Despite using the following URL format to send messages:
https://serverDomain/ari/endpoints/sendMessage?to=pjsip:sip:endpoint1@host&from=pjsip:sip:endpoint2@host&body=testMessage
I receive the following error response:
{
"message": "Endpoint not found"
}
However, when I check with pjsip show endpoints in the Asterisk CLI, the endpoint in question does indeed exist. I am managing endpoints and AORs using the database, following the guidelines from Setting up PJSIP Realtime.
Could anyone help clarify why this error might be occurring or if there is a specific format or setting I might be missing to successfully send messages to endpoints via ARI?
Thank you for your assistance!