Skip to content

Instantly share code, notes, and snippets.

View hgaibor's full-sized avatar

Hugo Gaibor hgaibor

View GitHub Profile
@hgaibor
hgaibor / targeted ChanSpy with permissions
Last active January 30, 2024 15:43 — forked from lgaetz/Targeted ChanSpy
Feature code + Class of Service implementation to allow certain users to spy/whisper/barge on a specified extension. Based on Lgaetz original targeted spy, but allowing user permissions to be set with COS module on FPBX
; Feature code + Class of Service implementation to allow certain users to spy/whisper/barge on
; a specified extension.
;
; Latest version:
; https://gist.github.com/hgaibor/82433116540f15ab345b2914500abb0d
;
; Forked original version:
; https://gist.github.com/lgaetz/78c4e114952e79596c1ed4123559d3d3
;
; Usage and install instructions:
#!/usr/bin/php -q
<?php
if (!isset($argv[2])){
echo "
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
*
* Script: mass-pay-it-fwd.php
* Based on Script lgaetz-pay-it-fwd.php; modified for changing settings on a batch of extensions
* Sets,unsets,toggles and lists unconditional Call Fwd setting for provided extension
*