Hi everybody,
<div><br></div><div>I&#39;ve been working on a project which records the voice of the incoming call.</div><div><br></div><div>I use record_file function of asterisk as described below:</div><div><br></div><div><span style="color:rgb(153, 0, 0);font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(199, 208, 217)">RECORD FILE &lt;filename&gt; &lt;format&gt; &lt;escape digits&gt; &lt;timeout&gt; [offset samples] [BEEP] [s=&lt;silence&gt;]</span></div>

<div><span style="color:rgb(153, 0, 0);font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(199, 208, 217)"><br></span></div><div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">filename: record1</span></div>

<div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">format: wav</span></div><div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">escape digits: #</span></div>

<div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">timeout: -1</span></div><div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">offset samples: 0</span></div>

<div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">BEEP: 1</span></div><div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)">silence: 3000</span></div>

<div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;background-color:rgb(255, 255, 255)"><br></span></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><u>Please read the scenario for an incoming call:</u></span></font></div>

<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><u><br></u></span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">- The user calls the asterisk</span></font></div>

<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">- The user talks on the telephone</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">- Ends the conversation without pressing the escape digit (&quot;#&quot;)</span></font></div>

<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><br></span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">In this scenario, unfortunately, &quot;record file&quot; do not end automatically but since the &quot;silence&quot; field is</span></font></div>

<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">3 seconds, the record file function waits for 3 seconds to end.</span></font></div>
<div><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px"><br></span></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">After record file function is ended, I listened the recorded file and I heard a &quot;busy tone&quot; sound in this file as</span></font></div>

<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">&quot;beeep beeeep beeep&quot; continously.</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><br>
</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><u>My question:</u></span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><u><br>
</u></span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">Why do I need to hit the escape character (&#39;#&#39;) to end the &quot;record file&quot; function? Is there any way, that</span></font></div>
<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">asterisk shall detect that the caller has closed the telephone?</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><br>
</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">Regards.</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px"><br>
</span></font></div><div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:12px">Yaprak.</span></font></div>