Hi there,
At the company I work for (https://www.wave.com/en/) we run our support call center on Asterisk’s queue application. I’d like to give our backend the ability to pause/unpause queue members, but more generally, I’m interested in learning how to imperatively trigger some dialplan from our backend (basically RPC-style). I have a working prototype using ARI, but I’m just getting started learning Asterisk and my approach feels a little weird, so I’d love to get some feedback!
The way I’ve done things is to POST to the “/channels” API (https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Channels+REST+API) with an “endpoint” argument of the form “Local/extension@context”. This does indeed run context
's extension
, but I also have to pass an “app” argument (or a “context” + “extension” etc.), or else I get a 400 response due to “Invalid parameters for originating a channel”. I’m currently just passing “NoOp” as my app argument, which seems to work, but, I don’t know, it feels hacky.
Is there a different way I could/should be thinking about this?
Thanks!