AsterNET.ARI
AsterNET.ARI copied to clipboard
Can an app have duplicate Stasis App Names which behave like instances?
I have an application with 5 threads, Each thread establishes an connection to Asterisk with the same Stasis App Name. I assumed that each connection creates an "instance" of the stasis app name. However, only the 1 thread gets messages from Channels that have been placed in that app.
I've checked the Asterisk logging, and it appears as if the Stasis App gets overwritten each time, as it's sharing the name of an existing app.
If possible, could someone elaborate on why this happens? I would have expected all the threads subscribing to the same app name to get duplicate events.
Please advise if you require any further info.
Thank you Sue
No,
There is a one to one relationship between the name of the stasis application, and a websocket.