Hi Guys.
I've had a lay off from Asterisk for 12 months but I am starting to look
into it again. I am not very Linux savvy and found it hard going the
last time. I've started playing with it in the last 3 weeks and I have
to admit to making more head way this time.
The first problem I'm stuck on and I cant find a solution to is that
sound files that I have recorded (be it by creating a temp file from an
extension number, or by recording in .wav) will not play when I try to
create a menu in the extension.conf
The relevant lines are:
exten => s,1,Wait,2
exten => s,2,Answer
exten => s,3,Background(mainmenu)
The mainmenu.gsm is sitting in the sounds folder.
I get an error on the console saying:
-- Executing Wait("SIP/timg-a4e6", "2") in new stack
-- Executing Answer("SIP/timg-a4e6", "") in new stack
-- Executing BackGround("SIP/timg-a4e6", "mainmenu") in
new stack
Jun 11 12:33:00 WARNING[1209214400]: file.c:464 ast_openstream: File
mainmenu d
oes not exist in any format
Jun 11 12:33:00 WARNING[1209214400]: file.c:752 ast_streamfile: Unable
to open
mainmenu (format ULAW): No such file or directory
== Spawn extension (default, s, 3) exited non-zero on 'SIP/timg-a4e6'
What am I doing wrong guys???
Cheers
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20040611/d947eae7/attachment.htm
have tried specifying the full path ?
Umar
-----Original Message-----
From: asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Tim Guy
Sent: 11 June 2004 12:39
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Background Playback fails
Hi Guys.
I've had a lay off from Asterisk for 12 months but I am starting to look
into it again. I am not very Linux savvy and found it hard going the last
time. I've started playing with it in the last 3 weeks and I have to admit
to making more head way this time.
The first problem I'm stuck on and I cant find a solution to is that sound
files that I have recorded (be it by creating a temp file from an extension
number, or by recording in .wav) will not play when I try to create a menu
in the extension.conf
The relevant lines are:
exten => s,1,Wait,2
exten => s,2,Answer
exten => s,3,Background(mainmenu)
The mainmenu.gsm is sitting in the sounds folder.
I get an error on the console saying:
-- Executing Wait("SIP/timg-a4e6", "2") in new stack
-- Executing Answer("SIP/timg-a4e6", "") in new stack
-- Executing BackGround("SIP/timg-a4e6", "mainmenu")
in new stack
Jun 11 12:33:00 WARNING[1209214400]: file.c:464 ast_openstream: File
mainmenu d
oes not exist in any format
Jun 11 12:33:00 WARNING[1209214400]: file.c:752 ast_streamfile: Unable to
open
mainmenu (format ULAW): No such file or directory
== Spawn extension (default, s, 3) exited non-zero on
'SIP/timg-a4e6'
What am I doing wrong guys???
Cheers
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20040611/e86f723d/attachment.htm
Not totally. I did read an archive that said DON'T put .gsm or .wav on the end (I have to admit to trying) so I assumed paths was a no-no as well. Shall I try it?? Tim -----Original Message----- From: usedcanon [mailto:usedcanon@yahoo.co.uk] Sent: 11 June 2004 12:40 To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] Background Playback fails have tried specifying the full path ? Umar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040611/a9591776/attachment.htm
It worked! Cool I assumed that as the demo sounds didn't have paths, mine wouldn't need them either. Thanks umar -----Original Message----- From: usedcanon [mailto:usedcanon@yahoo.co.uk] Sent: 11 June 2004 12:40 To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] Background Playback fails have tried specifying the full path ? Umar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040611/34dae839/attachment.htm