mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
initial checkin
This commit is contained in:
22
test/data/good/dial-listen.json
Normal file
22
test/data/good/dial-listen.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
],
|
||||
"listen": {
|
||||
"wsUrl": "wss://myrecorder.example.com:4433",
|
||||
"mixType" : "stereo",
|
||||
"sampleRate": 8000,
|
||||
"passDtmf": true,
|
||||
"source": "parent",
|
||||
"metadata": {
|
||||
"clientId": "12udih"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
test/data/good/dial-phone.json
Normal file
12
test/data/good/dial-phone.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
16
test/data/good/dial-sip.json
Normal file
16
test/data/good/dial-sip.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "sip",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"user": "foo",
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
20
test/data/good/dial-transcribe.json
Normal file
20
test/data/good/dial-transcribe.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
],
|
||||
"transcribe": {
|
||||
"action": "http://example.com/transcribe",
|
||||
"language" : "en-US",
|
||||
"source" : "both",
|
||||
"interim": true,
|
||||
"vendor": "google",
|
||||
"jsonKey": "--json service key--"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
test/data/good/dial-user.json
Normal file
12
test/data/good/dial-user.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "user",
|
||||
"name": "spike@sip.example.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
9
test/data/good/sip-decline.json
Normal file
9
test/data/good/sip-decline.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": 480,
|
||||
"reason": "Gone Fishin",
|
||||
"headers": {
|
||||
"Retry-After": 300
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user