I want to use Asterisk REST Interface (ARI) with FreePBX :
wiki.asterisk.org/wiki/display/AST/Getting+Started+with+ARI
In this tutorial, we have to do this :
3) Create a dialplan extension for your Stasis application. Here, we’re choosing extension 1000 in context default - if your SIP phone is configured for a different context, adjust accordingly.
extensions.conf
[default]
exten => 1000,1,NoOp()
same => n,Answer()
same => n,Stasis(hello-world)
same => n,Hangup()
In FreePBX, we can’t edit the file extensions.conf directly (“Do NOT edit this file as it is auto-generated by FreePBX.” in the header of this file).
So, I have to add my dialplan in extensions_custom.conf
But I don’t know, what I have to write, to add Statis application for all incoming calls like in this tutorial.
When i try to connect to Asterisk using wscat:
$ wscat -c “ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=hello-world”
connected (press CTRL+C to quit)
I CAN’T see this message:
== WebSocket connection from ‘127.0.0.1:37872’ for protocol ‘’ accepted using version ‘13’
Creating Stasis app ‘hello-world’
How I can do this ?
Someone here has used ARI (Asterisk REST Interface) with FreePBX ?
Thank you.