Hi to all,i'm trying to setup a simple after hours ivr, without using lua/javascript, but only xml.
What i do is to catch weekdays, set some vars, catch working hours based on weekdays, and, in the end, catch if it is working time or not. If not, just set another var.
Actually the code is really bad, i'll reorganize it later, the biggest problem is that i can't read setted variables!
This code
---
<condition wday="2-6">
<action application="set" data="working_day_a=true" />
</condition>
---
should set variable working_day_a to true, but if, in the following
extension, i check ${working_day_a} field i get it empty.
From logs --- Dialplan: OpenZAP/1:1/03 Action set(working_day_a=true) . . .Dialplan: OpenZAP/1:1/03 Regex (FAIL) [working_day_a_hours] ${working_day_a}() =~ /^true$/ break=on-false
--- Here extensions http://pastebin.freeswitch.org/10977 while here relevant parts of log http://pastebin.freeswitch.org/10978 Thank for your help! Best Regards, Daniele
<<attachment: info.vcf>>
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
