[Freeswitch-users] Question about set/export applications
Albano Daniele Salvatore - Lavoro
info at daccii.it
Wed Nov 4 11:55:39 PST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: info.vcf
Type: text/x-vcard
Size: 381 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091104/7f0712ee/attachment-0002.vcf
More information about the FreeSWITCH-users
mailing list