Two different calls using one ARI app at the same time

What occurs when two users utilize the same ARI (Asterisk REST Interface) application? I have an extension, 1000, set up to initiate a call to Stasis(test). However, only one instance of test.js is currently active in the background. Can it manage multiple incoming calls? If so, what are the constraints or limitations?

The ARI application receives a StasisStart event for each channel that enters it, and then further events relating to those channels. It’s then up to the ARI application to handle those channels as it sees fit. I’m not sure what you mean by constraints or limitations. This is a fundamental way that ARI works.

If there are three or four inbound call using same ARI application at the same time, will the application slower or crash?

Let say Bob and Amy call 1000 at the same time, they should using the same test.js? So the application need to handle many users at the same time?

exten => 1000,1,Answer()
same => n,Stasis(test)
same => n,Hangup()

The Asterisk side won’t. They all use the same connected test.js, and it has to handle multiple channels.

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