Conferencing
There are two main ways to add the caller to a conference:
- Use pre-built Kazoo conference rooms, configured via Crossbar
- Create ad-hoc conference rooms via Pivot
Pre-built example
{
"module": "conference",
"data": {
"id": "conference_id"
}
}
Ad-Hoc example
{
"module": "conference",
"data": {
"config": {
"name": "My Ad-hoc Conference"
}
}
}
This will create a minimalist conference bridge, named “My Ad-hoc Conference”. Use the same name to ensure callers end up in the same conference together. The config
object will be validated against the conference JSON schema.
Conference Per Area Code
<?php
header('content-type: application/json');
$caller_id = $_REQUEST['Caller-ID-Number'];
$areacode = ($caller_id, 0, 3);
?>
{
"module": "tts",
"data": {
"text": "Welcome to the <?= $areacode ?> conference!"
},
"children": {
"_": {
"module": "conference",
"data": {
"config": {
"name": "Areacode <?= $areacode ?>"
}
},
"children": {}
}
}
}
Obviously this doesn’t handle hidden or missing caller ID.