Skip to content

Instantly share code, notes, and snippets.

View hgaibor's full-sized avatar

Hugo Gaibor hgaibor

View GitHub Profile
@lgaetz
lgaetz / FreePBX Dialplan Captcha
Last active November 30, 2024 00:03
FreePBX Dialplan Captcha
; FreePBX Dialplan to block robocalls
;
; License: GNU GPL3+
; Latest version: https://gist.github.com/lgaetz/bdc261b0d12efafeb1eed64651c7d32b
;
;
; Usage: Place the dialplan below in /etc/asterisk/extensions_custom.conf
; change the context for the trunk(s) to from-pstn-captcha1
; Apply Config
;
@lgaetz
lgaetz / lgaetz bounce
Last active April 4, 2025 17:16
Feature code to seamlessly bounce an active bridged call between a user’s multiple devices
; 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 _.
#!/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)