[asterisk-users] Beep file with Record

Arjan Kroon | Mobillion Arjan.Kroon at mobillion.nl
Wed Oct 5 01:58:37 CDT 2011


I placed a beep.alaw file in de directory, but I get the same result.

Also I try to set the language just with two characters.
(exten => s,n,Set(CHANNEL(language)=nl))
And in the directory /var/lib/asterisk/sounds/nl/ I placed the voicefile beep.alaw.
But with this also I get also the same result.

-----Oorspronkelijk bericht-----
Van: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] Namens Danny Nicholas
Verzonden: 04-10-2011 17:16
Aan: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Onderwerp: Re: [asterisk-users] Beep file with Record

I see two "problems" here.  Problem 1 is that you are using the alaw codec, so it seems to me that you need this file to exist - /var/lib/asterisk/sounds/nl/fvdb/beep.alaw.  problem 2 is possibly just in my head as I am still avoiding Asterisk 1.8 like the plague;  AFAIK (or this is just a 1.4 thing?) Set(CHANNEL(language)=xx) xx should just be 2 characters, not xx/yyyy (nl/fvdb) (feel free to correct my assumption that language has not been expanded beyond the 2 character limitation)?


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Arjan Kroon | Mobillion
Sent: Tuesday, October 04, 2011 9:43 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Beep file with Record

Yes,

In the code I use set the language
exten => s,n,Set(CHANNEL(language)=nl/fvdb)

So therefore I try also to place the file in the directory /var/lib/asterisk/sounds/nl/fvdb/


-----Oorspronkelijk bericht-----
Van: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] Namens Andrew Latham
Verzonden: 04-10-2011 16:41
Aan: Asterisk Users Mailing List - Non-Commercial Discussion
Onderwerp: Re: [asterisk-users] Beep file with Record

On Tue, Oct 4, 2011 at 11:37 AM, Arjan Kroon | Mobillion <Arjan.Kroon at mobillion.nl> wrote:
> This is my complete CLI logging
>
> -- Executing [s@ serviceline:93] Record("CAPI/ISDN1#02/318647615-37", 
> "/var/lib/asterisk/sounds/recordings/serviceline/1317737932.67.wav,0,6
> 0") in new stack [Oct  4 16:19:38] WARNING[13370]: file.c:644 
> ast_openstream_full: File beep does not exist in any format [Oct  4 
> 16:19:38] WARNING[13370]: file.c:950 ast_streamfile: Unable to open 
> beep (format 0x8 (alaw)): No such file or directory [Oct  4 16:19:38] 
> WARNING[13370]: app_record.c:281 record_exec: ast_streamfile failed on 
> CAPI/ISDN1#02/318647615-37
>
> In de Conf file I use the following command:
> exten => 
> s,n,Set(A_serviceline_file=/var/lib/asterisk/sounds/recordings/service
> line/${UNIQUEID) exten => s,n,Record(${A_serviceline_file}.wav,0,60)
>
>
> -----Oorspronkelijk bericht-----
> Van: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] Namens Danny Nicholas
> Verzonden: 04-10-2011 16:30
> Aan: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Onderwerp: Re: [asterisk-users] Beep file with Record
>
> Usually this message is received because you did something like
> playback(beep.gsm) or playback(beep.wav) instead of playback(beep).  
> It is
> (IMO) somewhat confusing because you have to do record(foo.gsm) but 
> you have to playback using playback(foo).
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Arjan 
> Kroon | Mobillion
> Sent: Tuesday, October 04, 2011 9:21 AM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] Beep file with Record
>
> Hi,
>
> I'm using the functionality Record in asterisk 1.8.5.
> But when I want to record something I get the following error message:
> file.c:644 ast_openstream_full: File beep does not exist in any format
>
> Could anybody tell me where I have to place the beep.gsm file?
> I already tried the following directories:
>        /var/lib/asterisk/sounds/beep.gsm
>        /var/lib/asterisk/sounds/recordings/beep.gsm
>
> Regards,
>
> Arjan Kroon

Beep is called from
http://svn.asterisk.org/svn/asterisk/trunk/apps/app_record.c and it looks fine a first glance.  Are you using the language prefix?

--
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~

--
_____________________________________________________________________
-- 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
--
_____________________________________________________________________
-- 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


--
_____________________________________________________________________
-- 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



More information about the asterisk-users mailing list