I have an application that places calls using ARI
The application is deployed to 2 or more boxes that connect to the same Asterisk server
websocket.Connect( "/ari/events?api_key="+user+":"+password+"&app="+app_instance+"&subscribeAll=false"
and subscribe to receive messages like this:
"/ari/applications/"+app_instance+"/subscription?eventSource=channel:,bridge:"
where app_instance is different for every box running my application. (using the machine name)
However, both boxes running the app are getting channel and bridge messages meant for only box.
How can I register so that messages for each app_instance are sent to only one box? Do I need two asterisk boxes in this case?