<block>
<assign name="varPrompt" expr="'IMPORTANT'"/>
</block>
<subdialog name="audiofile" namelist="varPrompt" src="audiofile.ashx"/>
<audio expr="audiofile.varCompleteFileName">
Hello, this is Continuing Care calling with an important message. Please press one.
</audio>
Apparently my syntax here is not quite correct, as it is treating "audiofile.varCompleteFileName" as a literal string, therefore not finding the file and playing the text using the synthesized voice. I've tried using single quotes, as well as using "src" instead of "expr", but neither works. Is it possible to do this?
To be able to pull the correct audio file, you would need to dynamically add it into the vxml. We would also recommend submitting to a new IVR script as opposed to using a subdialog.