<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
"...<font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">receiving digits from IVR
through dtmf and store it on a text file </span></font>"<br>
short idea:<br>
 1 IVR start<br>
 2 set(number=)<br>
 3 playback(press_digit_or_#_to_finish)<br>
 4 (pressed) set(number=${number}${digit_pressed})<br>
 5 playback(press_another_digit_or_#_to_finish)<br>
 6 if digit pressed goto(pressed[point 44])<br>
 7 if # pressed execute
System(put_string_with_pressed_didgits_into_text_file.sh
${digit_pressed} ${calleridnum})<br>
<br>
sh script<br>
#!/bin/bash<br>
digits=$1<br>
number=$2<br>
echo "$1" &gt;&gt; $2.txt<br>
<blockquote cite="mid004101c6a662$3beecf30$6e05a8c0@ck" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Dear <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"> I want to make<font
 color="navy"><span style="color: navy;"> a</span></font> billing
recharge through receiving digits from IVR
through dtmf and store it on a text file ,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">How can <font
 color="navy"><span style="color: navy;">to</span></font>do
that ?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Regards<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>