In my blacklist I have: database show ... /blacklist/Manitoba : advertising ...
[incoming] ; First, lets take care of telemarketers exten => 4,1,GotoIf(${BLACKLIST()}?blacklisted,s,1) exten => 4,n,Set(goaway=${CALLERID(number):0:2}) exten => 4,n,GotoIf($["${goaway}" = "V4" ]?blacklisted,s,1) exten => 4,n,GotoIf($["${goaway}" = "V3" ]?blacklisted,s,1) ... I just received a call from the same telemarketer with caller ID: Manitoba How did he get through? Why blacklist is not working. The second part is working OK I tested it: (anything starting with V4 ro V3 is forwarded to: "blacklisted,s,1" exten => 4,n,Set(goaway=${CALLERID(number):0:2}) exten => 4,n,GotoIf($["${goaway}" = "V4" ]?blacklisted,s,1) exten => 4,n,GotoIf($["${goaway}" = "V3" ]?blacklisted,s,1) But the first line suppose to compare the caller "ID" to the one in database and jump to "blacklisted,s,1" context. -- Joseph -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users