[asterisk-bugs] [Asterisk 0014581]: playback and set language issue
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Mar 2 01:37:42 CST 2009
The following issue has been SUBMITTED.
======================================================================
http://bugs.digium.com/view.php?id=14581
======================================================================
Reported By: voipas
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14581
Category: Applications/app_playback
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.6.0.6
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-03-02 01:37 CST
Last Modified: 2009-03-02 01:37 CST
======================================================================
Summary: playback and set language issue
Description:
Hello,
I'm migrating from Asterisk 1.4.21.2 to Asterisk 1.6.0.6. And after
migrating my IVR doesn't work anymore. My IVR is a multi-language and main
issue is that Playback only plays prompts in English. This is my test
dialplan:
[test-prompt]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Set(TIMEOUT(digit)=3)
exten => s,n,Noop(New Call)
exten => s,n,Set(TIMEOUT(response)=60)
exten => s,n,Background(choose_language)
exten => s,n,WaitExten(4)
exten => 1,1,Noop(Pressed 1)
exten => 1,n,Set(CHANNEL(language)=lt)
exten => 1,n,Noop(Choose language LT)
exten => 1,n,Goto(123,1)
exten => 2,1,Noop(Pressed 2)
exten => 2,n,Set(CHANNEL(language)=en)
exten => 2,n,Noop(Choose language EN)
exten => 2,n,Goto(123,1)
exten => 123,1,Playback(test/enter-conf-pin-number_8)
In /var/lib/asterisk/sounds directory I've created test directory and lt
subdirectory:
find /var/lib/asterisk/sounds/test -name '*.wav'
/var/lib/asterisk/sounds/test/lt/enter-conf-pin-number_8.wav
/var/lib/asterisk/sounds/test/enter-conf-pin-number_8.wav
The ouptut of Asterisk is:
[Mar 2 09:23:47] VERBOSE[28399] logger.c: == Using SIP RTP CoS mark 5
[Mar 2 09:23:47] VERBOSE[32265] logger.c: -- Executing
[123456789 at from-trunk:1] Goto("SIP/111-ac15baf0", "test-prompt,s,1") in new
stack
[Mar 2 09:23:47] VERBOSE[32265] logger.c: -- Goto (test-prompt,s,1)
[Mar 2 09:23:47] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:1] Answer("SIP/111-ac15baf0", "") in new stack
[Mar 2 09:23:47] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:2] Wait("SIP/111-ac15baf0", "1") in new stack
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:3] Set("SIP/111-ac15baf0", "TIMEOUT(digit)=3") in new stack
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Digit timeout set to 3
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:4] NoOp("SIP/111-ac15baf0", "New Call") in new stack
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:5] Set("SIP/111-ac15baf0", "TIMEOUT(response)=60") in new
stack
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Response timeout set to
60
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- Executing
[s at test-prompt:6] BackGround("SIP/111-ac15baf0", "choose_language") in new
stack
[Mar 2 09:23:48] VERBOSE[32265] logger.c: -- <SIP/111-ac15baf0>
Playing 'choose_language.slin' (language 'en')
[Mar 2 09:24:06] VERBOSE[32265] logger.c: == CDR updated on
SIP/111-ac15baf0
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Executing
[1 at test-prompt:1] NoOp("SIP/111-ac15baf0", "Pressed 1") in new stack
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Executing
[1 at test-prompt:2] Set("SIP/111-ac15baf0", "CHANNEL(language)=lt") in new
stack
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Executing
[1 at test-prompt:3] NoOp("SIP/111-ac15baf0", "Choose language LT") in new
stack
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Executing
[1 at test-prompt:4] Goto("SIP/111-ac15baf0", "123,1") in new stack
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Goto
(test-prompt,123,1)
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- Executing
[123 at test-prompt:1] Playback("SIP/111-ac15baf0",
"test/enter-conf-pin-number_8") in new stack
[Mar 2 09:24:06] VERBOSE[32265] logger.c: -- <SIP/111-ac15baf0>
Playing 'test/enter-conf-pin-number_8.slin' (language 'lt')
[Mar 2 09:24:10] VERBOSE[32265] logger.c: -- Auto fallthrough,
channel 'SIP/111-ac15baf0' status is 'UNKNOWN'
From output you can see, that I pressed "1" and set language to "lt".
But Playback plays
/var/lib/asterisk/sounds/test/enter-conf-pin-number_8.wav promt (not
/var/lib/asterisk/sounds/test/lt/enter-conf-pin-number_8.wav)! In Asterisk
1.4.21.2 version worked fine for me.
Thanks
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-03-02 01:37 voipas New Issue
2009-03-02 01:37 voipas Asterisk Version => 1.6.0.6
2009-03-02 01:37 voipas Regression => No
2009-03-02 01:37 voipas SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list