[Asterisk-Users] Background Playback fails

Tim Guy Tim at nsoptimum.co.uk
Fri Jun 11 04:38:32 MST 2004


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


More information about the asterisk-users mailing list