mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-07-24 21:12:47 +00:00
initial checkin
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "foo",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"user": "foo",
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"key1": "value",
|
||||
"key2": "value"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[1, 2]
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": "hello"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "sip",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": "bar"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": 480,
|
||||
"foo": "bar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"verb": "gather",
|
||||
"actionHook": "https://00dd977a.ngrok.io/gather",
|
||||
"input": ["speech"],
|
||||
"timeout": 12,
|
||||
"recognizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US",
|
||||
"hints": ["sales", "support", "engineering", "human resources", "HR", "operator", "agent"]
|
||||
},
|
||||
"say": {
|
||||
"text": "Please say the name of the department that you would like to speak with. To speak to an operator, just say operator.",
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "say",
|
||||
"text": "I'm sorry, I did not hear a response. Goodbye.",
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US"
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "hangup"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
],
|
||||
"listen": {
|
||||
"url": "wss://myrecorder.example.com:4433",
|
||||
"mixType" : "stereo",
|
||||
"sampleRate": 8000,
|
||||
"passDtmf": true,
|
||||
"metadata": {
|
||||
"clientId": "12udih"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "sip",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"username": "foo",
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "phone",
|
||||
"number": "+15083084809"
|
||||
}
|
||||
],
|
||||
"transcribe": {
|
||||
"transcriptionHook": "/transcribe",
|
||||
"recognizer": {
|
||||
"vendor": "google",
|
||||
"language" : "en-US",
|
||||
"dualChannel" : true,
|
||||
"interim": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"dial": {
|
||||
"actionHook": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "user",
|
||||
"name": "spike@sip.example.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"pause": {
|
||||
"length": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"say": {
|
||||
"text": ["hi there", "John"],
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"say": {
|
||||
"text": "hi there",
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": 480,
|
||||
"reason": "Gone Fishin",
|
||||
"headers": {
|
||||
"Retry-After": 300
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user