Asterisk - ARI - multiple applications connected to asterisk on the same stasis app

Hello,
I have a scenario where i have multiple server applications i developed connecting to asterisk 13.
When the second server connects to it, it seems to be replacing the communication and the first server stops working.

  1. When first server connects on app “agent-request”

Activating Stasis app ‘agent-request’
== WebSocket connection from ‘192.168.127.219:39654’ for protocol ‘’ accepted using version '13’
Activating Stasis app ‘agent-request’

  1. When second server connects on the same app “agent-request”

Channel PJSIP/clickproxytrunk-0000043a joined ‘simple_bridge’ stasis-bridge <70>
Replacing Stasis app ‘agent-request’
== WebSocket connection from ‘192.168.127.22:49416’ for protocol ‘’ accepted using version '13’
Activating Stasis app ‘agent-request’

As the CLI displays the message “Replacing Stasis app ‘agent-request’”, it gives me a hint that the first server won’t receive any websocket messages anymore.

Can you please explain me what should I do in order to have multiple servers communicating with asterisk 13 and sending/receiving messages independently ?

Well, after discussing that issue here in my company, we understand this is the expected behavior. When the second server connected, asterisk handled the control of that stasis to it. There is nothing we can do about it.
So we will change our testing process here to have one application server for each asterisk installation.

Do you agree with that?

That is how it works, yes. There is no capacity inside of Asterisk to have multiple Stasis applications connected using the same name.

1 Like