This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# sendmail-bluemix | |
# current verison of this script: https://gist.github.com/lgaetz/2cd9c54fb1714e0d509f5f8215b3f5e6 | |
# | |
# | |
# Original source created by N. Bernaerts: https://github.com/NicolasBernaerts/debian-scripts/tree/master/asterisk | |
# modified per: https://jrklein.com/2015/08/17/asterisk-voicemail-transcription-via-ibm-bluemix-speech-to-text-api/ | |
# | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (!isset($argv[1])){ | |
echo " | |
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** | |
* | |
* Script: extension-del.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/f2d3d717520f8adf2018643473d1f748 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (!isset($argv[1])){ | |
echo " | |
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** | |
* | |
* Script: lgaetz-fmfm.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/ff7d6806c798086e144396d275f7a8ab | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (!isset($argv[2])){ | |
echo " | |
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** | |
* | |
* Script: lgaetz-dnd.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/b350b9fa9ac18730150b387a1525aa4e | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAllMB/LAdH7yor+yW+PZla0kSWMvugiM23GsKM7eOSXby/3KpOzzFYvqiYOXwIqwBY8Dx/jbCUXxxQUQHkedObr4jyN860UQTumWA8SMR4eDTB8aSUUzkb407zyvnZ763+Ul7lp3rFWw0vwCBS3mr/AU7omnaH8DTgUIx6GiQQ9j8DDiDnD/JqLvzmuhwlbHJuwuhor09skEIi0tDdQn2qTUl1wNeBGeuX2P4peBMWF+/8JWRRHApkbJCI94qpBX/DlzYQgJ0bmaVwQhS8BdsdGZpGqVZLDuz01o+DS0WlGeb2qkN3Enrsjwgit3VlEnqaLJuXAeiWj5zNQyn1vAptQ== [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script: lgaetz-rec2email.sh automatically send all call recordings to email for FreePBX | |
# | |
# Latest version: https://gist.github.com/lgaetz/f5d2ad453c381856b1b7e00d99ed0ecb | |
# | |
# Usage: Save to /var/lib/asterisk/bin/lgaetz-rec2email.sh, owner asterisk:asterisk 777 perms. | |
# In FreePBX, Advanced Settings, Post Call Recording Script sub actual email send address and populate with: | |
# | |
# /var/lib/asterisk/bin/lgaetz-rec2email.sh <[email protected]> ^{MIXMONITOR_FILENAME} ^{FROMEXTEN} ^{ARG3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** | |
* | |
* Script: inroute-del.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/fa550bc8f402df6edafea758da353315 | |
* | |
* Usage: Run script on FreePBX system with no arguments to get a list of inbound routes by index. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; FreePBX Feature code prefix to allow spy/whisper/barge on | |
; the specified extension. | |
; | |
; Latest version: | |
; https://gist.github.com/lgaetz/78c4e114952e79596c1ed4123559d3d3 | |
; | |
; Usage: | |
; Dialplan goes in the file: | |
; /etc/asterisk/extensions_custom.conf | |
; Dial local extension with 556 prefix to spy. While spying on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
* | |
* Script: lgaetz-cmcheck.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/7cab1bc6b6266ba658d5dd90d2e919eb | |
* | |
* Usage: Asterisk AGI file to check number against a FreePBX Contact Manager group (or all CM groups) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
* | |
* Script: lgaetz-cmadd.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/bd08762103cacbecc27b4d8785f51413 | |
* | |
* Usage: Asterisk AGI file to add a FreePBX Contact Manager contact |