<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Hi everybody,<div><br></div><div>I'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 <filename> <format> <escape digits> <timeout> [offset samples] [BEEP] [s=<silence>]</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 ("#")</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, "record file" do not end automatically but since the "silence" 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 "busy tone" sound in this file as</span></font></div>
<div><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size: 12px; ">"beeep beeeep beeep" 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 ('#') to end the "record file" 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></span>