This file contains 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 dialplan for a feature code that can be dialed from an idle device that will immediately bounce | |
; any active call from any of the the same user's extensions. Primary use case is when a user has multiple | |
; registered devices they can quickly move the active call between deskphone, to mobile client to desktop client. | |
; | |
; License: GNU GPL3+ | |
; latest version: https://gist.github.com/lgaetz/4c14829c14eb0a739a216016d9f394b2 | |
; | |
; version history 2024-03-22 First commit working | |
; 2024-03-24 Fix hint and change ext away from _. |
This file contains 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 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
[from-internal-custom] | |
; Dialplan for a feature code to add ; an IP address to the FreePBX trusted zone | |
; Dial F-I-R-E-W-A-L-L from an internal extension and enter an IPv4 address using | |
; DTMF with * as the dot character. | |
; | |
; License: GNU GPL3+ | |
; latest version: https://gist.github.com/lgaetz/8a043b7aa39484f622f0f7c138909558 | |
; | |
; version history 2023-01-21 First commit working |
This file contains 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 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 requires a command - echo help and exit if arg1 missing | |
if (!isset($argv[1])) { | |
echo " | |
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
* | |
* Script: lgaetz-cftoggle.php | |
* |
This file contains 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 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
<?php | |
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
* | |
* Script: lgaetz-click2call.php | |
* | |
* Latest version: https://gist.github.com/lgaetz/6ff9aeff59de40df5755c52d85a65c9b | |
* | |
* Usage: Scipt to list/toggle/set FreePBX Call Flow Controls. Developed for FreePBX 16 | |
* |
This file contains 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
[send-sip-response-code] | |
; Context to send a specific SIP response code and terminate the channel | |
; Create Custom Destination in FreePBX with a dial string of the format | |
; send-sip-response-code,404,1 | |
; substitute the appropriate response code in place of the 404 | |
; Reference: https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings | |
; | |
; latest version: https://gist.github.com/lgaetz/480582a1827cc98db1ee539c249f074b | |
; | |
; License GPL/2 |
This file contains 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 -q | |
<?php | |
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
* | |
* Latest Version: https://gist.github.com/lgaetz/ce6ac96ca6de0e60177213ede50e7955 | |
* | |
* Description: | |
* | |
* Script lgaetz-trunk-monitor.php is used in conjunction with the "Monitor Trunk Failures" field in FreePBX |
This file contains 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
; Latest version: https://gist.github.com/lgaetz/066c655867b4e679da21dbd1567b29bd | |
; | |
; Crude proof of concept of 2FA for a FreePBX extension | |
; Clients can register to the PBX, but are unable to dial until they successfully | |
; enter a random PIN sent via email. | |
; Once the PIN passes, the client IP is whitelisted and user can dial without | |
; restriction until the IP changes | |
; | |
; License: GNU GPL3+ | |
; |
NewerOlder