Its possible to create an object on sorcery to create Queues in realtime?

I have an demand to create an API to manage some objects in realtime like queues, pickup groups, pjsip extensions, etc. With pjsip objects I have an successfully expierience, but I’m wondering if tha same is possible with another modules like app_queue, with this configuration:

[res_pjsip] ; Realtime PJSIP configuration wizard



When I try to populate the queues table, I receive the message bellow:

  "message": "configClass 'app_queue' not found"
  • Request:
curl --request PUT \
  --url http://localhost:8088/a2feff32/ari/asterisk/config/dynamic/app_queue/queues/200 \
  --header 'Authorization: Basic YXN0ZXJpc2s6YXN0ZXJpc2s=' \
  --header 'Content-Type: application/json' \
  --data '{
	"fields": [
			"attribute": "name",
			"value": "suporte"
			"attribute": "context",
			"value": "default"

Anyone knows if this is possible?

No, app_queue does not support that functionality. It only supports normal realtime usage and configuration files.

Thankyou for reply.
Exists any other method to manage queues and other realtime objects like that throught ARI API (CRUD), or the recommendation is to create my own API to manage this database items?

ARI provides no mechanism for app_queue manipulation. You’d have to do something yourself.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.