-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from Vonage/devx-6173
Refactoring NCCO Action to have get only property for action type
- Loading branch information
Showing
44 changed files
with
447 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Vonage.Test.Unit/Data/MultiInputTests/TestSerializeNccoAllPropertiesEmpty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[ | ||
{ | ||
"action": "input", | ||
"dtmf": { | ||
}, | ||
"speech": { | ||
"uuid": [ | ||
"aaaaaaaa-bbbb-cccc-dddd-0123456789ab" | ||
] | ||
}, | ||
"action": "input" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"user": "steve", | ||
"type": "app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"action": "connect", | ||
"endpoint": [ | ||
{ | ||
"number": "447700900001", | ||
"dtmfAnswer": "2p02p", | ||
"onAnswer": { | ||
"url": "https://example.com/answer", | ||
"ringbackTone": "http://example.com/ringbackTone.wav" | ||
}, | ||
"type": "phone" | ||
} | ||
], | ||
"from": "447700900000", | ||
"eventType": "synchronous", | ||
"timeout": "60", | ||
"limit": "7200", | ||
"machineDetection": "continue", | ||
"eventUrl": [ | ||
"https://exampe.com/webhooks/events" | ||
], | ||
"eventMethod": "POST", | ||
"ringbackTone": "http://example.com/ringbackTone.wav" | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
Vonage.Test.Unit/Data/NccoTests/TestConversation-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"action": "conversation", | ||
"name": "vonage-conference-standard", | ||
"musicOnHoldUrl": [ | ||
"https://example.com/music.mp3" | ||
], | ||
"canSpeak": [ | ||
"6a4d6af0-55a6-4667-be90-8614e4c8e83c" | ||
], | ||
"canHear": [ | ||
"6a4d6af0-55a6-4667-be90-8614e4c8e83c" | ||
] | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
Vonage.Test.Unit/Data/NccoTests/TestConversationAllTrue-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"action": "conversation", | ||
"name": "vonage-conference-standard", | ||
"musicOnHoldUrl": [ | ||
"https://example.com/music.mp3" | ||
], | ||
"startOnEnter": "true", | ||
"endOnExit": "true", | ||
"record": "true", | ||
"canSpeak": [ | ||
"6a4d6af0-55a6-4667-be90-8614e4c8e83c" | ||
], | ||
"canHear": [ | ||
"6a4d6af0-55a6-4667-be90-8614e4c8e83c" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"action": "notify", | ||
"payload": { | ||
"Bar": "foo" | ||
}, | ||
"eventUrl": [ | ||
"https://example.com/webhooks/events" | ||
], | ||
"eventMethod": "POST" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"action": "record", | ||
"format": $format$, | ||
"split": "conversation", | ||
"channels": 2, | ||
"endOnSilence": "3", | ||
"endOnKey": "#", | ||
"timeOut": "60", | ||
"beepStart": "true", | ||
"eventUrl": [ | ||
"https://example.com/record", | ||
"https://test.com/record" | ||
], | ||
"eventMethod": "POST" | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
Vonage.Test.Unit/Data/NccoTests/TestRecordMinimalist-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
{ | ||
"action": "record" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"uri": "sip:[email protected]", | ||
"headers": { | ||
"Bar": "foo" | ||
}, | ||
"type": "sip" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"action": "stream", | ||
"streamUrl": [ | ||
"https://acme.com/streams/music.mp3" | ||
], | ||
"level": "0", | ||
"bargeIn": "true", | ||
"loop": "2" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"action": "talk", | ||
"text": "Hello World", | ||
"bargeIn": "true", | ||
"loop": "2", | ||
"level": "0", | ||
"voiceName": "kimberly", | ||
"language": "en-US", | ||
"style": 0 | ||
} | ||
] |
6 changes: 6 additions & 0 deletions
6
Vonage.Test.Unit/Data/NccoTests/TestTalkBareBones-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"action": "talk", | ||
"text": "Hello World" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extension": "4567", | ||
"type": "vbc" | ||
} |
8 changes: 8 additions & 0 deletions
8
Vonage.Test.Unit/Data/NccoTests/TestWebsocketEndpoint-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"uri": "wss://example.com/ws", | ||
"content-type": "audio/l16;rate=16000", | ||
"headers": { | ||
"Bar": "foo" | ||
}, | ||
"type": "websocket" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.