Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asterisk 如何使用黑名单?_Asterisk_Blacklist - Fatal编程技术网

Asterisk 如何使用黑名单?

Asterisk 如何使用黑名单?,asterisk,blacklist,Asterisk,Blacklist,我不熟悉星号。我在ubuntu 9.10下工作。我用星号1.8。我想创建一个会议室 在meetme.conf中 conf => 1234,1234 conf => 1234 在extensions.conf中 exten =>1234,1,MeetMe(1234) exten => 1234,1,GotoIf(${BLACKLIST()}?hangup) exten => 1234,n(loop),Set(TRIES=$[0${TRIES} + 1]); ex

我不熟悉星号。我在ubuntu 9.10下工作。我用星号1.8。我想创建一个会议室

在meetme.conf中

conf => 1234,1234
conf => 1234
在extensions.conf中

exten =>1234,1,MeetMe(1234)
exten => 1234,1,GotoIf(${BLACKLIST()}?hangup)
exten => 1234,n(loop),Set(TRIES=$[0${TRIES} + 1]);
exten => 1234,n,GotoIf($["$TRIES" = "3"]?blacklist)
exten => 1234,n,Read(PIN,enter-conf-pin-number,4)
exten => 1234,n,GotoIf($["$PIN" = "9999"]?meetme)
exten => 1234,n,Goto(loop)
exten => 1234,n(meetme),MeetMe(1234)
exten => 1234,n,Hangup
exten => 1234,n(blacklist),Set(CALLERID(num)=${FILTER(0-9\-,${CALLERID(num):-10})})
exten => 1234,n,Set(DB(blacklist/${CALLERID(num)})="Some Comment")
exten => 1234,n(hangup),Hangup

pin码是安全的吗?如何创建安全pin码(我是否也必须使用数字和字符)?第二,如何创建黑名单?如果一个人尝试注册3次,但通过的密码不正确,我如何才能将他/她列入黑名单?

密码是数字,但是,“1234”不是一个好的密码选择

星号的拨号计划是非常动态的;“黑名单”没有单一的定义。但是,请尝试以下方法:

==meetme.conf

conf => 1234,1234
conf => 1234
==extensions.conf

exten =>1234,1,MeetMe(1234)
exten => 1234,1,GotoIf(${BLACKLIST()}?hangup)
exten => 1234,n(loop),Set(TRIES=$[0${TRIES} + 1]);
exten => 1234,n,GotoIf($["$TRIES" = "3"]?blacklist)
exten => 1234,n,Read(PIN,enter-conf-pin-number,4)
exten => 1234,n,GotoIf($["$PIN" = "9999"]?meetme)
exten => 1234,n,Goto(loop)
exten => 1234,n(meetme),MeetMe(1234)
exten => 1234,n,Hangup
exten => 1234,n(blacklist),Set(CALLERID(num)=${FILTER(0-9\-,${CALLERID(num):-10})})
exten => 1234,n,Set(DB(blacklist/${CALLERID(num)})="Some Comment")
exten => 1234,n(hangup),Hangup
还有很多其他的方法。这种特殊的设置只会阻止来电者尝试进入该会议室进行身份验证。如果您想禁止他接触您的自动助理,您可以将第一行移动到传入上下文

如果您已经在清理callerid(应该是),您可以删除筛选行并将(黑名单)跳到下一行。

黑名单: