mirror of
https://github.com/jambonz/next-static-site.git
synced 2025-12-19 04:47:44 +00:00
Open source copy (#16)
* more copy changes * update aws install link * update aws install link * minor
This commit is contained in:
@@ -27,4 +27,7 @@ navi:
|
||||
title: Installing on AWS
|
||||
-
|
||||
path: self-hosted
|
||||
title: Installing elsewhere
|
||||
title: Installing elsewhere
|
||||
-
|
||||
path: homer
|
||||
title: Customizing Homer
|
||||
@@ -1,7 +1,7 @@
|
||||
banner:
|
||||
active: true
|
||||
text: jambonz now available on AWS Marketplace
|
||||
link: https://aws.amazon.com/marketplace/pp/prodview-7lmody7uv2sye
|
||||
link: https://aws.amazon.com/marketplace/pp/prodview-55wp45fowbovo
|
||||
latest:
|
||||
-
|
||||
active: true
|
||||
@@ -19,7 +19,7 @@ latest:
|
||||
active: false
|
||||
label: aws
|
||||
headline: jambonz now available on AWS Marketplace
|
||||
subtext: <a href="https://aws.amazon.com/marketplace/pp/prodview-7lmody7uv2sye" target="_blank">Deploy jambonz</a> with AWS CloudFormation today!
|
||||
subtext: <a href="https://aws.amazon.com/marketplace/pp/prodview-55wp45fowbovo" target="_blank">Deploy jambonz</a> with AWS CloudFormation today!
|
||||
navi:
|
||||
home:
|
||||
link: /
|
||||
|
||||
@@ -35,6 +35,8 @@ The *waitHook* webhook will contain the following additional parameters:
|
||||
- `queueTime`: the current number of seconds the call has spent in queue
|
||||
- `queueSize`: the current number of calls in the queue
|
||||
|
||||
YOu can also optionally receive [queue webhook notifications](/docs/webhooks/queue-notifications) any time a members joins or leaves a queue.
|
||||
|
||||
<p class="flex">
|
||||
<a href="/docs/webhooks/dialogflow">Prev: dialogflow</a>
|
||||
<a href="/docs/webhooks/gather">Next: gather</a>
|
||||
|
||||
10
markdown/docs/webhooks/queue-notifications.md
Normal file
10
markdown/docs/webhooks/queue-notifications.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Receiving queue event notifications
|
||||
|
||||
You can optionally receive a notification any time a person joins or leaves a queue. This can be useful, for example, when building a browser app that shows the count of people in a queue and lets an agent click on a queue to receive the next caller from that queue.
|
||||
|
||||
The webhook, which can optionally be configured at the account level, will generate an HTTP POST request to your webhook any time someone joins or leaves a queue. Example payloads for join and leave events are shown below.
|
||||
|
||||
#### Example webhook when caller is placed in queue
|
||||
|
||||
#### Example webhook when caller is dequeued
|
||||
|
||||
79
markdown/open-source/install/homer.md
Normal file
79
markdown/open-source/install/homer.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# Customizing the Homer install
|
||||
|
||||
Homer is installed when you use either the AWS Marketplace or the terraform scripts. By default, when downloading pcaps from the portal you will get separate pcap files for the inbound and outbound legs of a call. If you want the pcap files to contain both legs for a given call, you will need to make a change in the Homer GUI to edit the default mapping.
|
||||
|
||||
To do so, follow these steps:
|
||||
|
||||
* Log into homer at http://<public-ip>:9080 using default username/password admin/sipcapture. (Note: it's a good idea to change the default password).
|
||||
* Click Settings on the top nav, and then Mapping on the left-hand side nav.
|
||||
* On the row of the table with Profile = call, click the pencil icon on the right side of the row.
|
||||
* Replace the contents in the text edit box labeled "Correlation Mapping" with the content below, then click Save.
|
||||
|
||||
After this, when yoiu download the pcap for an inbound call it will include the associated outbound call trace as well.
|
||||
|
||||
Content to paste:
|
||||
```
|
||||
[
|
||||
{
|
||||
"source_field": "data_header.callid",
|
||||
"lookup_id": 100,
|
||||
"lookup_profile": "default",
|
||||
"lookup_field": "sid",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"source_field": "data_header.callid",
|
||||
"lookup_id": 5,
|
||||
"lookup_profile": "default",
|
||||
"lookup_field": "sid",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"source_field": "protocol_header.correlation_id",
|
||||
"lookup_id": 1,
|
||||
"lookup_profile": "call",
|
||||
"lookup_field": "sid",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"source_field": "data_header.callid",
|
||||
"lookup_id": 1,
|
||||
"lookup_profile": "call",
|
||||
"lookup_field": "protocol_header->>'correlation_id'",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"source_field": "protocol_header.correlation_id",
|
||||
"lookup_id": 1,
|
||||
"lookup_profile": "call",
|
||||
"lookup_field": "protocol_header->>'correlation_id'",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
]
|
||||
},
|
||||
{
|
||||
"source_field": "data_header.callid",
|
||||
"lookup_id": 1,
|
||||
"lookup_profile": "call",
|
||||
"lookup_field": "data_header->>'callid'",
|
||||
"lookup_range": [
|
||||
-300,
|
||||
200
|
||||
],
|
||||
"input_function_js": "var returnData=[]; for (var i = 0; i < data.length; i++) { returnData.push(data[i]+'_b2b-1'); }; returnData;"
|
||||
}
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user