here is what I am doing so far:
VXML Doc 1 which later leads to vxml doc 2:
Code: Select all
<var name="url" expr="'http://www.site.com'" />
Code: Select all
<var name="url" expr="'http address'" />
<var name="voiceovers" expr="'voice over location'" />
<form>
<block>
<assign name="url" expr="application.url"/>
<assign name="voiceovers" expr="application.voiceovers"/>
<goto next="#processEnd"/>
</block>
</form>
<form id="processEnd">
<field name="confirmMenuChoice">
<grammar type="application/x-jsgf">1|2</grammar>
<property name="interdigittimeout" value="4s" />
<audio expr="'url+'/goodbye.mp3'">
</field>
</form>
Here is the error log I get when I try:
All I want is a common place to put a url variable and use it throughout the entire script on all docs without using php. Using php will require a rewrite of everything which I don't have time for.VXI::var_element(name="url" expr = "'http address'")
VXI::assign_element(name="url" expr = "application.url"
VXI::queue_prompts()
errmsg unterminated string literal line 1 linetxt 'url+'/goodbye.mp3' tokentxt '
errmsg SyntaxError: unterminated string literal line 1 linetxt 'url+'/goodbye.mp3' tokentxt '
received event: error.semantic.ecmascript
Thank you very much for your help,
Brent