问题
Our business is transitioning from an old asp system to a newer ASP.NET system, including massive improvements to our database. There is going to be a period of coexistence, during which old & new will run side-by-side.
One app which needs coexistence is a voicemail system we use. It works as follows:
- User calls.
- User inputs an account number.
- User records message for that account.
- User gets option to re-record, accept, or discard.
During coexistence, the existing app is being modified. When a user enters an account number which has been converted to the new system (which uses different identifying numbers) we want to seamlessly allow them to proceed. The account verification system is currently returning the account name, the account number, and (for coexistence) the path to the correct recording page.
Once the user has recorded a message and accepted it (or hung up), we fire a subdialog to record the message to our database.
How can I modify the subdialog call to accept the content of a variable as the src?
回答1:
You need to use srcexpr
instead. Here is an example
<var name="VariableHere" expr="'nowhere.vxml'"/>
<!-- Populate your VariableHere through your logic, default to nowhere.vxml -->
<subdialog srcexpr="'http://www.YourDomain.com/' + VariableHere">
</subdialog>
来源:https://stackoverflow.com/questions/640255/vxml-getting-src-for-subdialog-from-variable