Created
February 23, 2016 21:21
-
-
Save jfinstrom/4d90b70008775dcd45f2 to your computer and use it in GitHub Desktop.
dialplan
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
exten => 222000,1,Answer() | |
exten => 222000,n,Macro(user-callerid) | |
exten => 222000,n(usercheck),SET(MTYPE=${DB(QUEUE/2000/${AMPUSER})}) | |
exten => 222000,n,noop(QUEUES/2000/${AMPUSER})}) | |
exten => 222000,n,GotoIf($["${MTYPE}" = 'manager']?invalid:valid); | |
exten => 222000,n(invalid),VMAuthenticate(); | |
exten => 222000,n,GotoIf($[foo${AUTH_MAILBOX}} = foo]?hangup:setuser) | |
exten => 222000,n(setuser),SET(AMPUSER=${AUTH_MAILBOX}) | |
exten => 222000,n,Goto(usercheck) | |
exten => 222000,n(valid),SET(MEMBERS=${QUEUE_MEMBER_LIST(2000)) | |
exten => 222000,n,ChanSpy(Local,${STRREPLACE(${STRREPLACE(MEMBERS,/n)}),Local)}) | |
exten => 222000,n(hangup),Hangup; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment