S
S
SearchForAnswer1232019-10-08 11:58:51
Asterisk
SearchForAnswer123, 2019-10-08 11:58:51

Is it possible to call the AddQueueMember command through Rest Asterisk?

Faced with the task of sending a list of employees to the call queue on the Asterisk side.
ari itself is configured and launched according to this instruction: https://asterisk-pbx.ru/wiki/asterisk/ari/ari_start
5d9c4d22ad8a6528414696.png
Successfully tested both curl and the Asterisk developer resource:
ari.asterisk.org
Basic asterisk commands to understand how it is possible to implement did not lead


Asterisk
Bridges
Channels
Endpoints
Device states
Events
Mailboxes
Playbacks
Recordings
Sounds

As I understand the rest is limited, but it can be extended using Stasis.

ARI does not have access to any objects, only those it controls. This means you can't reply to a channel that isn't logged into the Stasis app. However, the channel list will return all active channels, not just those logged into Stasis
. Only those operations are available that are defined on the Asterisk side (which is understandable, since Asterisk defines all REST operations).
The Stasis app is only available when a client connection is established. If there is no connection on a WebSocket with the name of this application, Stasis will throw an error and move on through the dialplan.

Actually the question itself: Is it possible to call the AddQueueMember command from Rest? And how it should be implemented.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Yudakov, 2019-10-08
@SearchForAnswer123

No. But you can solve this problem using Asterisk Manager Interface (AMI):
QueueAdd
5d9c705e747be104942268.jpeg

S
SearchForAnswer123, 2019-10-09
@SearchForAnswer123

I solved the problem by connecting the PAMI library:
https://github.com/marcelog/PAMI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question