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
Ehm, sorry, i just fixed it using inline attribute applying it on action/application/set tags: i missed it on dialplan wiki page. Sorry for the mail Albano Daniele Salvatore - Lavoro ha scritto:
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!
. . .
participants (1)
-
Albano Daniele Salvatore - Lavoro