Giter Site home page Giter Site logo

go-ari-proxy's People

Contributors

blitzrage avatar danjenkins avatar leifmadsen avatar marquis42 avatar skrusty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-ari-proxy's Issues

Make the config location configurable

I'd like to be able to pass into the go-ari-proxy command the location of the config instead of relying on it being in the same directory as where you initialise the command from

ari_body: why are all double quotes escaped?

When comparing events from asterisk and go-ari-proxy, one can see that the proxy formats the asterisk event as a string, which makes deserializing pretty hard:

asterisk event:

{"type":"StasisStart","timestamp":"2017-11-30T14:37:15.796+0100","application":"foo","asterisk_id":"aa:00:00:36:fa:ca","channel":{"id":"1512049035.123","dialplan":{"context":"default","exten":"1000","priority":2},"name":"PJSIP/1001-00000061","connected":{"name":"","number":""},"state":"Ring","creationtime":"2017-11-30T14:37:15.794+0100","caller":{"name":"","number":"1001"},"accountcode":"","language":"en"},"args":[]}

go-ari-proxy:

{"server_id":"good_server","timestamp":"2017-11-30T14:37:15.796635341+01:00","type":"StasisStart","ari_body":"{\"type\":\"StasisStart\",\"timestamp\":\"2017-11-30T14:37:15.796+0100\",\"application\":\"foo\",\"asterisk_id\":\"aa:00:00:36:fa:ca\",\"channel\":{\"id\":\"1512049035.123\",\"dialplan\":{\"context\":\"default\",\"exten\":\"1000\",\"priority\":2},\"name\":\"PJSIP/1001-00000061\",\"connected\":{\"name\":\"\",\"number\":\"\"},\"state\":\"Ring\",\"creationtime\":\"2017-11-30T14:37:15.794+0100\",\"caller\":{\"name\":\"\",\"number\":\"1001\"},\"accountcode\":\"\",\"language\":\"en\"},\"args\":[]}"}

Is there a reason why this is so or is this merely a bug?

Any idea on when/if setup channel might become bidirectional?

We have a use case that works with direct http-ari: creating a channel with ari.channels.create(). StasisStart would not have been sent at the time of this create, so no channel is available to talk on. Need to be able to initiate setup from the proxy side.

go-ari-proxy and webrtc

I'm looking for a way to setup WebRTC in a cloud box (16.1.1) already running go-ari-proxy.
TLS is strongly recommended -> https://wiki.asterisk.org/wiki/display/AST/WebRTC.
So I guess I will need TLS inside go-ari-library.
In your opinion adding TLS to the library how should impact on go-ari-proxy?
I have setup a sort of ARI Bridges Engine thanks to go-ari-library/-proxy.
It's a quite dumb conference application, driven by one external client application: my early stage ARI application works well while operating some business logics around with very little load.
Thx.
ciao

Please provide example of RabbitMQ message for command syntax

I am trying to use a simple rabbitMQ consumer and producer for interacting with the ARI proxy and cannot seem to get the syntax correct for sending commands. Can you please update the readme to include an example of how the json should be formatted for the message to be processed. Right now I
I am only having this experience regardless of what I send in.

DEBUG: 2017/12/13 23:40:22 go-ari-proxy.go:332: jsonCommand is {"url":"/bridges/EPLX6NMHBBRFI6BARID6KOOAG4XSLKG/record", "body": {"name":"EPLX6NMHBBRFI6BARID6KOOAG4XSLKG", "format":""}}
DEBUG: 2017/12/13 23:40:22 go-ari-proxy.go:346: fullURL is http://<hidden>:8088/ari/bridges/EPLX6NMHBBRFI6BARID6KOOAG4XSLKG/record?api_key=<hidden>:<hidden>
DEBUG: 2017/12/13 23:40:22 go-ari-proxy.go:352: Response body is {"message":"Invalid method"}
DEBUG: 2017/12/13 23:40:22 go-ari-proxy.go:366: sendJSON is {"unique_id":"","status_code":405,"response_body":"{\"message\":\"Invalid method\"}"}

No documentation on config file

Just getting up to speed and noticed theres no information on the config file needed to make the proxy work

Looking to fix this myself once I've looked at the source code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.