<div dir="ltr"><div>Hello bro,</div><div><br></div><div>Set maxduration equals to silence and then check if the recorded file exists with something like this :</div><div><br></div><div>GotoIf ( $["${STAT(e,/var/lib/asterisk/sounds/${RECORDED_FILE)}"="1"]?3:7 )</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-07 19:19 GMT+02:00 Mamadou NGOM <span dir="ltr"><<a href="mailto:ngom@numericap.com" target="_blank">ngom@numericap.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><p>Hello everyone,</p><p>I have just met a problem. When I record a sound with the following Record application :</p><p><em><strong>record(filename.format [|silence] [|maxduration] [|option]) </strong></em></p><p>For example: record (filename:wav, 0, 5,)</p><p> How can I detect if there is a sound or not, because I want to do a condition gotoif (.....) if there is no sound detected.</p><p>Is not the silence considered as a noise?<br>If somebody met once this problem to help me.</p><p>Best regards !!!</p><div><p>Mamadou NGOM</p><p>Ingénieur Télécommunications & Réseaux</p><p>Mobile: <a href="tel:06%2072%2045%2023%2003" value="+33672452303" target="_blank">06 72 45 23 03</a></p><p>Skype: Mamadou Numericap</p><p>NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. <br>siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. <a href="mailto:mail%3Afinance@numericap.com" target="_blank">mail: finance@numericap.com</a><br>Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :<a>04.42.73.88.52</a> <br></p></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#8e9090">Malick NDIAYE</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"></span></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#8e9090"><br></span></b></p><p class="MsoNormal"><font color="#8e9090" face="Arial, sans-serif"><span style="font-size:13.3333px">VoIP Software Developer - Telecoms Engineer</span></font></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><img src="https://docs.google.com/uc?id=0ByDaCIbUJAhUWEJ3aDFmTVlPWE0&export=download"></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><span style="color:rgb(142,144,144);font-family:Arial,sans-serif;font-size:10pt">416 Avenue de la Division Leclerc,</span></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><span style="color:rgb(142,144,144);font-family:Arial,sans-serif;font-size:10pt">92290 Châtenay-Malabry</span></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><span style="color:black;font-family:'Arial Unicode MS',sans-serif;font-size:10pt"> </span></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#8e9090">Tel. +33 1 70 75 01 60</span></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#8e9090">Mob. +33 7 55 77 27
94</span></b><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"></span></b></p><p class="MsoNormal" style="color:rgb(136,136,136);font-family:arial;font-size:small"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#8e9090"><span style="color:#0563c1"><a href="mailto:mndiaye@coverapps.fr">mndiaye@coverapps.fr</a></span></span></b></p></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>