Skip to content

Instantly share code, notes, and snippets.

applications/mod_callcenter
applications/mod_cidlookup
applications/mod_commands
applications/mod_conference
applications/mod_curl
applications/mod_db
applications/mod_dptools
applications/mod_enum
applications/mod_esf
applications/mod_expr
@PBXForums
PBXForums / memcache.lua
Created August 1, 2016 00:08
memcache.lua setup for replicated fusionpbx
--description
--monitor custom memcache event and clear memcache on remote servers
--protect xmlrpc using a firewall on the server to limit access by ip address
--dependencies
--install mod_curl freeswitch module
--uncomment mod_curl from modules.conf when compiling freeswitch
--xmlrpc
--open port xmlrpc port for other master server IP addresses
--change the password for xmlrpc in system -> settings
@PBXForums
PBXForums / create_verto_thing.txt
Created November 1, 2016 19:18
Creating a missing table that verto seems to depend upon
create table json_store (
name varchar(255) not null,
data text
);
/etc/freeswitch
/var/lib/freeswitch/recordings
/var/lib/freeswitch/storage
/usr/share/freeswitch/scripts
@PBXForums
PBXForums / import-csv.pl
Created November 16, 2017 16:01
Pyfreebilling CDR import thingy
#!/usr/bin/perl -w
#
# PyFreeBilling v2.0
# v1.21
#
use strict;
use DBI();
use File::Copy;
@PBXForums
PBXForums / call_forward_all.lua
Created August 14, 2018 10:02
Temporary Fix for Call Forward Caller ID problem in FusionPBX 4.4
--create the api object
api = freeswitch.API();
--includes
require "resources.functions.config";
require "resources.functions.channel_utils";
local Database = require "resources.functions.database"
local Settings = require "resources.functions.lazy_settings"
--include json library
{
// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
// Copyright (C) ITsysCOM GmbH
//
// This file contains the default configuration hardcoded into CGRateS.
// This is what you get when you load CGRateS with an empty configuration file.
"general": {
"node_id": "", // identifier of this instance in the cluster, if empty it will be autogenerated
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v5.2 - default configuration script
# - web: https://www.kamailio.org
# - git: https://github.com/kamailio/kamailio
#
# Direct your questions about this file to: <sr-users@lists.kamailio.org>
#
# Refer to the Core CookBook at https://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
[Unit]
Description=/etc/rc.local
ConditionPathExists=/etc/rc.local
After=redis.service
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty