asterisk-ari-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +85 -0
- data/Rakefile +54 -0
- data/asterisk-ari-client.gemspec +32 -0
- data/examples/list_channels.rb +14 -0
- data/examples/websocket.rb +33 -0
- data/lib/ari.rb +12 -0
- data/lib/ari/client.rb +124 -0
- data/lib/ari/generators/api.rb +23 -0
- data/lib/ari/generators/attribute.rb +35 -0
- data/lib/ari/generators/model.rb +38 -0
- data/lib/ari/generators/operation.rb +43 -0
- data/lib/ari/generators/parameter.rb +35 -0
- data/lib/ari/generators/property.rb +32 -0
- data/lib/ari/generators/resource_generator.rb +94 -0
- data/lib/ari/generators/templates/model.rb.erb +36 -0
- data/lib/ari/generators/templates/resource.rb.erb +97 -0
- data/lib/ari/list_resource.rb +23 -0
- data/lib/ari/model.rb +26 -0
- data/lib/ari/models.rb +47 -0
- data/lib/ari/models/.DS_Store +0 -0
- data/lib/ari/models/application_replaced.rb +17 -0
- data/lib/ari/models/asterisk_info.rb +35 -0
- data/lib/ari/models/bridge_attended_transfer.rb +63 -0
- data/lib/ari/models/bridge_blind_transfer.rb +35 -0
- data/lib/ari/models/bridge_created.rb +23 -0
- data/lib/ari/models/bridge_destroyed.rb +23 -0
- data/lib/ari/models/bridge_merged.rb +27 -0
- data/lib/ari/models/build_info.rb +19 -0
- data/lib/ari/models/caller_id.rb +19 -0
- data/lib/ari/models/channel_caller_id.rb +23 -0
- data/lib/ari/models/channel_created.rb +23 -0
- data/lib/ari/models/channel_destroyed.rb +23 -0
- data/lib/ari/models/channel_dialplan.rb +23 -0
- data/lib/ari/models/channel_dtmf_received.rb +23 -0
- data/lib/ari/models/channel_entered_bridge.rb +27 -0
- data/lib/ari/models/channel_hangup_request.rb +23 -0
- data/lib/ari/models/channel_left_bridge.rb +27 -0
- data/lib/ari/models/channel_state_change.rb +23 -0
- data/lib/ari/models/channel_talking_finished.rb +23 -0
- data/lib/ari/models/channel_talking_started.rb +23 -0
- data/lib/ari/models/channel_userevent.rb +35 -0
- data/lib/ari/models/channel_varset.rb +23 -0
- data/lib/ari/models/config_info.rb +27 -0
- data/lib/ari/models/device_state_changed.rb +23 -0
- data/lib/ari/models/dial.rb +31 -0
- data/lib/ari/models/dialed.rb +17 -0
- data/lib/ari/models/dialplan_cep.rb +19 -0
- data/lib/ari/models/endpoint_state_change.rb +23 -0
- data/lib/ari/models/format_lang_pair.rb +19 -0
- data/lib/ari/models/live_recording.rb +19 -0
- data/lib/ari/models/message.rb +19 -0
- data/lib/ari/models/missing_params.rb +19 -0
- data/lib/ari/models/playback_finished.rb +23 -0
- data/lib/ari/models/playback_started.rb +23 -0
- data/lib/ari/models/recording_failed.rb +23 -0
- data/lib/ari/models/recording_finished.rb +23 -0
- data/lib/ari/models/recording_started.rb +23 -0
- data/lib/ari/models/set_id.rb +19 -0
- data/lib/ari/models/stasis_end.rb +23 -0
- data/lib/ari/models/stasis_start.rb +27 -0
- data/lib/ari/models/status_info.rb +27 -0
- data/lib/ari/models/stored_recording.rb +19 -0
- data/lib/ari/models/system_info.rb +19 -0
- data/lib/ari/models/text_message.rb +23 -0
- data/lib/ari/models/text_message_received.rb +27 -0
- data/lib/ari/models/text_message_variable.rb +19 -0
- data/lib/ari/models/variable.rb +19 -0
- data/lib/ari/request_error.rb +8 -0
- data/lib/ari/resource.rb +37 -0
- data/lib/ari/resources.rb +11 -0
- data/lib/ari/resources/application.rb +101 -0
- data/lib/ari/resources/asterisk.rb +72 -0
- data/lib/ari/resources/bridge.rb +286 -0
- data/lib/ari/resources/channel.rb +610 -0
- data/lib/ari/resources/device_state.rb +98 -0
- data/lib/ari/resources/endpoint.rb +124 -0
- data/lib/ari/resources/event.rb +25 -0
- data/lib/ari/resources/mailbox.rb +99 -0
- data/lib/ari/resources/playback.rb +86 -0
- data/lib/ari/resources/recording.rb +241 -0
- data/lib/ari/resources/sound.rb +64 -0
- data/lib/ari/server_error.rb +8 -0
- data/lib/asterisk/ari/client.rb +10 -0
- data/lib/asterisk/ari/client/version.rb +7 -0
- data/test/fixtures/bridge_create.json +74 -0
- data/test/fixtures/bridge_get.json +74 -0
- data/test/fixtures/bridges_list.json +76 -0
- data/test/fixtures/channel_get.json +83 -0
- data/test/fixtures/channel_originate.json +83 -0
- data/test/fixtures/channel_originate_with_id.json +83 -0
- data/test/fixtures/channels_list.json +105 -0
- data/test/lib/asterisk-ari-client/.DS_Store +0 -0
- data/test/lib/asterisk-ari-client/bridge_test.rb +46 -0
- data/test/lib/asterisk-ari-client/channel_test.rb +59 -0
- data/test/test_helper.rb +42 -0
- metadata +265 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
"http_interactions": [
|
3
|
+
{
|
4
|
+
"request": {
|
5
|
+
"method": "post",
|
6
|
+
"uri": "http://192.168.1.23:8088/ari/channels?api_key=asterisk:asterisk&app=dialplan&channelId=cb07847a-595b-48ff-857b-b7a78893fd83&endpoint=PJSIP/1ca410-mac&extension=11",
|
7
|
+
"body": {
|
8
|
+
"encoding": "UTF-8",
|
9
|
+
"string": ""
|
10
|
+
},
|
11
|
+
"headers": {
|
12
|
+
"Content-Type": [
|
13
|
+
"json"
|
14
|
+
],
|
15
|
+
"Accept": [
|
16
|
+
"application/json"
|
17
|
+
],
|
18
|
+
"Accept-Charset": [
|
19
|
+
"utf-8"
|
20
|
+
],
|
21
|
+
"User-Agent": [
|
22
|
+
"asterisk-ari-client/0.0.1 ruby/2.2.0"
|
23
|
+
],
|
24
|
+
"Accept-Encoding": [
|
25
|
+
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
26
|
+
]
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"response": {
|
30
|
+
"status": {
|
31
|
+
"code": 200,
|
32
|
+
"message": "OK"
|
33
|
+
},
|
34
|
+
"headers": {
|
35
|
+
"Server": [
|
36
|
+
"Asterisk/12.5.0"
|
37
|
+
],
|
38
|
+
"Date": [
|
39
|
+
"Sun, 05 Oct 2014 11:35:07 GMT"
|
40
|
+
],
|
41
|
+
"Connection": [
|
42
|
+
"close"
|
43
|
+
],
|
44
|
+
"Cache-Control": [
|
45
|
+
"no-cache, no-store"
|
46
|
+
],
|
47
|
+
"Content-Type": [
|
48
|
+
"application/json"
|
49
|
+
],
|
50
|
+
"Content-Length": [
|
51
|
+
"321"
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"body": {
|
55
|
+
"encoding": "UTF-8",
|
56
|
+
"string": {
|
57
|
+
"id": "cb07847a-595b-48ff-857b-b7a78893fd83",
|
58
|
+
"state": "Down",
|
59
|
+
"name": "PJSIP/1ca410-mac-0000000d",
|
60
|
+
"caller": {
|
61
|
+
"name": "",
|
62
|
+
"number": ""
|
63
|
+
},
|
64
|
+
"connected": {
|
65
|
+
"name": "",
|
66
|
+
"number": ""
|
67
|
+
},
|
68
|
+
"accountcode": "1ca4106c-20b2-11e4-9f50-03cba5fbf325",
|
69
|
+
"dialplan": {
|
70
|
+
"context": "default",
|
71
|
+
"exten": "s",
|
72
|
+
"priority": 1
|
73
|
+
},
|
74
|
+
"creationtime": "2014-10-05T11:35:07.413+0000"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"http_version": null
|
78
|
+
},
|
79
|
+
"recorded_at": "Mon, 06 Oct 2014 18:04:27 GMT"
|
80
|
+
}
|
81
|
+
],
|
82
|
+
"recorded_with": "VCR 2.9.3"
|
83
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
{
|
2
|
+
"http_interactions": [
|
3
|
+
{
|
4
|
+
"request": {
|
5
|
+
"method": "get",
|
6
|
+
"uri": "http://192.168.1.23:8088/ari/channels?api_key=asterisk:asterisk&app=dialplan",
|
7
|
+
"body": {
|
8
|
+
"encoding": "US-ASCII",
|
9
|
+
"string": ""
|
10
|
+
},
|
11
|
+
"headers": {
|
12
|
+
"Content-Type": [
|
13
|
+
"json"
|
14
|
+
],
|
15
|
+
"Accept": [
|
16
|
+
"application/json"
|
17
|
+
],
|
18
|
+
"Accept-Charset": [
|
19
|
+
"utf-8"
|
20
|
+
],
|
21
|
+
"User-Agent": [
|
22
|
+
"asterisk-ari-client/0.0.1 ruby/2.2.0"
|
23
|
+
],
|
24
|
+
"Accept-Encoding": [
|
25
|
+
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
26
|
+
]
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"response": {
|
30
|
+
"status": {
|
31
|
+
"code": 200,
|
32
|
+
"message": "OK"
|
33
|
+
},
|
34
|
+
"headers": {
|
35
|
+
"Server": [
|
36
|
+
"Asterisk/12.5.0"
|
37
|
+
],
|
38
|
+
"Date": [
|
39
|
+
"Sun, 05 Oct 2014 04:37:53 GMT"
|
40
|
+
],
|
41
|
+
"Connection": [
|
42
|
+
"close"
|
43
|
+
],
|
44
|
+
"Cache-Control": [
|
45
|
+
"no-cache, no-store"
|
46
|
+
],
|
47
|
+
"Content-Type": [
|
48
|
+
"application/json"
|
49
|
+
],
|
50
|
+
"Content-Length": [
|
51
|
+
"597"
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"body": {
|
55
|
+
"encoding": "UTF-8",
|
56
|
+
"string": [
|
57
|
+
{
|
58
|
+
"id": "1412483829.18",
|
59
|
+
"state": "Up",
|
60
|
+
"name": "PJSIP/1ca410-mac-00000009",
|
61
|
+
"caller": {
|
62
|
+
"name": "",
|
63
|
+
"number": ""
|
64
|
+
},
|
65
|
+
"connected": {
|
66
|
+
"name": "",
|
67
|
+
"number": ""
|
68
|
+
},
|
69
|
+
"accountcode": "1ca4106c-20b2-11e4-9f50-03cba5fbf325",
|
70
|
+
"dialplan": {
|
71
|
+
"context": "default",
|
72
|
+
"exten": "s",
|
73
|
+
"priority": 1
|
74
|
+
},
|
75
|
+
"creationtime": "2014-10-05T04:37:09.458+0000"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"id": "1412483873.19",
|
79
|
+
"state": "Down",
|
80
|
+
"name": "PJSIP/1ca410-mac-0000000a",
|
81
|
+
"caller": {
|
82
|
+
"name": "",
|
83
|
+
"number": ""
|
84
|
+
},
|
85
|
+
"connected": {
|
86
|
+
"name": "",
|
87
|
+
"number": ""
|
88
|
+
},
|
89
|
+
"accountcode": "1ca4106c-20b2-11e4-9f50-03cba5fbf325",
|
90
|
+
"dialplan": {
|
91
|
+
"context": "default",
|
92
|
+
"exten": "s",
|
93
|
+
"priority": 1
|
94
|
+
},
|
95
|
+
"creationtime": "2014-10-05T04:37:53.366+0000"
|
96
|
+
}
|
97
|
+
]
|
98
|
+
},
|
99
|
+
"http_version": null
|
100
|
+
},
|
101
|
+
"recorded_at": "Sun, 05 Oct 2014 18:43:11 GMT"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"recorded_with": "VCR 2.9.3"
|
105
|
+
}
|
Binary file
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
class TestBridge < Minitest::Test
|
4
|
+
def setup
|
5
|
+
@client = Ari::Client.new(
|
6
|
+
url: 'http://192.168.1.23:8088/ari',
|
7
|
+
api_key: 'asterisk:asterisk',
|
8
|
+
app: 'dialplan'
|
9
|
+
)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_list
|
13
|
+
VCR.use_cassette 'bridges_list' do
|
14
|
+
bridges = @client.bridges.list
|
15
|
+
|
16
|
+
assert_kind_of Array, bridges
|
17
|
+
assert_equal 1, bridges.length
|
18
|
+
|
19
|
+
assert_kind_of Ari::Bridge, bridges.first
|
20
|
+
|
21
|
+
assert_equal '88301dbb-538a-4460-9c5d-bb659c48b320', bridges.first.id
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_create
|
26
|
+
VCR.use_cassette 'bridge_create' do
|
27
|
+
bridge = @client.bridges.create type: 'mixing,dtmf_events'
|
28
|
+
|
29
|
+
assert_kind_of Ari::Bridge, bridge
|
30
|
+
assert_equal '310e4c2d-85cc-4267-90e4-491217040d80', bridge.id
|
31
|
+
assert_equal 'mixing', bridge.bridge_type
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_get
|
36
|
+
VCR.use_cassette 'bridge_get' do
|
37
|
+
bridge = @client.bridges.get bridgeId: '310e4c2d-85cc-4267-90e4-491217040d80'
|
38
|
+
|
39
|
+
assert_kind_of Ari::Bridge, bridge
|
40
|
+
assert_equal '310e4c2d-85cc-4267-90e4-491217040d80', bridge.id
|
41
|
+
assert_equal 'mixing', bridge.bridge_type
|
42
|
+
assert_equal 'simple_bridge', bridge.technology
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
class TestChannel < Minitest::Test
|
4
|
+
def setup
|
5
|
+
@client = Ari::Client.new(
|
6
|
+
url: 'http://192.168.1.23:8088/ari',
|
7
|
+
api_key: 'asterisk:asterisk',
|
8
|
+
app: 'dialplan'
|
9
|
+
)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_list
|
13
|
+
VCR.use_cassette 'channels_list' do
|
14
|
+
channels = @client.channels.list
|
15
|
+
|
16
|
+
assert_kind_of Array, channels
|
17
|
+
assert_equal 2, channels.length
|
18
|
+
|
19
|
+
assert_kind_of Ari::Channel, channels.first
|
20
|
+
|
21
|
+
assert_equal '1412483829.18', channels.first.id
|
22
|
+
assert_equal '1412483873.19', channels.last.id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_originate
|
27
|
+
VCR.use_cassette 'channel_originate' do
|
28
|
+
channel = @client.channels.originate endpoint: 'PJSIP/1ca410-mac', extension: 11
|
29
|
+
|
30
|
+
assert_kind_of Ari::Channel, channel
|
31
|
+
assert_equal '1412483873.19', channel.id
|
32
|
+
assert_equal 's', channel.dialplan.exten
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_originate_with_id
|
37
|
+
VCR.use_cassette 'channel_originate_with_id' do
|
38
|
+
channel = @client.channels.originate({
|
39
|
+
endpoint: 'PJSIP/1ca410-mac',
|
40
|
+
extension: 11,
|
41
|
+
channelId: 'cb07847a-595b-48ff-857b-b7a78893fd83'
|
42
|
+
})
|
43
|
+
|
44
|
+
assert_kind_of Ari::Channel, channel
|
45
|
+
assert_equal 'cb07847a-595b-48ff-857b-b7a78893fd83', channel.id
|
46
|
+
assert_equal 's', channel.dialplan.exten
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_get
|
51
|
+
VCR.use_cassette 'channel_get' do
|
52
|
+
channel = @client.channels.get channelId: '1412509919.30'
|
53
|
+
|
54
|
+
assert_kind_of Ari::Channel, channel
|
55
|
+
assert_equal '1412509919.30', channel.id
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
#require 'minitest/pride'
|
3
|
+
require 'webmock/minitest'
|
4
|
+
require 'vcr'
|
5
|
+
require 'pp'
|
6
|
+
|
7
|
+
module PrettyJSONWithPrettyBody
|
8
|
+
include VCR::Cassette::Serializers::JSON
|
9
|
+
extend self
|
10
|
+
extend VCR::Cassette::EncodingErrorHandling
|
11
|
+
def serialize(hash)
|
12
|
+
handle_encoding_errors do
|
13
|
+
hash["http_interactions"].each do |interaction|
|
14
|
+
body_hash = MultiJson.load(interaction["response"]["body"]["string"])
|
15
|
+
interaction["response"]["body"]["string"] = body_hash
|
16
|
+
end
|
17
|
+
::JSON.pretty_generate(hash)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
def deserialize(string)
|
21
|
+
handle_encoding_errors do
|
22
|
+
hash = MultiJson.decode(string)
|
23
|
+
hash["http_interactions"].each do |interaction|
|
24
|
+
body_string = ::JSON.pretty_generate(interaction["response"]["body"]["string"])
|
25
|
+
interaction["response"]["body"]["string"] = body_string
|
26
|
+
end
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
VCR.configure do |c|
|
33
|
+
c.cassette_library_dir = "test/fixtures"
|
34
|
+
c.hook_into :webmock
|
35
|
+
c.cassette_serializers[:pretty_json_with_pretty_body] = PrettyJSONWithPrettyBody
|
36
|
+
c.default_cassette_options = {
|
37
|
+
serialize_with: :pretty_json_with_pretty_body,
|
38
|
+
match_requests_on: [ :method, :path ]
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
require File.expand_path('../../lib/asterisk/ari/client.rb', __FILE__)
|
metadata
ADDED
@@ -0,0 +1,265 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: asterisk-ari-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jan Svoboda
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.4.2
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.4.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.9.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.9.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.19.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.19.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: active_support
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 4.1.6
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 4.1.6
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: websocket-client-simple
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.0
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: event_emitter
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.2.5
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.2.5
|
125
|
+
description: Ruby client library for the Asterisk REST Interface (ARI).
|
126
|
+
email:
|
127
|
+
- jan@mluv.cz
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- Gemfile
|
134
|
+
- LICENSE.txt
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- asterisk-ari-client.gemspec
|
138
|
+
- examples/list_channels.rb
|
139
|
+
- examples/websocket.rb
|
140
|
+
- lib/ari.rb
|
141
|
+
- lib/ari/client.rb
|
142
|
+
- lib/ari/generators/api.rb
|
143
|
+
- lib/ari/generators/attribute.rb
|
144
|
+
- lib/ari/generators/model.rb
|
145
|
+
- lib/ari/generators/operation.rb
|
146
|
+
- lib/ari/generators/parameter.rb
|
147
|
+
- lib/ari/generators/property.rb
|
148
|
+
- lib/ari/generators/resource_generator.rb
|
149
|
+
- lib/ari/generators/templates/model.rb.erb
|
150
|
+
- lib/ari/generators/templates/resource.rb.erb
|
151
|
+
- lib/ari/list_resource.rb
|
152
|
+
- lib/ari/model.rb
|
153
|
+
- lib/ari/models.rb
|
154
|
+
- lib/ari/models/.DS_Store
|
155
|
+
- lib/ari/models/application_replaced.rb
|
156
|
+
- lib/ari/models/asterisk_info.rb
|
157
|
+
- lib/ari/models/bridge_attended_transfer.rb
|
158
|
+
- lib/ari/models/bridge_blind_transfer.rb
|
159
|
+
- lib/ari/models/bridge_created.rb
|
160
|
+
- lib/ari/models/bridge_destroyed.rb
|
161
|
+
- lib/ari/models/bridge_merged.rb
|
162
|
+
- lib/ari/models/build_info.rb
|
163
|
+
- lib/ari/models/caller_id.rb
|
164
|
+
- lib/ari/models/channel_caller_id.rb
|
165
|
+
- lib/ari/models/channel_created.rb
|
166
|
+
- lib/ari/models/channel_destroyed.rb
|
167
|
+
- lib/ari/models/channel_dialplan.rb
|
168
|
+
- lib/ari/models/channel_dtmf_received.rb
|
169
|
+
- lib/ari/models/channel_entered_bridge.rb
|
170
|
+
- lib/ari/models/channel_hangup_request.rb
|
171
|
+
- lib/ari/models/channel_left_bridge.rb
|
172
|
+
- lib/ari/models/channel_state_change.rb
|
173
|
+
- lib/ari/models/channel_talking_finished.rb
|
174
|
+
- lib/ari/models/channel_talking_started.rb
|
175
|
+
- lib/ari/models/channel_userevent.rb
|
176
|
+
- lib/ari/models/channel_varset.rb
|
177
|
+
- lib/ari/models/config_info.rb
|
178
|
+
- lib/ari/models/device_state_changed.rb
|
179
|
+
- lib/ari/models/dial.rb
|
180
|
+
- lib/ari/models/dialed.rb
|
181
|
+
- lib/ari/models/dialplan_cep.rb
|
182
|
+
- lib/ari/models/endpoint_state_change.rb
|
183
|
+
- lib/ari/models/format_lang_pair.rb
|
184
|
+
- lib/ari/models/live_recording.rb
|
185
|
+
- lib/ari/models/message.rb
|
186
|
+
- lib/ari/models/missing_params.rb
|
187
|
+
- lib/ari/models/playback_finished.rb
|
188
|
+
- lib/ari/models/playback_started.rb
|
189
|
+
- lib/ari/models/recording_failed.rb
|
190
|
+
- lib/ari/models/recording_finished.rb
|
191
|
+
- lib/ari/models/recording_started.rb
|
192
|
+
- lib/ari/models/set_id.rb
|
193
|
+
- lib/ari/models/stasis_end.rb
|
194
|
+
- lib/ari/models/stasis_start.rb
|
195
|
+
- lib/ari/models/status_info.rb
|
196
|
+
- lib/ari/models/stored_recording.rb
|
197
|
+
- lib/ari/models/system_info.rb
|
198
|
+
- lib/ari/models/text_message.rb
|
199
|
+
- lib/ari/models/text_message_received.rb
|
200
|
+
- lib/ari/models/text_message_variable.rb
|
201
|
+
- lib/ari/models/variable.rb
|
202
|
+
- lib/ari/request_error.rb
|
203
|
+
- lib/ari/resource.rb
|
204
|
+
- lib/ari/resources.rb
|
205
|
+
- lib/ari/resources/application.rb
|
206
|
+
- lib/ari/resources/asterisk.rb
|
207
|
+
- lib/ari/resources/bridge.rb
|
208
|
+
- lib/ari/resources/channel.rb
|
209
|
+
- lib/ari/resources/device_state.rb
|
210
|
+
- lib/ari/resources/endpoint.rb
|
211
|
+
- lib/ari/resources/event.rb
|
212
|
+
- lib/ari/resources/mailbox.rb
|
213
|
+
- lib/ari/resources/playback.rb
|
214
|
+
- lib/ari/resources/recording.rb
|
215
|
+
- lib/ari/resources/sound.rb
|
216
|
+
- lib/ari/server_error.rb
|
217
|
+
- lib/asterisk/ari/client.rb
|
218
|
+
- lib/asterisk/ari/client/version.rb
|
219
|
+
- test/fixtures/bridge_create.json
|
220
|
+
- test/fixtures/bridge_get.json
|
221
|
+
- test/fixtures/bridges_list.json
|
222
|
+
- test/fixtures/channel_get.json
|
223
|
+
- test/fixtures/channel_originate.json
|
224
|
+
- test/fixtures/channel_originate_with_id.json
|
225
|
+
- test/fixtures/channels_list.json
|
226
|
+
- test/lib/asterisk-ari-client/.DS_Store
|
227
|
+
- test/lib/asterisk-ari-client/bridge_test.rb
|
228
|
+
- test/lib/asterisk-ari-client/channel_test.rb
|
229
|
+
- test/test_helper.rb
|
230
|
+
homepage: ''
|
231
|
+
licenses:
|
232
|
+
- MIT
|
233
|
+
metadata: {}
|
234
|
+
post_install_message:
|
235
|
+
rdoc_options: []
|
236
|
+
require_paths:
|
237
|
+
- lib
|
238
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
243
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
|
+
requirements:
|
245
|
+
- - ">="
|
246
|
+
- !ruby/object:Gem::Version
|
247
|
+
version: '0'
|
248
|
+
requirements: []
|
249
|
+
rubyforge_project:
|
250
|
+
rubygems_version: 2.4.1
|
251
|
+
signing_key:
|
252
|
+
specification_version: 4
|
253
|
+
summary: Ruby client library for the Asterisk REST Interface (ARI).
|
254
|
+
test_files:
|
255
|
+
- test/fixtures/bridge_create.json
|
256
|
+
- test/fixtures/bridge_get.json
|
257
|
+
- test/fixtures/bridges_list.json
|
258
|
+
- test/fixtures/channel_get.json
|
259
|
+
- test/fixtures/channel_originate.json
|
260
|
+
- test/fixtures/channel_originate_with_id.json
|
261
|
+
- test/fixtures/channels_list.json
|
262
|
+
- test/lib/asterisk-ari-client/.DS_Store
|
263
|
+
- test/lib/asterisk-ari-client/bridge_test.rb
|
264
|
+
- test/lib/asterisk-ari-client/channel_test.rb
|
265
|
+
- test/test_helper.rb
|