Last active
November 3, 2021 23:28
-
-
Save lgaetz/feaedc65a2f255bb4027e2b52efa8947 to your computer and use it in GitHub Desktop.
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
; Purpose | |
; FreePBX custom in-call feautre code framework that allows a caller to initiate an action that will be performed on hangup by | |
; pressing #9 during a call. Sets up feature code that adds a hangup handler to the channel, and the hangup handler can be used | |
; to record to the CDR userfield or perform some other action Possible uses are for flagging calls with audio issues. | |
; | |
; Latest version: https://gist.github.com/lgaetz/feaedc65a2f255bb4027e2b52efa8947 | |
; | |
; License GNU GPL3+ | |
; in /etc/asterisk/globals_custom.conf | |
DYNAMIC_FEATURES = ${DYNAMIC_FEATURES}#flagger | |
; in /etc/asterisk/features_applicationmap_custom.conf | |
flagger => #9,self,Set(CHANNEL(hangup_handler_push)=flagger,s,1) | |
; in /etc/asterisk/extensions_custom.conf | |
[flagger] | |
exten => s,1,Noop(Entering user defined context flagger in extensions_custom.conf) | |
; add additional lines as required | |
exten => s,n,Return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment