I need to create 30 mins of GSM file for Asterisk . Silent / Blank file. Whats the best way to create it ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/b92821c0/attachment.htm
----- "David @ULC" <ucoms2001 at gmail.com> wrote:> >I need to create 30 mins of GSM file for Asterisk . >Silent / Blank file. >Whats the best way to create it ? >Enable recording using monitor() or mixmonitor() in GSM format, call, then put your handset on mute for 30 minutes. :-) --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100304/7edde0aa/attachment.htm
Record a muted channel for 30 minutes like this: exten => s,1,Answer(1) exten => s,n,Progress() exten => s,n,record(silence_long.gsm|1800|s) exten => s,n,hangup _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of David @ULC Sent: Thursday, March 04, 2010 4:52 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] 30 mins GSM file I need to create 30 mins of GSM file for Asterisk . Silent / Blank file. Whats the best way to create it ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100304/e6e702c7/attachment.htm
On Fri, 5 Mar 2010, David @ULC wrote:> I need to create 30 mins of GSM file for Asterisk . > > Silent / Blank file. > > Whats the best way to create it ?Record yourself thinking of the solution for 1/2 of an hour. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Record a muted channel for 30 minutes like this: exten => s,1,Answer(1) exten => s,n,Progress() exten => s,n,record(silence_long.gsm|1800|s) exten => s,n,hangup ---------------------------------------- Above option looks easy. What I have to dial from soft phone to get this ? On Fri, Mar 5, 2010 at 4:21 AM, David @ULC <ucoms2001 at gmail.com> wrote:> > I need to create 30 mins of GSM file for Asterisk . > > Silent / Blank file. > > Whats the best way to create it ? > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/13511ae1/attachment.htm
I believe we GSM of 8 bit for Asterisk ? On Fri, Mar 5, 2010 at 4:35 AM, David @ULC <ucoms2001 at gmail.com> wrote:> Record a muted channel for 30 minutes like this: > > exten => s,1,Answer(1) > > exten => s,n,Progress() > > exten => s,n,record(silence_long.gsm|1800|s) > > exten => s,n,hangup > > > ---------------------------------------- > > Above option looks easy. > > What I have to dial from soft phone to get this ? > > > > On Fri, Mar 5, 2010 at 4:21 AM, David @ULC <ucoms2001 at gmail.com> wrote: > >> >> I need to create 30 mins of GSM file for Asterisk . >> >> Silent / Blank file. >> >> Whats the best way to create it ? >> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/17678baf/attachment.htm
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
Score another top-notch tip for Tilghman!!! -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman Lesher Sent: Thursday, March 04, 2010 8:59 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] 30 mins GSM file 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 -- _____________________________________________________________________ -- 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
----- "Jeff LaCoursiere" <jeff at jeff.net> escreveu:> On Thu, 4 Mar 2010, Steve Howes wrote: > > > > > On 4 Mar 2010, at 23:11, Steve Edwards wrote: > >> On Thu, 4 Mar 2010, Steve Edwards wrote: > >>> On Fri, 5 Mar 2010, David @ULC wrote: > >>> > >>>> I need to create 30 mins of GSM file for Asterisk . > >>>> > >>>> Silent / Blank file. > >>>> > >>>> Whats the best way to create it ? > >>> > >>> Record yourself thinking of the solution for 1/2 of an hour. > >> > >> Use sox to concatenate 6.9 copies of John Cage's 4'33" > > > > Get permission first.. > > > > S > > > > Considering that was a 1950's era composition, perhaps the copyright > has > already expired? > > j >Haha epic thread. Now seriously. I'm not sure why you want to make a 30-minute gsm-encoded silent audio file, but I'm pretty sure there's a better way to accomplish what you want than doing that. If you explain us what you're trying to do, maybe we can help even more. Anyway... Audacity can easily create a blank file of any lenght. Export it as WAV and convert it to GSM using Asterisk with the "file convert" CLI command. Make sure you create the file with 8000khz sampling rate, 16-bit resolution and mono, otherwise Asterisk won't be able to play it. Well, but there's no audio on the file either... *head asplodes*
Sorry if you guys find this silly, 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*I need to enter above lines in my root prompt ? 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 ;* * * * * * * On Fri, Mar 5, 2010 at 4:36 AM, David @ULC <ucoms2001 at gmail.com> wrote:> > I believe we GSM of 8 bit for Asterisk ? > > > On Fri, Mar 5, 2010 at 4:35 AM, David @ULC <ucoms2001 at gmail.com> wrote: > >> Record a muted channel for 30 minutes like this: >> >> exten => s,1,Answer(1) >> >> exten => s,n,Progress() >> >> exten => s,n,record(silence_long.gsm|1800|s) >> >> exten => s,n,hangup >> >> >> ---------------------------------------- >> >> Above option looks easy. >> >> What I have to dial from soft phone to get this ? >> >> >> >> On Fri, Mar 5, 2010 at 4:21 AM, David @ULC <ucoms2001 at gmail.com> wrote: >> >>> >>> I need to create 30 mins of GSM file for Asterisk . >>> >>> Silent / Blank file. >>> >>> Whats the best way to create it ? >>> >>> >>> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/3d1e63b6/attachment.htm