Hey Guys,
I am fairly new to Asterisk 13 and am working on a project to dynamically update a queue. Because the queue will change each day, I want to find a way to do this with the API instead of the CLI.
From what I have found this can be achieved by the following:
- Create an exten in extensions.conf: exten => 7777,1,AddQueueMember(support, SIP/18)
- Add this extension in the sip.conf.
- Use the post request: POST https://{IP/Servername}:{Port}/ari/channels?endpoint=“SIP/7777”
Im able to use this application with console dial 7777@context, but if I try to use this post request in the API, I get the following message: {“message”: “Application or extension must be specified”}
It seems to me that there is something wrong in the configuration of the endpoint.
If I add an extension and context parameter to the post request, I receive an error:
{“error”: “Allocation failed”}
What is missing or am I doing something wrong?
Thanks in advance