Hello, I am trying to handle SIP MESSAGE in ARI. But no success, can you, please assist me?
Asterisk receives MESSAGE, answers 202 OK, and sends event StasisStart instead of TextMessageReceived. There are no endpoints. I just want to receive MESSAGE and get body in my application
my python aioari application:
loop = asyncio.get_event_loop() client = loop.run_until_complete(aioari.connect(ast_url, ast_username, ast_password, loop=loop)) client.on_event("TextMessageReceived", on_message) client.on_channel_event('StasisStart', on_start) client.on_channel_event('StasisEnd', on_end)