[asterisk-users] 30 mins GSM file

Tilghman Lesher tlesher at digium.com
Thu Mar 4 20:59:08 CST 2010


On Thursday 04 March 2010 16:51:54 David @ULC wrote:
> I need to create 30 mins of GSM file for Asterisk .
>
> Silent  / Blank file.
>
> Whats the best way to create it ?

One of the nicest things about gsm files is that having no file header,
you can concatenate multiple files and get the same effect as having
played the series of files.  Within the standard set of files is silence/10,
which is 10 seconds of silence.  Concatenate 180 instances of that file,
and the result will be 1800 seconds (30 minutes) of silence.

for i in `seq 1 180`; do cat /var/lib/asterisk/sounds/en/silence/10.gsm 
>> /var/lib/asterisk/sounds/30-minutes-of-silence.gsm ; done

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list