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... Remember its like a todo list one by one its compiled but not executed yet.

This is usually an alien concept when you're migrating from various other telephony software.

/b

On Mar 26, 2009, at 11:07 AM, Michael Collins wrote:

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

Brian West
[email protected]

-- Meet us a ClueCon!  http://www.cluecon.com



_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to