TeleFlow Forums
http://teleflow.org/phpbb/

Teleflow 2005 and Play Step
http://teleflow.org/phpbb/viewtopic.php?f=10&t=200
Page 1 of 1

Author:  Awgeewhiz [ Thu Nov 18, 2004 10:58 am ]
Post subject: 

When a "locally" define variable is used to point to a wav file via "Set Play Variable" and then the same variable is used in a "Play" step, the play step errors out with "undefined" variable. <br> <br>Is "Set Play Variable" limted to globally defined variables only? <br> <br>Nov 18 12:55:59.49: ==>PlayTest2 <br>Nov 18 12:55:59.49: [1] START <br>Nov 18 12:55:59.49: [11] Set Local Variable <br>Nov 18 12:55:59.49: Setting local variable '@LCL_SPEAK_MSG' to '' <br>Nov 18 12:55:59.49: [7] Global Event <br>Nov 18 12:55:59.49: Setting system variable '@HANGUP' to 'HANGUP' <br>Nov 18 12:55:59.49: [3] Wait for Call <br>Nov 18 12:55:59.50: WARNING: TIMEOUT '0' evaluates to 0 and is interpreted as no timeout <br>Nov 18 12:56:00.99: Wait for 1 rings and then pickup <br>Nov 18 12:56:03.30: Connection delay: 500 ms <br>Nov 18 12:56:03.80: [13] Set Global Variable <br>Nov 18 12:56:03.80: Setting global variable '@LCL_SPEAK_MSG' to 'Billion' <br>Nov 18 12:56:03.81: [17] Write Text <br>Nov 18 12:56:03.81: "LCL_SPEAK_MSG = " <br>Nov 18 12:56:03.81: [15] Play <br>Nov 18 12:56:03.81: Message Code: @LCL_SPEAK_MSG <br>Nov 18 12:56:03.81: ERROR: Message Code '@LCL_SPEAK_MSG' undefined <br>Nov 18 12:56:03.81: FATAL <br>Nov 18 12:56:03.81: Attempting to jump to Fatal Error Global Event label: '' <br>Nov 18 12:56:03.81: Fatal label undefined! <br>Nov 18 12:56:03.82: Shutting down... <br>Nov 18 12:56:03.82: XMLList destructor done

Author:  Chris [ Thu Nov 18, 2004 1:06 pm ]
Post subject: 

Yes, "Set Play Variable" is limited to globally defined variables only. <br> <br>This may be addressed in a future release, but is a limitation at this time. <br> <br>You can, however, use a Set Local Variable, and simply set it to the name of a script code you know exists in your Voice Script database. This doesn't provide the convenience of the Set Play Variable step, which has the drop-down, and also the automatic display of the related script in the flowchart, but it does at least allow you to use a local variable set to then play a script code. (if you have a need to use it this way, that is)

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/