Skip to content

Instantly share code, notes, and snippets.

View rdegges's full-sized avatar

Randall Degges rdegges

View GitHub Profile
@rdegges
rdegges / postgression.sh
Created January 21, 2013 07:52
postgression CLI
$ curl 'http://api.postgression.com'
postgres://username:password@hostname:port/dbname
@rdegges
rdegges / publix.xml
Last active December 11, 2015 01:18
OpenCNAM + Freeswitch Dialplan
<extension name="set_cnam" continue="true">
<condition field="context" expression="public" />
<condition field="caller_id_number" expression="^\+?(\d{10})">
<action application="set" data="effective_caller_id_name=${cidlookup(${caller_id_number})}" />
</condition>
</extension>
@rdegges
rdegges / cidlookup.conf
Created January 13, 2013 01:44
OpenCNAM Hobbyist Tier + Freeswitch
<configuration name="cidlookup.conf" description="OpenCNAM cidlookup Configuration">
<settings>
<param name="url" value="https://api.opencnam.com/v2/phone/${caller_id_number}?format=pbx"/>
<param name="cache" value="false"/>
</settings>
</configuration>
@rdegges
rdegges / cidlookup.conf
Last active December 11, 2015 01:09
OpenCNAM Professional Tier + Freeswitch
<configuration name="cidlookup.conf" description="OpenCNAM cidlookup Configuration">
<settings>
<param name="url" value="https://api.opencnam.com/v2/phone/${caller_id_number}?format=pbx&account_sid=ACCOUNT_SID&auth_token=AUTH_TOKEN"/>
<param name="cache" value="false"/>
</settings>
</configuration>
@rdegges
rdegges / modules.conf.xml
Last active December 11, 2015 01:09
Freeswitch modules.conf.xml Configuration
# ...
<load module="mod_cidlookup"/>
# ...
@rdegges
rdegges / freeswitch-compile.txt
Created January 13, 2013 01:26
Recompiling Freeswitch
$ make
$ make install
@rdegges
rdegges / modules.conf
Created January 13, 2013 01:23
Freeswitch modules.conf Configuration
# ...
applications/mod_cidlookup # make sure this line is NOT commented
# ...
@rdegges
rdegges / addon-doc.md
Last active December 10, 2015 17:58
chaosq documentation.

chaosq is an add-on providing a dedicated Amazon Simple Queue Service (SQS) queue. Amazon SQS is a high performance, infinitely scalable, and highly reliable message broker, built on top of Amazon Web Services.

Using a message queue like Amazon SQS is the simplest and most fault tolerant way to decouple, distribute, and scale your Heroku applications effectively, regardless of the size of your application.

Amazon SQS is supported by a large variety of programming languages and web

@rdegges
rdegges / globals_custom.conf
Created October 31, 2012 04:00
OpenCNAM V2 FreePBX Professional
;; /etc/asterisk/globals_custom.conf
;;
;; These variables store your OpenCNAM account credentials, which allow
;; you to do unlimited real-time CNAM dips.
;;
;; Your OPENCNAM_ACCOUNT_SID and OPENCNAM_AUTH_TOKEN variables can be
;; found at the top of your OpenCNAM dashboard page:
;; https://www.opencnam.com/dashboard
OPENCNAM_ACCOUNT_SID=your_account_sid_here
@rdegges
rdegges / opencnam-freepbx-install.sh
Created October 31, 2012 03:55
OpenCNAM V2 FreePBX Install Script
$ curl -L https://raw.github.com/telephonyresearch/asterisk-opencnam/master/src/opencnam-set-callerid.conf >> /etc/asterisk/extensions_custom.conf
$ curl -L https://raw.github.com/telephonyresearch/asterisk-opencnam/master/freepbx.conf >> /etc/asterisk/extensions_override_freepbx.conf
$ asterisk -rx 'dialplan reload'