Handling sip messages in ARI app

Have Asterisk 16.11.1 with chan_sip

Trying to reseive message in ari application

sip.conf
[user]
type=friend
host=dynamic
secret=user
allow=alaw,ulaw,g729:20,text
context=user
message_context=user

extension.conf

[user]
exten => 100,1,NoOp(Incoming call to 100)
exten => 100,n,Stasis(my-app)
exten => 100,n,Hangup()

Im connecting to ari/events through postman, calling from microsip to 100, get StasisStart event, and when i trying to send sip message through microsip chat it sends, and asterisk answers 202 accepted, but not sending TextMessageReceived event

can you please explain me how to handle incall messages with ari application?

I changed dialplan for this:

[user]
exten => _X.,1,NoOp(Receiving a text)

it’s print “Receiving a text” into rasterisk log when i trying to call on 100

When i trying to send sip message to this extension asterisk answers 202 Accepted and there is no log entry in asterisk console

Why this work so stupid way?

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