Skip to content

Instantly share code, notes, and snippets.

View fmateo05's full-sized avatar
🏠
Working from home

Felipe Mateo fmateo05

🏠
Working from home
View GitHub Profile
@fmateo05
fmateo05 / gist:6528bcbc5ff00ecae90f395fdb881864
Created February 13, 2025 22:40
Kazoo Provisioner webhook script for interconnect with FusionPBX. Some details and instructions (Heavily testing)
LINK: https://github.com/fmateo05/provisioner-wfusionpbx-webhook
With this script you connect a kazoo webhook to it and then will get connected to couchdb and parse variables with postgresql queries to be executed on fusionpbx's environment.
Note that you should configure fusionpbx with provisioner settings enabled and configure opentelecom's provisioner for visualize the phones JSON on SmartPBX
I am going to upload a custom script that exec some regex and it results on a list of curl commands to be executed when configuring opentelecom's /api/phones/ section.
UPDATE:
@fmateo05
fmateo05 / kazoo-prov-otf-fusionpbx
Last active February 9, 2025 22:54
Kazoo working with provisioner from modified OpenTelecom and FusionPBX
https://www.youtube.com/watch?v=pTiIplK0CTE&pp=ygUUa2F6b28gdm9pcCBmdXNpb25wYng%3D
Github link: https://github.com/fmateo05/provisioner-wfusionpbx/
@fmateo05
fmateo05 / Kazoo-VoIP-OVN-Incus-Containers.md
Last active May 2, 2024 08:10
Kazoo VoIP Install with OVN and Incus Containers

Kazoo 2-zone cluster using Incus Containers; Open Virtual Network (OVN); Nebula Updated

This guide described how to install Kazoo with Incus containers and some other components like OVN networking and Nebula, etc.

  • Create 4 instances on Digital ocean; 2 on one datacenter (zone 100 ie. San Francisco) and the other 2 on another datacenter (zone 200 ie. New York).

The idea is like 2 instances per zone or datacenter as desired; if you later would like to create another zone. The main Linux distribution is Rocky Linux 9

  • Login to each server using ssh with private key
@fmateo05
fmateo05 / KazooVoIPLinuxContainerrs-update.md
Last active March 7, 2024 21:05
Kazoo 2-zone cluster install with linux containers (Incus)

Kazoo 2-zone cluster using Incus Containers; Open Virtual Network (OVN); Nebula Updated

This guide described how to install Kazoo with Incus containers and some other components like OVN networking and Nebula, etc.

  • Create 4 instances on Digital ocean; 2 on one datacenter (zone 100 ie. San Francisco) and the other 2 on another datacenter (zone 200 ie. New York).

The idea is like 2 instances per zone or datacenter as desired; if you later would like to create another zone. The main Linux distribution is Rocky Linux 9

  • Login to each server using ssh with private key
2-zone 4 servers install
Host OS Linux distribution: Almalinux 9
Server1 and Server3: CouchDB, Kamailio, Rabbitmq, Kazoo, Haproxy
Server2 and Server4: CouchDB, FreeSWITCH.
Each one of the services will be run inside its Linux container, previously launched in their respective server as described above.
Nebula nodes/lighthouse will be interconnecting the main nodes for manage internal LAN and DNS.
@fmateo05
fmateo05 / KazooVoIPLinuxContainerrs.txt
Last active May 18, 2023 04:07
Running kazoo on Linux Containers
+--------------+---------+----------------------+------+-----------+-----------+----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | LOCATION |
+--------------+---------+----------------------+------+-----------+-----------+----------+
| couch1 | RUNNING | 10.112.75.12 (eth0) | | CONTAINER | 1 | server1 |
+--------------+---------+----------------------+------+-----------+-----------+----------+
| couch2 | RUNNING | 10.112.75.13 (eth0) | | CONTAINER | 0 | server2 |
+--------------+---------+----------------------+------+-----------+-----------+----------+
| couch3 | RUNNING | 10.112.75.141 (eth0) | | CONTAINER | 0 | server3 |
+--------------+---------+----------------------+------+-----------+-----------+----------+
| couch3-old | STOPPED | | | CONTAINER | 0 | server3 |