Skip to content

Commit

Permalink
Update extensions_custom.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
miclast committed Jan 21, 2021
1 parent c7cf1bd commit 975da12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions_custom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

; Intrusion. Custom dialplan for listen, whisper and barge in calls

exten => _*22[2-4]2XXX,1,NoOp(${CALLERID(number)}) ; Mask for your extensions where intrusion is allowed
exten => _*22[2-4]2XXX,1,NoOp(${CALLERID(number)}) ; Mask for your extensions where intrusion is allowed, 2XXX for example
same => n,GotoIf($[ "${CALLERID(number)}" =~ "^(2100|2101|2103)$"]?okay:exit) ; List of extensions from which intrusion is allowed
same => n(okay),Gosub(read-proc,s,1)
same => n,Gotoif($[${DROP} = 1]?exit:go)
Expand All @@ -19,7 +19,7 @@ same => n(exit),Hangup
[read-proc]
exten => s,1,Read(Secret,beep,4)
exten => s,n,NoOp(${Secret})
exten => s,n,Gotoif($[${Secret} = 7280]?ret:drop)
exten => s,n,Gotoif($[${Secret} = 7280]?ret:drop) ; Pin code for intrusion, you can use any 4 digits
exten => s,n(drop),Set(DROP=1)
exten => s,n(ret),Return()

Expand Down

0 comments on commit 975da12

Please sign in to comment.