Blacklist or whitelist

From "PTTLink Wiki"
Revision as of 14:30, 15 October 2017 by Wd6awp (talk | contribs) (Created page with " Add this to extensions.conf just below the [radio-secure] context. <pre> ; To add a node to the blacklist: ; database put blacklist 1998 “any comment” ; to remove: ; d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Add this to extensions.conf just below the [radio-secure] context.

; To add a node to the blacklist: 
; database put blacklist 1998 “any comment”
; to remove:
; database del blacklist 1998
 
[blacklist]
exten => _XXXX!,1,NoOp(${CALLERID(num)})
exten => _XXXX!,n,GotoIf($[${DB_EXISTS(blacklist/${CALLERID(num)})}]?blocked)
exten => _XXXX!,n,Goto(radio-secure,${EXTEN},1)
exten => _XXXX!,n(blocked),Hangup;

In iax.conf modify the [radio] context by commenting context = radio-secure and adding context = blacklist

[radio]
type = user
disallow = all
allow = ulaw
allow = adpcm
allow = gsm
codecpriority = host
;context = radio-secure
context = blacklist
transfer = no

[Category:How to]