All,
I have been fighting with this for the past 8 hours and have exhausted most of my resources on google, and the #callweaver IRC room is dead so I am not getting help their currently. I have a dial plan I am working on, and right now it is getting very cumbersome with the blacklisting of numbers, and the LookupBlacklist command isn't working as it is described, at least how it is described in the description from CW and how it is set up in Asterisk.
My Dialplan(Extract, just the LookupBlacklist part): ;Local PTSN inbound ;exten => 111,1,Zapateller(answer|nocallerid) exten => 111,1,LookupBlacklist exten => 111,2,Wait(1) exten => 111,3,SetMusicOnHold(default) exten => 111,4,GotoIf($["${CALLERIDNUM}" = ""]?who-r-u,1,1) exten => 111,5,GotoIf($["foo${CALLERIDNUM}" = "foo"]?who-r-u,1,1)exten => 111,6,GotoIf($["${CALLERIDNAME:0:9}" = "Anonymous"]?who-r-u,1,1) exten => 111,7,GotoIf($["${CALLERIDNAME:0:7}" = "Unknown"]?who-r-u,1,1) exten => 111,8,GotoIf($["${CALLERIDNUM:0:7}" = "Private"]?who-r-u,1,1) exten => 111,9,GotoIf($["${CALLERIDNAME:0:7}" = "Private"]?who-r-u,1,1) exten => 111,10,GotoIf($["${CALLERIDNUM:0:10}" = "Restricted"]?who-r-u,1,1) exten => 111,11,GotoIf($["${CALLERIDNAME:0:11}" = "OUT OF AREA"]?who-r-u,1,1) exten => 111,12,GotoIf($["${CALLERIDNUM:0:5}" = "98028"]?who-r-u,1,1) exten => 111,13,GotoIf($["${CALLERIDNAME:0:4}" = "PSTN"]?who-r-u,1,1) exten => 111,14,GotoIf($["${CALLERIDNAME:0:11}" = "Unavailable"]?who-r-u,1,1) exten => 111,15,GotoIf($["${CALLERIDNUM:0:11}" = "90000000000"]?who-r-u,1,1) exten => 111,16,GotoIf($["${CALLERIDNAME:0:14}" = "Name Unavailab"]?who-r-u,1,1) exten => 111,17,GotoIf($["${CALLERIDNAME:1:11}" = "18884864722"]?blacklist,1,1) exten => 111,18,GotoIf($["${CALLERIDNUM:0:11}" = "98884023159"]?blacklist,1,1) exten => 111,19,GotoIf($["${CALLERIDNAME:0:15}" = "COLLEGE LENDERS"]?blacklist,1,1) exten => 111,20,GotoIf($["${CALLERIDNUM:0:11"}" = "98007775626"]?blacklist,1,1)
exten => 111,21,Set(TIMEOUT(digit)=3) exten => 111,22,Set(TIMEOUT(response)=3) exten => 111,23,Background(welcome) exten => 111,102,Goto(blacklist,1,1)All my GotoIF lines work, for both the who-r-u group and the blacklist group. I have tried the (j) option on #1 as well (outlined in http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+LookupBlacklist) and no matter what, my database doesn't seem to match my blacklist. In the database:
/blacklist/91235551221 : 1and that is exactly how it shows up in the CDR as well (I log all calls to MySQL, which works perfectly for usage monitoring).
Any help on this, or what I may be doing wrong would be greatly appreciated ~Seann
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Callweaver-users mailing list Callweaver-users@callweaver.org http://lists.callweaver.org/mailman/listinfo/callweaver-users