Browse Source

Merge pull request #12 from 2600hz/UBUNTU

kazoo-sync
3.17
lazedo 12 years ago
parent
commit
1ee84355b4
6 changed files with 38 additions and 1 deletions
  1. +8
    -1
      debian/kazoo-configs-freeswitch.postinst
  2. +1
    -0
      freeswitch/chatplan/.placeholder
  3. +1
    -0
      freeswitch/dialplan/.placeholder
  4. +1
    -0
      freeswitch/directory/.placeholder
  5. +6
    -0
      freeswitch/freeswitch.xml
  6. +21
    -0
      freeswitch/scripts/kazoo-sync.sh

+ 8
- 1
debian/kazoo-configs-freeswitch.postinst View File

@ -15,7 +15,14 @@ case "$1" in
freeswitch
fi
for x in \
/etc/kazoo/freeswitch;
/etc/kazoo/freeswitch \
/etc/kazoo/freeswitch/autoload_configs \
/etc/kazoo/freeswitch/certs \
/etc/kazoo/freeswitch/chatplan \
/etc/kazoo/freeswitch/dialplan \
/etc/kazoo/freeswitch/directory \
/etc/kazoo/freeswitch/scripts \
/etc/kazoo/freeswitch/sip_profiles;
do
mkdir -p $x
chown -R freeswitch:freeswitch $x


+ 1
- 0
freeswitch/chatplan/.placeholder View File

@ -0,0 +1 @@
just a placeholder

+ 1
- 0
freeswitch/dialplan/.placeholder View File

@ -0,0 +1 @@
just a placeholder

+ 1
- 0
freeswitch/directory/.placeholder View File

@ -0,0 +1 @@
just a placeholder

+ 6
- 0
freeswitch/freeswitch.xml View File

@ -43,9 +43,15 @@
</section>
<section name="dialplan" description="Regex/XML Dialplan">
<X-PRE-PROCESS cmd="include" data="dialplan/*.xml"/>
</section>
<section name="chatplan" description="Regex/XML Chatplan">
<X-PRE-PROCESS cmd="include" data="chatplan/*.xml"/>
</section>
<section name="directory" description="User Directory">
<X-PRE-PROCESS cmd="include" data="directory/*.xml"/>
</section>
<section name="phrases" description="Speech Phrase Management">


+ 21
- 0
freeswitch/scripts/kazoo-sync.sh View File

@ -0,0 +1,21 @@
#!/bin/sh
#### KAZOO - FREESWITCH OFFLINE
##
## run this command in a whapps server on a kazoo cluster to obtain the synchronization key
##
## sup whapps_config get crossbar.freeswitch offline_configuration_key `sup wh_util rand_hex_binary 32 | sed s/[\<\"\>]*//g` | sed s/[\<\"\>]*//g
##
## to change the key use the following command
##
## sup whapps_config set crossbar.freeswitch offline_configuration_key `sup wh_util rand_hex_binary 32 | sed s/[\<\"\>]*//g`
##
##
##
####
KEY=86d4f72ba888dba211fa2d17dcb558f0c8483e1ca5a048757b7d0e9204a3c24e
curl --insecure https://your-kazoo-api-fqdn:8443/v2/freeswitch?key=${KEY} -o update.zip
sudo unzip -o -d /etc/kazoo/freeswitch update.zip
fs_cli --execute reloadxml

Loading…
Cancel
Save