Hello bro,
Set maxduration equals to silence and then check if the recorded file
exists with something like this :
GotoIf (
$["${STAT(e,/var/lib/asterisk/sounds/${RECORDED_FILE)}"="1"]?3:7
)
Best regards,
2016-05-07 19:19 GMT+02:00 Mamadou NGOM <ngom at numericap.com>:
> Hello everyone,
>
> I have just met a problem. When I record a sound with the following Record
> application :
>
> *record(filename.format [|silence] [|maxduration] [|option]) *
>
> For example: record (filename:wav, 0, 5,)
>
> 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.
>
> Is not the silence considered as a noise?
> If somebody met once this problem to help me.
>
> Best regards !!!
>
> Mamadou NGOM
>
> Ing?nieur T?l?communications & R?seaux
>
> Mobile: 06 72 45 23 03
>
> Skype: Mamadou Numericap
>
> NumeriCap ? SAS au capital de 30.000,00? - RCS de Toulon N? 530188432 ?
> TVA FR 485301188432 ? APE6110Z - ARCEP N?13/0015.
> si?ge social : ? le Galaxie C ? 526 avenue Mar?chal de Lattre de Tassigny
> 83000 Toulon. mail: finance at numericap.com <mail%3Afinance at
numericap.com>
> Centre d?exploitation : ? R?sidence les Coqui?res ? 11 avenue Joseph
> Fallen - 13400 Aubagne ? Tel :04.42.73.88.52
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
*Malick NDIAYE*
VoIP Software Developer - Telecoms Engineer
416 Avenue de la Division Leclerc,
92290 Ch?tenay-Malabry
Tel. +33 1 70 75 01 60
*Mob. +33 7 55 77 27 94*
*mndiaye at coverapps.fr <mndiaye at coverapps.fr>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20160508/533a367d/attachment.html>