AFAIK there is no variable expansion at this point in the IVR processing. If you need dynamic IVR the you're best bet is mod_xml_curl or mod_httapi. <shameless_plug> The new FS 1.2 book has a great chapter on httapi as well as useful information on serving up dynamic configs via xml curl. </shameless_plug> -MC On May 23, 2013 11:48 AM, "John M" <j_mj@aol.com> wrote:
Hi list...
Is it valid to use a variable inside the digits="" element in an IVR?
Eg; <entry action="menu-exec-app" digits="/^([${default_ivr_actionkeys}])$/" param="transfer $1 XML features"/>
The value of ${default_ivr_actionkeys} is: 12345
It works if I put the list of number in the regex manually but when I try using it with the variable it won't work.
I need to create a dynamic set of digits options for our IVR feature because different customers set different keypress options and I need to dynamically generate this from a db.
Is there a better way?
Thanks, Jm
_________________________________________________________________________ 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