Linux technical support - support@alexlinux.com


asterisk block caller id or unknown caller

[from-external]
;BLOCK UNKNOWN NUMBER
exten => _X.,1,GotoIf($["${CALLERID(num)}" = "asterisk"]?BlockUnknown)

;BLOCK BY ANI
exten => _X.,n,GotoIf($["${CALLERID(num)}" = "123123123"]?BlockByANI)

exten => _X.,n(BlockUnknown),Wait(1)
exten => _X.,n,Playback(custom/blockUnknown)
exten => _X.,n,Wait(2)
exten => _X.,n,Hangup()

exten => _X.,n(BlockByANI),Wait(1)
exten => _X.,n,Hangup()

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>