How do I set the incomplete_timout parameter within an OSDM ?

  • 13
    Oct

    In order for a property to take effect in an OSDM you have to pass it to the OSDM. It should also be noted that OSDMs have different contexts and therefore the property needs to be set for a specifc context. For example if you need to set the incomplete_time out property for the confirmation context of the DM you will need to use the variable: property_confirmation_incompletetimeout
    Similarly for collection context you will need to use:  property_collection_incompletetimeout

    Here is an example of how this property is set for the confirmation phase of the Currency OSDM:

    <?xml version=”1.0″?>
    <vxml version=”2.0″ xmlns=”http://www.w3.org/2001/vxml“>
    <meta name=”application” content=”AUDIO/ASR/TTS Test Application”/>
    <property name=”METRICSLEVEL” value=”3″/>
    <property name=”asrengine” value=”SPEECHWORKS” />
    <property name=”ttsengine” value=”REALSPEAK_JILL” /> <form id=”TestCurrencyDM”>

    <var name=”dmname” expr=”‘myCurrencyDM'”/>
    <var name=”property_confirmation_incompletetimeout” expr=”‘7000ms'” />

    <subdialog name=”my_Currency”
    realrealsrc=”   namelist=”dmname property_confirmation_incompletetimeout”>
    <filled>
    <if cond = “my_Currency.returncode == ‘SUCCESS'”>
    <prompt>
    You said:
    <say-as interpret-as=”currency”>
    <value expr=”my_Currency.returnvalue”/>
    </say-as>.
    </prompt>
    <else/>
    <prompt> The OSDM failed </prompt>
    </if>
    </filled>
    </subdialog>

    </form>

    </vxml>