On 2/12/2010 3:37 AM, Mike Jagdis wrote:
On Fri, Feb 12, 2010 at 12:30:39AM -0600, Seann Clark wrote:[...] 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)How were you expecting it to work? In * LookupBlacklist became a function that returns a value so you would use it in an expression: e.g. exten => <ext>,n, GotoIf($[ LookupBlacklist() ] ?<a> :<b>) In CW LookupBlacklist is an app (although the distinction between apps and funcs is gone in CW so it really ought to return a value as well) and its usage is: e.g. exten => <ext>,n, LookupBlacklist() exten => <ext>,n, GotoIf($[ "${BLACKLISTED}" = "TRUE" ] ?<a> :<b>) The CW description seems clear enough - although admittedly the example could be improved! :-) [Description] Looks up the Caller*ID number on the active channel in the CallWeaver database (family 'blacklist'). Sets the variable BLACKLISTED to either TRUE if the number was found, or FALSE otherwise. Example: database put blacklist<name/number> 1 Mike
Mike,Thanks for the reply I will try that with the additional modifications you stated. Guess I didn't understand what CW was doing in that regards, and was expecting it to work like the like I pasted in my email. Sometimes finding the simplest things for Callweaver only returns bug fixes and source code off google.
Thanks, Seann
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Callweaver-users mailing list [email protected] http://lists.callweaver.org/mailman/listinfo/callweaver-users
