Skip to content

Instantly share code, notes, and snippets.

View dagelf's full-sized avatar

Coenraad Loubser dagelf

View GitHub Profile
@dagelf
dagelf / 2600Hz_Kazoo.md
Created April 14, 2023 09:29 — forked from ruhnet/2600Hz_Kazoo.md
2600Hz Kazoo 4.3 Notes

RuhNet: 2600Hz Kazoo Notes

Cluster Topology Possibilities

Any service can be separated and run on its own server. Commonly used config:

  • Kazoo Servers: HAProxy, RabbitMQ, Kamailio SIP Proxy, Kazoo eCall Manager, Kazoo Applications, (Monster UI)
  • Freeswitch Servers: HAProxy, Freeswitch
  • Bigcouch Database Servers: Bigcouch or CouchDB (I use CouchDB v3.0)
@dagelf
dagelf / sip_speaker.py
Created June 1, 2018 10:42 — forked from hu55a1n1/sip_speaker.py
PJSIP: Play incoming call on audio device in python
#!/usr/bin/python
#
#
# Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
@dagelf
dagelf / miniupnp_port_forwarder.c
Created June 1, 2018 10:41 — forked from hu55a1n1/miniupnp_port_forwarder.c
Port forwarder using miniupnp library
/* $Id: upnpc.c,v 1.101 2014/01/31 13:18:25 nanard Exp $ */
/* Project : miniupnp
MiniUPnPc
Copyright (c) 2005-2016, Thomas BERNARD
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
@dagelf
dagelf / grandstream-configurator.php
Created June 1, 2018 10:41 — forked from hu55a1n1/grandstream-configurator.php
CLI tool for automatic discovery and bulk provisioning of Grandstream IP phones
<?php
function to_str($obj) {
ob_start();
var_dump($obj);
return ob_get_clean();
}
function str_btw($string, $start, $end){
$string = ' ' . $string;
@dagelf
dagelf / n.sh
Last active July 17, 2023 02:21 — forked from radu-gheorghe/traffic.sh
Netspeed 2 - gets Linux network interface throughput speed from /proc/net/dev; busybox bash/awk/sed compatible, good for embedded OpenWRT or UBNT / Ubiquiti, etc routers
#!/bin/sh
# Copy the contents of this file to the clipboard, then get a terminal open on your device and enter:
# $ cat > n.sh
# [Ctrl+V] or Right Click, Paste. Then [Ctrl+D].
# chmod +x n.sh
# To run: ./n.sh eth0
SLP=1 # display / sleep interval
DEVICE=$1
IS_GOOD=0
for GOOD_DEVICE in `grep \: /proc/net/dev | awk -F: '{print $1}'`; do