entone
ExARI: An Elixir Library for interfacing with Asterisk the Open Source Communications Software using ARI
ExARI
https://github.com/CityBaseInc/ex_ari
An Elixir library for interfacing with Asterisk using the ARI protocol.
Be sure to check out the example application GitHub - CityBaseInc/ex_ari_example: Example application showing real world usage of the ex_ari library to control an Asterisks server · GitHub
The ARI protocol is a robust interface for controlling Asterisk and reacting to Asterisk events. It has been thoroughly tested with Asterisk versions 15 and 16.
ARI stands for Asterisk REST Interface. Through the REST interface it is possible to control just about every aspect of an Asterisk server. ARI also provides a Websocket interface for consuming events from the Asterisk Server. This library has full support for both the REST and Websocket protocols.
If you’re not to familiar with Asterisk, there’s an example repo that will get you up and running with a custom Asterisk IVR in a few minutes, GitHub - CityBaseInc/ex_ari_example: Example application showing real world usage of the ex_ari library to control an Asterisks server · GitHub .
The documentation is pretty thorough, but it definitely helps to understand Asterisk and ARI.
Check the docs here, ARI — ARI v0.1.2
and on hex.pm ex_ari | Hex
Brought to you by CityBase
Trending in Announcing
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #performance
- #security










Most Liked
trarbr
I haven’t even looked at the code yet but I know I am going to love this
trarbr
So I wanted to try the ex_ari_example out last night, but I had some trouble with the Asterisk part. I haven’t played with Asterisk before so I’m not really sure what’s going wrong.
docker run ...command uses--net host, which doesn’t work on Mac unfortunately. So I ran it like this instead:docker run -p 8088:8088 -p 8089:8089 -p 5062:5062/tcp -p 5062:5062/udp -p 10000-10099:10000-10099/udp --name asterisk -v $PWD/asterisk_local_config/pjsip.conf:/etc/asterisk/pjsip.conf ex-ari-asterisk(I googled around a bit and guessed at the ports). After this, I could start the project withiex -S mixand it connected!Request Timeout (code: 408)and there is nothing in the Asterisk logs.--net host, and running it on a bridged network (VM had IP 192.168.33.10). I changed all the references to 127.0.0.1 to 192.168.33.10 indev.env, so the Elixir project works fine. But Zoiper gives me a new error now. Instead ofRequest Timeout (code: 408)error, I now getUnauthorized (code: 401)and I see this in the Asterisk logs:I wonder if I am using the wrong username/password?
lawik
Super curious about this stuff. I don’t have the time anytime soon to dive into Asterisk but damn if I don’t want to
Considering the Erlang/OTP telecommunications heritage, are there previous solutions to work with Asterisk around, do you know?
Cool that you are doing and releasing this!
Last Post!
odix67
ok, thx, I’ll give it a try, but give me a few days, a little bit busy at the moment …