Skip to content

Instantly share code, notes, and snippets.

@mahmoudelbachir
Created March 10, 2010 14:54
Show Gist options
  • Save mahmoudelbachir/327939 to your computer and use it in GitHub Desktop.
Save mahmoudelbachir/327939 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-us" mode="dtmf" root="___ROOT___">
<rule id="___ROOT___" scope="public">
<item>
<item repeat="0-1">
<item repeat="1-9">
<ruleref uri="#DIGITS"/>
</item>
<item>
*
</item>
</item>
<item repeat="10">
<ruleref uri="#DIGITS" />
</item>
</item>
</rule>
<rule id="DIGITS">
<one-of>
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</one-of>
</rule>
</grammar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment