[Freeswitch-users] Action and Anti-Action

2009-03-26 Thread Rodrigo P. Telles
Hi Guys, I'm trying to do some string matching against a created var and looks like I am doing something wrong but I can't find whats it. I'm wrote an extension just for tests purposes on dialplan/default.xml: extension name="nat_detect" continue="true" condition action application="set"

Re: [Freeswitch-users] Action and Anti-Action

2009-03-26 Thread Michael Jerris
Actions are all run AFTER all conditions are parsed so the nated var is not set yet. you can do a single condition in this case, and set nated for use elsewhere if you need it in the actions. Mike On Mar 26, 2009, at 10:27 AM, Rodrigo P. Telles wrote: Hi Guys, I'm trying to do some

Re: [Freeswitch-users] Action and Anti-Action

2009-03-26 Thread Michael Collins
Look in the default.xml dialplan file for the tod_example extension. (It's near the top of the file.) It has an example of how to create an extension that simply sets a variable that can be used in other extensions in the dialplan. -MC 2009/3/26 Rodrigo P. Telles telles-lis...@devel-it.com.br:

Re: [Freeswitch-users] Action and Anti-Action

2009-03-26 Thread Brian West
Remember the dialplan is parsed, installed into the session then sent into the execute state. The dialplan is NOT execute line by line as it goes thru the dialplan. Which means you can not set a var on one line then condition on that var on the next line because the var isn't set yet...