<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01CAE51C.D36224F0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="stockticker"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:12.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none;
        text-underline:none;
        text-decoration:none;
        text-line-through:none;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>I recently upgraded from FS 12790M to <span class=SpellE>svn</span>
17188.<span style='mso-spacerun:yes'> </span>When I did, I noticed that <span
class=SpellE>session.streamFile</span> behaved differently and I started having
problems with my IVR app.<span style='mso-spacerun:yes'> </span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>With the upgraded FS, I have a problem with <span
class=SpellE>streamFile</span> no firing on the DTMF and calling the callback
function for the first few seconds of the wav file playback. <span
style='mso-spacerun:yes'> </span>It behaves as though it does not hear the
<span class=SpellE>DTMFs</span>.<span style='mso-spacerun:yes'> </span>If
I wait for 2 seconds or so of the wav file and then DTMF, <span class=SpellE>streamFile</span>
catches the DTMF and all is well. <span
style='mso-spacerun:yes'> </span>If I key as soon as I hear the wav file
start, <span class=SpellE>streamFile</span> just keeps playing the wav and does
not call the callback function.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>When I revert back to the previous version of FS, <span
class=SpellE>streamFile</span> always fires the callback right away no matter
how quickly I press the first DTMF as the wav file starts to stream out.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>The wave file is R</span></font><st1:stockticker><font
face=Arial><span style='font-family:Arial'>IFF</span></font></st1:stockticker><font
face=Arial><span style='font-family:Arial'> (little-endian) data, </span></font><st1:stockticker><font
face=Arial><span style='font-family:Arial'>WAVE</span></font></st1:stockticker><font
face=Arial><span style='font-family:Arial'> audio, Microsoft PCM, 16 bit, mono
8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>The snippet of <span class=SpellE>js</span> code I am using
is as follows.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><span class=GramE><font size=3 face=Arial><span
style='font-size:12.0pt;font-family:Arial'>if(</span></font></span><span
class=SpellE><font face=Arial><span style='font-family:Arial'>session.ready</span></font></span><font
face=Arial><span style='font-family:Arial'>()) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span><span
class=SpellE><span class=GramE>session.answer</span></span><span class=GramE>(</span>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span><span
class=SpellE><span class=GramE>session.sleep</span></span><span class=GramE>(</span>750);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span><span
class=GramE>while(</span><span class=SpellE>session.ready</span>()) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span><span
class=SpellE><span class=GramE>session.sleep</span></span><span class=GramE>(</span>500);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span><span
class=SpellE><span class=GramE>session.flushDigits</span></span><span
class=GramE>(</span>); // clear out input buffers<span
style='mso-spacerun:yes'>
</span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span><span
class=GramE>if(</span>(pin=<span class=SpellE>session.streamFile</span>(<span
class=SpellE>snd_prefix+"/enter-acct-numbers.wav",onlyDigits_cb</span>,""))===false)
{<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'>
</span><span class=GramE>pin=</span><span class=SpellE>session.getDigits</span>(<span
class=SpellE>pinmax,pinterm,pinwait</span>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span>}
else {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'>
</span><span class=GramE>pin</span>+=<span class=SpellE>session.getDigits</span>(pinmax-1,pinterm,pinwait);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span
style='mso-spacerun:yes'> </span>//
more code here….<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Do I need to change the way I use <span class=SpellE>streamFile</span>
in the later release?<o:p></o:p></span></font></p>
</div>
</body>
</html>