| @ -1,53 +1,25 @@ | |||||
| ; section are between [] = [section] | ; section are between [] = [section] | ||||
| ; key = value | ; key = value | ||||
| ; to comment add ";" in front of the line | ; to comment add ";" in front of the line | ||||
| ; | |||||
| ; | |||||
| ; NOTE: You must add all your FreeSWITCH servers to the trusted ACLs | |||||
| ; if you are using zones! | |||||
| ; | |||||
| [amqp] | |||||
| uri = "amqp://guest:guest@127.0.0.1:5672" | |||||
| [bigcouch] | [bigcouch] | ||||
| compact_automatically = true | compact_automatically = true | ||||
| cookie = change_me | cookie = change_me | ||||
| ip = "127.0.0.1" | ip = "127.0.0.1" | ||||
| port = 15984 | port = 15984 | ||||
| ;username = "kazoo" | |||||
| ;password = "supermegaexcellenttelephonyplatform" | |||||
| ; username = "kazoo" | |||||
| ; password = "supermegaexcellenttelephonyplatform" | |||||
| admin_port = 15986 | admin_port = 15986 | ||||
| ; Define your AMQPs and zones here | |||||
| [zone] | |||||
| name = zone_1 | |||||
| amqp_uri = "amqp://guest:guest@127.0.0.1:5672" | |||||
| ;[zone] | |||||
| ;name = zone_2 | |||||
| ;amqp_uri = "amqp://guest:guest@127.0.0.2:5672" | |||||
| ; Define your whistles here | |||||
| [whistle_apps] | [whistle_apps] | ||||
| ;host = apps001.2600hz.com | |||||
| zone = zone_1 | |||||
| cookie = change_me | cookie = change_me | ||||
| ;[whistle_apps] | |||||
| ;host = apps002.2600hz.com | |||||
| ;zone = zone_2 | |||||
| ;cookie = change_me | |||||
| ; Define your ecallmgr's here | |||||
| [ecallmgr] | [ecallmgr] | ||||
| ;host = apps001.2600hz.com | |||||
| zone = zone_1 | |||||
| cookie = change_me | cookie = change_me | ||||
| ;[ecallmgr] | |||||
| ;host = apps002.2600hz.com | |||||
| ;zone = zone_2 | |||||
| ;cookie = change_me | |||||
| [log] | [log] | ||||
| syslog = debug | |||||
| syslog = info | |||||
| console = notice | console = notice | ||||
| file = error | file = error | ||||
| @ -0,0 +1,7 @@ | |||||
| kazoo-configs (3-0) UNRELEASED; urgency=low | |||||
| * Kazoo Configs. | |||||
| -- Travis Cross <tc@traviscross.com> Mon, 26 May 2014 08:59:35 +0100 | |||||
| @ -0,0 +1 @@ | |||||
| 8 | |||||
| @ -0,0 +1,23 @@ | |||||
| #### Do not edit! This file is auto-generated from debian/bootstrap.sh. | |||||
| Source: kazoo-configs | |||||
| Section: comm | |||||
| Priority: optional | |||||
| Maintainer: Travis Cross <tc@traviscross.com> | |||||
| Build-Depends: debhelper (>= 8.0.0) | |||||
| Standards-Version: 3.9.3 | |||||
| Homepage: http://www.2600hz.com/ | |||||
| Package: kazoo-configs | |||||
| Architecture: all | |||||
| Provides: kazoo-configs-freeswitch | |||||
| Depends: ${misc:Depends} | |||||
| Description: Kazoo Configurations | |||||
| This package contains the Kazoo Configuration Files. | |||||
| Package: kazoo-configs-freeswitch | |||||
| Architecture: all | |||||
| Depends: ${misc:Depends} | |||||
| Description: Kazoo Configurations for FreeSWITCH | |||||
| This package contains the Kazoo Configuration Files fo FreeSWITCH. | |||||
| @ -0,0 +1,3 @@ | |||||
| #### Do not edit! This file is auto-generated from debian/bootstrap.sh. | |||||
| freeswitch /etc/kazoo | |||||
| @ -0,0 +1,41 @@ | |||||
| #!/bin/sh | |||||
| set -e | |||||
| case "$1" in | |||||
| configure) | |||||
| if ! getent group freeswitch >/dev/null; then | |||||
| groupadd --system freeswitch | |||||
| fi | |||||
| if ! getent passwd freeswitch >/dev/null; then | |||||
| useradd --system -g freeswitch -Gaudio \ | |||||
| -d /var/lib/freeswitch \ | |||||
| -s /bin/false \ | |||||
| -e '' \ | |||||
| -c 'FreeSWITCH' \ | |||||
| freeswitch | |||||
| fi | |||||
| for x in \ | |||||
| /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 | |||||
| chmod -R o-wx,g+u $x | |||||
| done | |||||
| ;; | |||||
| abort-upgrade|abort-remove|abort-deconfigure) | |||||
| ;; | |||||
| *) | |||||
| echo "postinst called with unknown argument \`$1'" >&2 | |||||
| exit 1 | |||||
| ;; | |||||
| esac | |||||
| #DEBHELPER# | |||||
| exit 0 | |||||
| @ -0,0 +1,27 @@ | |||||
| #!/bin/sh | |||||
| set -e | |||||
| case "$1" in | |||||
| purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | |||||
| if [ "$1" = "purge" ]; then | |||||
| if getent passwd freeswitch >/dev/null; then | |||||
| userdel freeswitch | |||||
| fi | |||||
| if getent group freeswitch >/dev/null; then | |||||
| groupdel freeswitch | |||||
| fi | |||||
| for x in \ | |||||
| /etc/kazoo/freeswitch; | |||||
| do | |||||
| rm -rf $x | |||||
| done | |||||
| fi | |||||
| ;; | |||||
| *) | |||||
| echo "postrm called with unknown argument \`$1'" >&2 | |||||
| exit 1 | |||||
| ;; | |||||
| esac | |||||
| #DEBHELPER# | |||||
| exit 0 | |||||
| @ -0,0 +1,12 @@ | |||||
| #### Do not edit! This file is auto-generated from debian/bootstrap.sh. | |||||
| app.config /etc/kazoo | |||||
| config.ini /etc/kazoo | |||||
| vm.args /etc/kazoo | |||||
| freeswitch /etc/kazoo | |||||
| kamailio /etc/kazoo | |||||
| haproxy /etc/kazoo | |||||
| bigcouch /etc/kazoo | |||||
| rabbitmq /etc/kazoo | |||||
| @ -0,0 +1,11 @@ | |||||
| #!/usr/bin/make -f | |||||
| export DH_VERBOSE=1 | |||||
| %: | |||||
| dh $@ | |||||
| override_dh_auto_build: | |||||
| override_dh_auto_install: | |||||
| @ -0,0 +1 @@ | |||||
| just a placeholder | |||||
| @ -0,0 +1 @@ | |||||
| just a placeholder | |||||
| @ -0,0 +1 @@ | |||||
| just a placeholder | |||||
| @ -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 | |||||
| @ -1,40 +1,39 @@ | |||||
| global | global | ||||
| log 127.0.0.1 local0 | |||||
| log 127.0.0.1 local1 notice | |||||
| maxconn 4096 | |||||
| user haproxy | |||||
| group haproxy | |||||
| stats socket /tmp/haproxy.sock mode 777 | |||||
| log 127.0.0.1 local0 | |||||
| log 127.0.0.1 local1 notice | |||||
| maxconn 4096 | |||||
| user haproxy | |||||
| group haproxy | |||||
| stats socket /tmp/haproxy.sock mode 777 | |||||
| defaults | defaults | ||||
| log global | |||||
| mode http | |||||
| option httplog | |||||
| option dontlognull | |||||
| option redispatch | |||||
| option httpchk GET / | |||||
| option allbackups | |||||
| option http-server-close | |||||
| maxconn 2000 | |||||
| retries 3 | |||||
| timeout connect 6000ms | |||||
| timeout client 120000ms | |||||
| timeout server 120000ms | |||||
| log global | |||||
| mode http | |||||
| option httplog | |||||
| option dontlognull | |||||
| option redispatch | |||||
| option httpchk GET / | |||||
| option allbackups | |||||
| maxconn 2000 | |||||
| retries 3 | |||||
| timeout connect 6000ms | |||||
| timeout client 12000ms | |||||
| timeout server 12000ms | |||||
| listen bigcouch-data 127.0.0.1:15984 | listen bigcouch-data 127.0.0.1:15984 | ||||
| balance roundrobin | |||||
| balance roundrobin | |||||
| server db1.zone1.mydomain.com 127.0.0.1:5984 check | server db1.zone1.mydomain.com 127.0.0.1:5984 check | ||||
| server db2.zone1.mydomain.com 127.0.0.2:5984 check | server db2.zone1.mydomain.com 127.0.0.2:5984 check | ||||
| server db3.zone2.mydomain.com 127.0.0.3:5984 check backup | server db3.zone2.mydomain.com 127.0.0.3:5984 check backup | ||||
| server db4.zone2.mydomain.com 127.0.0.4:5984 check backup | server db4.zone2.mydomain.com 127.0.0.4:5984 check backup | ||||
| listen bigcouch-mgr 127.0.0.1:15986 | listen bigcouch-mgr 127.0.0.1:15986 | ||||
| balance roundrobin | |||||
| balance roundrobin | |||||
| server db1.zone1.mydomain.com 127.0.0.1:5986 check | server db1.zone1.mydomain.com 127.0.0.1:5986 check | ||||
| server db2.zone1.mydomain.com 127.0.0.2:5986 check | server db2.zone1.mydomain.com 127.0.0.2:5986 check | ||||
| server db3.zone2.mydomain.com 127.0.0.3:5986 check backup | server db3.zone2.mydomain.com 127.0.0.3:5986 check backup | ||||
| server db4.zone2.mydomain.com 127.0.0.4:5986 check backup | server db4.zone2.mydomain.com 127.0.0.4:5986 check backup | ||||
| listen haproxy-stats 127.0.0.1:22002 | listen haproxy-stats 127.0.0.1:22002 | ||||
| mode http | |||||
| stats uri / | |||||
| mode http | |||||
| stats uri / | |||||
| @ -0,0 +1,22 @@ | |||||
| ####### Flags ####### | |||||
| flags | |||||
| FLAG_ACC: 7, | |||||
| FLAG_ACCMISSED: 8, | |||||
| FLAG_ACCFAILED: 9; | |||||
| ######## Accounting module ######## | |||||
| loadmodule "acc.so" | |||||
| ######## Accounting params ######## | |||||
| modparam("acc", "early_media", 0) | |||||
| modparam("acc", "report_ack", 0) | |||||
| modparam("acc", "report_cancels", 1) | |||||
| modparam("acc", "detect_direction", 0) | |||||
| modparam("acc", "log_flag", 7) | |||||
| modparam("acc", "log_level", 2) | |||||
| modparam("acc", "log_missed_flag", 8) | |||||
| modparam("acc", "failed_transaction_flag", 9) | |||||
| modparam("acc", "log_extra", | |||||
| "src_user=$fU;src_domain=$fd;src_ip=$si;" | |||||
| "dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") | |||||
| modparam("acc", "log_facility", "LOG_LOCAL6") | |||||
| @ -1,5 +1,6 @@ | |||||
| [{rabbit, [{disk_free_limit, 5242880} | |||||
| [ | |||||
| {rabbit, [{disk_free_limit, 5242880} | |||||
| ,{vm_memory_high_watermark, 0.8} | ,{vm_memory_high_watermark, 0.8} | ||||
| ,{hipe_compile, true} | |||||
| ,{loopback_users, []} | |||||
| ]} | ]} | ||||
| ]. | ]. | ||||