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 Jagdis Web: http://www.eris-associates.co.uk Eris Associates Limited Tel: +44 7780 608 368 Reading, England Fax: +44 118 926 6974 _______________________________________________ Callweaver-users mailing list Callweaver-users@callweaver.org http://lists.callweaver.org/mailman/listinfo/callweaver-users