yes condition and expression both support variable expansion

ISWHITE could be a c function
<condition field="${ISWHITE ${caller_id_number}}" expression="true" >

if you want to us lua you would use 

<condition field="${lua iswhite.lua ${caller_id_number}}" expression="true" >

see scripts/lua/api.lua for examples of making api funcs in lua

On Thu, Oct 25, 2012 at 3:33 PM, Scott <8f27e956@gmail.com> wrote:
We need to write a function, usable in the XML dial plan, that tests the inbound CID (not destination_number) against a "white list."  Something on the line of,,, 

<condition field="ISWHITE(${caller_id_number})" expression="true" >

Question:  In such a use case, must ISWHITE() be a custom application/mod written in C, per skel.c, or can it be a script written in lua or p-language or the like?

It's clear from wiki and docs we've seen that <action ... /> can have lua or p-language scripts; but it is not clear about the <condition ... /> clauses and where to locate and "hook" them in.

Guidance and any pointers to docs/examples greatly appreciated.

With thanks,
/S

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900