Skip to content

Instantly share code, notes, and snippets.

@lgaetz
Last active November 3, 2021 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgaetz/feaedc65a2f255bb4027e2b52efa8947 to your computer and use it in GitHub Desktop.
Save lgaetz/feaedc65a2f255bb4027e2b52efa8947 to your computer and use it in GitHub Desktop.
; 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