Can't receive TextMessageReceived event in ARI with Asterisk 22.3.0

Hi everyone,

I’m using Asterisk 22.3.0 with ARI and I’m facing an issue where I don’t receive the TextMessageReceived event in my Stasis application.

Initially, I was using a Go client to interact with ARI, but I never received the TextMessageReceived event.
To eliminate the possibility of a client-side issue, I tried using the ARI API directly, but the behavior remains the same — the event does not reach my application.

My Stasis app subscribes to all events using susbcribeAll=true and also subscribes specifically to the endpoint from which I expect to receive the messages.
I attempted to subscribe to the endpoint in multiple ways, including:
endpoint:{tech}/{resource} (e.g., endpoint:PJSIP/7000)
endpoint:{tech} (e.g., endpoint:PJSIP)
…but none of them worked — the TextMessageReceived event is never triggered.

When I send a SIP MESSAGE (in-dialog), Asterisk replies with 202 Accepted, and I can see the message logged on the Asterisk console.
However, no TextMessageReceived event is sent to my ARI app.

On the other hand, when I send a SIP INFO with DTMF, I do receive the ChannelDtmfReceived event, so I know that event delivery to the app is working in general.

PJSIP configuration (excerpt)

[7000]
type = endpoint
context = default
disallow = all
allow = ulaw,alaw
auth = 7000-auth
aors = 7000

[7000-auth]
type = auth
auth_type = userpass
password = 123qwe
username = 7000

[7000]
type = aor
max_contacts = 10

Scenario (log attached)

  1. Endpoint 7000 registers.
  2. Endpoint makes a call.
  3. Stasis app answers the call.
  4. App subscribes to the endpoint.
  5. Endpoint sends SIP INFO (DTMF) → event is received as expected.
  6. Endpoint sends SIP MESSAGE → Asterisk replies with 202, logs the message, but no event reaches ARI.

Is there any additional configuration or subscription I’m missing in my Stasis application to receive TextMessageReceived?

Any insights would be very appreciated!

Thanks in advance.
asterisk_console.txt (145.2 KB)

The event I believe is for out of dialog messages, not in dialog. In dialog messages just flow through to whatever is bridged to the channel, or go nowhere if not bridged.