[Freeswitch-users] Possible to use fresh channelvariables in conditions?

Brian West brian at freeswitch.org
Thu Sep 11 06:31:50 PDT 2008


You'll need to use execute_extension

<action application="execute_extension" data="eval_data XML features"/>

Then in extension eval_data you'll have it... but you do realize that  
you can just: <action application="eval" data="Number: $1"/>

So you have that data from the regular expression capture.

FreeSWITCH doesn't traverse the dialplan in realtime.  Its done once  
at the start of the call and all the actions are put into a todo list  
so to speak and the session is sent into the state machine never to  
return unless you transfer it back to the dialplan for any reason.  ie  
execute_extension, transfer, uuid_transfer and so on.

/b


On Sep 11, 2008, at 8:13 AM, Jon Bruel wrote:

> <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>

Brian West
sip:brian at freeswitch.org










More information about the FreeSWITCH-users mailing list