Skip to content

Commit

Permalink
Merge pull request #2 from PolyAI-LDN/polyaify
Browse files Browse the repository at this point in the history
Polyaify
  • Loading branch information
razvankusz authored Oct 23, 2023
2 parents 7221d38 + 99ba69a commit 2a01145
Show file tree
Hide file tree
Showing 68 changed files with 459 additions and 1,870 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contributors:
write_mailmap > CONTRIBUTORS

protobuf: ari.proto
protoc -I. -I./vendor -I$(GOPATH)/src --gogofast_out=Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc:. ari.proto
protoc --go_out=. ari.proto

dep:
go mod tidy
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ari - Golang Asterisk Rest Interface (ARI) library
[![Build Status](https://travis-ci.org/CyCoreSystems/ari.png)](https://travis-ci.org/CyCoreSystems/ari) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/CyCoreSystems/ari/v6)
[![Build Status](https://travis-ci.org/PolyAI-LDN/ari.png)](https://travis-ci.org/PolyAI-LDN/ari) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/PolyAI-LDN/ari/v6)

This library allows you to easily access ARI in go applications. The Asterisk Rest Interface (https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=29395573) is an asynchronous API which allows you to access basic Asterisk objects for custom communications applications.

Expand All @@ -17,11 +17,11 @@ Version `5.x.x` is the current version.

There is also a NATS-based `ari-proxy` which is designed to work with this
client library. It can be found at
[CyCoreSystems/ari-proxy](https://github.com/CyCoreSystems/ari-proxy).
[PolyAI-LDN/ari-proxy](https://github.com/PolyAI-LDN/ari-proxy).

Install with:
```sh
go get github.com/CyCoreSystems/ari/v6
go get github.com/PolyAI-LDN/ari/v6
```

# Features
Expand Down Expand Up @@ -194,15 +194,15 @@ There are a number of extensions which wrap the lower-level operations in
higher-level ones, making it easier to perform many common tasks.


### AudioURI [![](https://godoc.org/github.com/CyCoreSystems/ari?status.svg)](http://godoc.org/github.com/CyCoreSystems/ari/ext/audiouri)
### AudioURI [![](https://godoc.org/github.com/PolyAI-LDN/ari?status.svg)](http://godoc.org/github.com/PolyAI-LDN/ari/ext/audiouri)

Constructing Asterisk audio playback URIs can be a bit tedious, particularly for handling
certain edge cases in digits and for constructing dates.

The `audiouri` package provides a number of routines to make the construction of
these URIs simpler.

### Bridgemon [![](https://godoc.org/github.com/CyCoreSystems/ari?status.svg)](http://godoc.org/github.com/CyCoreSystems/ari/ext/bridgemon)
### Bridgemon [![](https://godoc.org/github.com/PolyAI-LDN/ari?status.svg)](http://godoc.org/github.com/PolyAI-LDN/ari/ext/bridgemon)

Monitoring a bridge for events and data updates is not difficult, but it
involves a lot of code and often makes several wasteful calls to obtain bridge
Expand All @@ -215,7 +215,7 @@ retrieve the updated data without multiple requests.
It also shuts itself down automatically when the bridge it is monitoring is
destroyed.

### Play [![](https://godoc.org/github.com/CyCoreSystems/ari?status.svg)](http://godoc.org/github.com/CyCoreSystems/ari/ext/play)
### Play [![](https://godoc.org/github.com/PolyAI-LDN/ari?status.svg)](http://godoc.org/github.com/PolyAI-LDN/ari/ext/play)

Playback of media and waiting for (DTMF) responses therefrom is an incredibly
common task in telephony. ARI provides many tools to perform these types of
Expand All @@ -233,7 +233,7 @@ The execution of a `Play` is configured by any number of option functions, which
supply structured modifiers for the behaviour of the playback. You can even
supply your own Match function for highly-customized matching.

### Record [![](https://godoc.org/github.com/CyCoreSystems/ari?status.svg)](http://godoc.org/github.com/CyCoreSystems/ari/ext/record)
### Record [![](https://godoc.org/github.com/PolyAI-LDN/ari?status.svg)](http://godoc.org/github.com/PolyAI-LDN/ari/ext/record)

Making recordings is another complicated but common task for ARI applications.
The `ext/record`, we provide a simple wrapper which facilitates many common
Expand All @@ -248,7 +248,7 @@ Features include:

# Documentation and Examples

Go documentation is available at https://godoc.org/github.com/CyCoreSystems/ari
Go documentation is available at https://godoc.org/github.com/PolyAI-LDN/ari

Examples for helloworld, play, script, bridge, and record are available. Set your environment variables as described above (at minimum, `ARI_USERNAME` and `ARI_PASSWORD`) and run:

Expand Down
8 changes: 4 additions & 4 deletions _examples/bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"github.com/rotisserie/eris"
"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6"
"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/CyCoreSystems/ari/v6/ext/play"
"github.com/CyCoreSystems/ari/v6/rid"
"github.com/PolyAI-LDN/ari/v6"
"github.com/PolyAI-LDN/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6/ext/play"
"github.com/PolyAI-LDN/ari/v6/rid"
)

var ariApp = "test"
Expand Down
2 changes: 1 addition & 1 deletion _examples/helloworld/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6/client/native"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/play/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6"
"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/CyCoreSystems/ari/v6/ext/play"
"github.com/PolyAI-LDN/ari/v6"
"github.com/PolyAI-LDN/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6/ext/play"
)

var log = slog.New(slog.NewTextHandler(os.Stderr, nil))
Expand Down
6 changes: 3 additions & 3 deletions _examples/record/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6"
"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/CyCoreSystems/ari/v6/ext/record"
"github.com/PolyAI-LDN/ari/v6"
"github.com/PolyAI-LDN/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6/ext/record"
)

var log = slog.New(slog.NewTextHandler(os.Stderr, nil))
Expand Down
4 changes: 2 additions & 2 deletions _examples/stasisStart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6"
"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6"
"github.com/PolyAI-LDN/ari/v6/client/native"
)

var log = slog.New(slog.NewTextHandler(os.Stderr, nil))
Expand Down
2 changes: 1 addition & 1 deletion _examples/twoapps/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"golang.org/x/exp/slog"

"github.com/CyCoreSystems/ari/v6/client/native"
"github.com/PolyAI-LDN/ari/v6/client/native"
)

func main() {
Expand Down
Loading

0 comments on commit 2a01145

Please sign in to comment.