<?xml version='1.0'?> 

<!-- ************************************************************************************ -->
<!-- This is a special grammar used to switch decode modes to Call Progress Analysis mode --> 

<grammar xml:lang="en-US" version="1.0" root="root" mode="voice"
          xmlns="http://www.w3.org/2001/06/grammar"
          tag-format="semantics/1.0.2006">  

	<!-- ******************************************************************************** -->
	<!-- This value changes the detection mode to Call Progress Analysis                  -->
	<!-- ******************************************************************************** -->
	<meta name="STREAM|DETECTION_MODE" content="CPA"/> 

	<!-- ******************************************************************************** -->
	<!-- These values may be changed to customize CPA timeouts for certain states         -->
	<!-- ******************************************************************************** -->
	<meta name="STREAM|CPA_HUMAN_RESIDENCE_TIME"  content="1800"/>
	<meta name="STREAM|CPA_HUMAN_BUSINESS_TIME"  content="3000"/>
	<meta name="STREAM|CPA_UNKNOWN_SILENCE_TIMEOUT" content="40000"/>

	<!-- ******************************************************************************** -->
	<!-- These values may be changed to modify the semantic interpretations returned      -->
	<!-- ******************************************************************************** --> 
	<meta name="HUMAN_RESIDENCE_CUSTOM_INPUT_TEXT" content="HUMAN RESIDENCE"/>
	<meta name="HUMAN_BUSINESS_CUSTOM_INPUT_TEXT"  content="HUMAN BUSINESS"/>
	<meta name="UNKNOWN_SPEECH_CUSTOM_INPUT_TEXT"  content="UNKNOWN SPEECH"/>
	<meta name="UNKNOWN_SILENCE_CUSTOM_INPUT_TEXT" content="UNKNOWN SILENCE"/>    
	<rule id="root" scope="public">
	    <one-of>
	        <item>HUMAN RESIDENCE<tag>out="RESIDENCE"</tag>
	        </item>
	        <item>HUMAN BUSINESS<tag>out="BUSINESS"</tag>
	        </item>
	        <item>UNKNOWN SPEECH<tag>out="MACHINE"</tag>
	        </item>
	        <item>UNKNOWN SILENCE<tag>out="SILENCE"</tag>
	        </item> 
	    </one-of>
	</rule> 
</grammar>