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

 

Reply via email to