[Freeswitch-users] Possible to use fresh channelvariables in conditions?
Jon Bruel
jbr at consiglia.dk
Thu Sep 11 06:13:34 PDT 2008
I have tried this:
<condition field="${SHOWANUMBER}"
expression="^(2015[0-9][0-9][0-9][0-9])$">
<action application="eval" data="ACTION=${SHOWANUMBER}"/>
<anti-action application="eval"
data="ANTI_ACTION=${SHOWANUMBER}"/>
</condition>
It runs through the conditions, but the channel variable SHOWANUMBER is
not initiated at that time. When it comes to the code above, it chooses
the anti-action. It looks as if the condition-mechanism cannot be used
if the channel variable is not defined when the system goes through the
conditions in the first run? Are there any alternative ways - except for
using a script language?
Thanks, Jon
More information about the FreeSWITCH-users
mailing list