[asterisk-users] Set Language not working!

2008-06-27 Thread Douglas Garstang
Argh! I have this...

[ct_start2]
exten = _X.,1,Set(LANGUAGE()=mig33/en/allison-tts)
exten = _X.,n,NoOp(${LANGUAGE()})
exten = _X.,n,Answer()
exten = _X.,n,Wait(1)
exten = 
_X.,n,Playback(/var/lib/asterisk/sounds/mig33/en/allison-tts/please-enter-your-pin)
exten = _X.,n,Playback(please-enter-your-pin)

The first playback works, and the second does not. I get:

-- Executing Playback(SIP/xxx.201.84.147-09f11b58, 
please-enter-your-pin) in new stack
Jun 27 18:28:27 WARNING[31382]: file.c:512 ast_openstream_full: File 
please-enter-your-pin does not exist in any format
Jun 27 18:28:27 WARNING[31382]: file.c:824 ast_streamfile: Unable to open 
please-enter-your-pin (format ulaw): No such file or directory
Jun 27 18:28:27 WARNING[31382]: app_playback.c:133 playback_exec: 
ast_streamfile failed on SIP/xxx.201.84.147-09f11b58 for please-enter-your-pin

The File exists...

[EMAIL PROTECTED] asterisk]# ls -l /var/lib/asterisk/sounds/mig33/en/allison-tts
total 16
-rw-r--r--  1 asterisk asterisk 13608 Jun 27 18:00 please-enter-your-pin.ulaw

What is wrong here? The call to set the language should cause Asterisk to look 
for sound files in /var/lib/asterisk/sounds/mig33/en/allison-tts, and the file 
IS there and IS readable because the first call with the explicit path works.

Asterisk 1.2.

Doug.


  ___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Set Language not working!

2008-06-27 Thread Tilghman Lesher
On Friday 27 June 2008 13:31:57 Douglas Garstang wrote:
 What is wrong here? The call to set the language should cause Asterisk to
 look for sound files in /var/lib/asterisk/sounds/mig33/en/allison-tts, and
 the file IS there and IS readable because the first call with the explicit
 path works.

 Asterisk 1.2.

In 1.2, language has a maximum length of 20 characters, including the
terminating NULL.  You have one character too many.

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users