<?xml version="1.0" encoding="utf-8"?>
<vxml version="2.1" xml:lang="en-US"
xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gvp="http://www.genesyslab.com/2006/vxml21-extension" application="../src/ComposerRoot.vxml">
<!-- VXML code generated by Composer 8.1.530.17 -->
<!-- Diagram created by Composer: Composer 8.1.530.17 -->
<!-- Project version: 8.1.530.17 -->
<!-- Diagram version: 1.0 CreatedOn: -->
<!-- Application Author: -->
<!-- Release Mode: false -->
<!-- Global Scripts includes -->
<script src="../include/common.js" />
<script src="../include/ctic.js" />
<script src="../include/json.js" />
<script src="../include/DataAccess.js" />
<!-- Global Vars declarations -->
<script>
var AppState = new Object();
AppState.System = new Object();
AppState.System.RetainInputTypeVariableDefaultValue = false;
AppState.CallUUID = session.connection.uuid;
AppState.ANI = getANI();
AppState.DNIS = getDNIS();
AppState.USE_LCASE_USERDATAKEY = initSystemTypeVariable('USE_LCASE_USERDATAKEY',0);
if (session.connection.protocol.sip.headers != undefined &&
session.connection.protocol.sip.headers['x-genesys-gvp-session-id']){
AppState.GVPSessionID = session.connection.protocol.sip.headers['x-genesys-gvp-session-id'];
} else {
AppState.GVPSessionID = 'undefined';
}
AppState.APP_ASR_LANGUAGE = initSystemTypeVariable('APP_ASR_LANGUAGE','en-US');
AppState.APP_LANGUAGE = initSystemTypeVariable('APP_LANGUAGE','en-US');
AppState.APP_OPM = initSystemTypeVariable('APP_OPM',eval('('+session.connection.protocol.sip.requesturi['parameters']+')'));
AppState.COMPOSER_WSSTUBBING = initSystemTypeVariable('COMPOSER_WSSTUBBING','0');
AppState.EnableFCR = initSystemTypeVariable('EnableFCR',true);
AppState.EnableReports = initSystemTypeVariable('EnableReports',false);
AppState.EnableSNMP = initSystemTypeVariable('EnableSNMP',false);
AppState.GRAMMARFILEDIR = initSystemTypeVariable('GRAMMARFILEDIR','../Resources/Grammars');
AppState.LAST_EVENT_ELEMENT = initSystemTypeVariable('LAST_EVENT_ELEMENT','undefined');
AppState.LAST_EVENT_LINE = initSystemTypeVariable('LAST_EVENT_LINE','undefined');
AppState.LAST_EVENT_MSG = initSystemTypeVariable('LAST_EVENT_MSG','undefined');
AppState.LAST_EVENT_NAME = initSystemTypeVariable('LAST_EVENT_NAME','undefined');
AppState.LAST_EVENT_URL = initSystemTypeVariable('LAST_EVENT_URL','undefined');
AppState.OCS_Record = initSystemTypeVariable('OCS_Record',getCallflowOCSRecord());
AppState.OCS_RecordURI = initSystemTypeVariable('OCS_RecordURI',getCallflowRecordURI());
AppState.OCS_URI = initSystemTypeVariable('OCS_URI',getCallflowOCSURI());
AppState.PREV_APP_ASR_LANGUAGE = initSystemTypeVariable('PREV_APP_ASR_LANGUAGE','undefined');
AppState.PREV_APP_LANGUAGE = initSystemTypeVariable('PREV_APP_LANGUAGE','undefined');
AppState.SCRIPTSDIR = initSystemTypeVariable('SCRIPTSDIR','../Scripts');
AppState.varSpeech = undefined;
AppState.VOXFILEDIR = initSystemTypeVariable('VOXFILEDIR','../Resources/Prompts');
</script>
<!-- Global Scripts -->
<script srcexpr="AppState.VOXFILEDIR + '/PromptSwitch.js'" />
<script srcexpr="AppState.VOXFILEDIR + '/de-DE/de-DE.js'" />
<script srcexpr="AppState.VOXFILEDIR + '/en-US/en-US.js'" />
<script>var f = new Format();</script>
<script srcexpr="AppState.VOXFILEDIR + '/de-DE/customprompts.js'" />
<script srcexpr="AppState.VOXFILEDIR + '/en-US/customprompts.js'" />
<!-- Global Properties declarations -->
<property name="com.genesyslab.logtoasr" value="false" />
<property name="com.genesyslab.loglevel" value="5" />
[b]<property name="com.genesyslab.asrengine" value="nativegsr"/>[/b]
<!-- Metadata information -->
<meta name="com.genesyslab.studio.resourcePath" content="/Callflows/TOBI_gmr.callflow"/>
<!-- Global links -->
<form>
<block>
<log expr="'Running TOBI_gmr workflow.'"/>
<log expr="'Code Generated by Composer: 8.1.530.17.'"/>
<log expr="'Diagram created/upgraded by Composer: Composer 8.1.530.17.'"/>
<log expr="'Project version: 8.1.530.17.'"/>
<log expr="'Diagram version: 1.0 CreatedOn: .'"/>
<goto next="#Entry1" />
</block>
</form>
<!-- This is the Entry block -->
<form id="Entry1">
<block name="Entry">
<goto next="#Prompt1" />
</block>
</form>
<!-- This is the Exit block -->
<form id="Exit1">
<block>
<var name="varSpeech" expr="AppState.varSpeech"/>
<exit namelist="varSpeech"/>
</block>
</form>
<!-- This is the Prompt block -->
<form id="Prompt1">
<script srcexpr="AppState.VOXFILEDIR + '/PromptSwitch.js'" />
<script srcexpr="AppState.VOXFILEDIR + '/' + 'de-DE' + '/' + 'de-DE' + '.js'" />
<block>
<script>
AppState.PREV_APP_LANGUAGE = AppState.APP_LANGUAGE;
AppState.PREV_APP_ASR_LANGUAGE = AppState.APP_ASR_LANGUAGE;
AppState.APP_LANGUAGE = 'de-DE';
AppState.APP_ASR_LANGUAGE = 'de-DE';
</script>
</block>
<block name="Prompt1P0">
<prompt bargein="true" gvp:langexpr="AppState.APP_LANGUAGE">
Willkommen bei Vodafone. wie kann ich dir helfen?
</prompt>
</block>
<block>
<script>resetLanguage()</script>
<goto next="#Input1" />
</block>
</form>
<!-- This is the Input block -->
<form id="Input1">
<property name="inputmodes" value="voice" />
<property name="bargein" value="true" />
<block name="Input1P0">
<prompt gvp:langexpr="AppState.APP_LANGUAGE">
</prompt>
</block>
<field name="Input1Field" slot="Input1">
[b]<grammar mode="voice" xml:lang="de-DE" src="builtin:grammar/transcribe" />[/b]
<property name="interdigittimeout" value="3s"/>
<property name="termchar" value="#" />
<property name="timeout" value="10s"/>
</field>
<filled mode="all" namelist="Input1Field">
<assign name="AppState.varSpeech" expr="Input1Field" />
<goto next="#Exit1" />
</filled>
<catch event="noinput" count="1">
<throw event="com.genesyslab.composer.toomanynoinputs" message="exceeded the number of noinput retries" />
</catch>
<catch event="nomatch" count="1">
<throw event="com.genesyslab.composer.toomanynomatches" message="exceeded the number of nomatch retries" />
</catch>
</form>
</vxml>