punchblock 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +12 -0
- data/lib/punchblock.rb +1 -0
- data/lib/punchblock/command/join.rb +6 -6
- data/lib/punchblock/command/unjoin.rb +6 -6
- data/lib/punchblock/command_node.rb +1 -0
- data/lib/punchblock/component/input.rb +24 -4
- data/lib/punchblock/component/output.rb +5 -1
- data/lib/punchblock/component/tropo/ask.rb +3 -1
- data/lib/punchblock/connection/xmpp.rb +28 -10
- data/lib/punchblock/event/joined.rb +6 -6
- data/lib/punchblock/event/unjoined.rb +6 -6
- data/lib/punchblock/media_container.rb +6 -5
- data/lib/punchblock/protocol_error.rb +5 -0
- data/lib/punchblock/rayo_node.rb +1 -1
- data/lib/punchblock/translator/asterisk.rb +3 -3
- data/lib/punchblock/translator/asterisk/call.rb +9 -3
- data/lib/punchblock/translator/asterisk/component.rb +35 -0
- data/lib/punchblock/translator/asterisk/component/asterisk.rb +1 -0
- data/lib/punchblock/translator/asterisk/component/asterisk/agi_command.rb +14 -23
- data/lib/punchblock/translator/asterisk/component/asterisk/ami_action.rb +5 -18
- data/lib/punchblock/translator/asterisk/component/asterisk/output.rb +94 -0
- data/lib/punchblock/version.rb +1 -1
- data/punchblock.gemspec +1 -0
- data/spec/punchblock/command/join_spec.rb +4 -4
- data/spec/punchblock/command/unjoin_spec.rb +4 -4
- data/spec/punchblock/component/input_spec.rb +28 -31
- data/spec/punchblock/component/output_spec.rb +23 -5
- data/spec/punchblock/component/tropo/ask_spec.rb +31 -34
- data/spec/punchblock/connection/xmpp_spec.rb +105 -3
- data/spec/punchblock/event/joined_spec.rb +4 -4
- data/spec/punchblock/event/unjoined_spec.rb +4 -4
- data/spec/punchblock/protocol_error_spec.rb +32 -1
- data/spec/punchblock/translator/asterisk/call_spec.rb +17 -3
- data/spec/punchblock/translator/asterisk/component/asterisk/agi_command_spec.rb +17 -0
- data/spec/punchblock/translator/asterisk/component/asterisk/output_spec.rb +489 -0
- data/spec/punchblock/translator/asterisk_spec.rb +14 -3
- metadata +53 -44
- data/assets/ozone/ask-1.0.xsd +0 -56
- data/assets/ozone/conference-1.0.xsd +0 -17
- data/assets/ozone/ozone-1.0.xsd +0 -127
- data/assets/ozone/say-1.0.xsd +0 -24
- data/assets/ozone/transfer-1.0.xsd +0 -32
data/assets/ozone/say-1.0.xsd
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
|
3
|
-
targetNamespace="urn:xmpp:ozone:say:1"
|
|
4
|
-
xmlns:tns="urn:xmpp:ozone:say:1"
|
|
5
|
-
elementFormDefault="qualified">
|
|
6
|
-
|
|
7
|
-
<element name="say" type="tns:sayType" />
|
|
8
|
-
<element name="complete" />
|
|
9
|
-
<element name="stop" />
|
|
10
|
-
|
|
11
|
-
<complexType name="sayType">
|
|
12
|
-
<choice minOccurs="1" maxOccurs="unbounded">
|
|
13
|
-
<element name="audio" type="tns:audioReferenceType" />
|
|
14
|
-
<any namespace="http://www.w3.org/2001/10/synthesis" />
|
|
15
|
-
</choice>
|
|
16
|
-
<attribute name="id" type="string" />
|
|
17
|
-
<attribute name="voice" type="string" />
|
|
18
|
-
</complexType>
|
|
19
|
-
|
|
20
|
-
<complexType name="audioReferenceType">
|
|
21
|
-
<attribute name="url" type="anyURI" />
|
|
22
|
-
</complexType>
|
|
23
|
-
|
|
24
|
-
</schema>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
|
3
|
-
targetNamespace="urn:xmpp:ozone:say:1"
|
|
4
|
-
xmlns:tns="urn:xmpp:ozone:say:1"
|
|
5
|
-
elementFormDefault="qualified">
|
|
6
|
-
|
|
7
|
-
<element name="transfer" type="tns:transferType" />
|
|
8
|
-
|
|
9
|
-
<complexType name="transferType">
|
|
10
|
-
<sequence>
|
|
11
|
-
<element name="header" type="tns:headerType" minOccurs="0" maxOccurs="unbounded" />
|
|
12
|
-
<choice minOccurs="1" maxOccurs="unbounded">
|
|
13
|
-
<element name="audio" type="tns:audioReferenceType" />
|
|
14
|
-
<any namespace="http://www.w3.org/2001/10/synthesis" />
|
|
15
|
-
</choice>
|
|
16
|
-
</sequence>
|
|
17
|
-
<attribute name="to" type="anyURI" use="required" />
|
|
18
|
-
<attribute name="from" type="anyURI" use="optional" />
|
|
19
|
-
<attribute name="timeout" type="float" use="optional" />
|
|
20
|
-
<attribute name="answer-on-media" type="boolean" use="optional" />
|
|
21
|
-
<attribute name="terminator" type="string" use="optional" />
|
|
22
|
-
</complexType>
|
|
23
|
-
|
|
24
|
-
<complexType name="audioReferenceType">
|
|
25
|
-
<attribute name="url" type="anyURI" />
|
|
26
|
-
</complexType>
|
|
27
|
-
|
|
28
|
-
<complexType name="headerType" mixed="true">
|
|
29
|
-
<attribute name="name" type="anyURI" />
|
|
30
|
-
</complexType>
|
|
31
|
-
|
|
32
|
-
</schema>
|