<div>Only need to make change in file.c :</div>
<div>int ast_language_is_prefix = 0</div>
<div>And that's all!<br><br></div>
<div class="gmail_quote">2009/2/27 Giedrius Augys <span dir="ltr"><<a href="mailto:voipas@gmail.com">voipas@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div> </div>
<div> I have problem with Asterisk 1.6.0.1. I need to change language for playing prompts in Lithuanian. But in Asterisk 1.6.0.1 version everytime plays in English, but in Asterisk 1.4.x I haven't any problem. Maybe it is a bug ...? So I paste my test dialpan and prompt's locations. I hope this helps you.</div>
<div> </div>
<div>
<div>Files are:</div>
<div>[root@voip asterisk]# find /var/lib/asterisk/sounds/test -name '*.wav'<br>/var/lib/asterisk/sounds/test/lt/enter-conf-pin-number_8.wav<br>/var/lib/asterisk/sounds/test/enter-conf-pin-number_8.wav</div>
<div><br clear="all">Dialplan:</div>
<div> </div></div>
<div>[test-prompt]</div>
<div>exten => s,1,Answer<br>exten => s,n,Wait(1)<br>exten => s,n(begin),Set(TIMEOUT(digit)=3)<br>exten => s,n,Noop(New Call)<br>exten => s,n,Set(TIMEOUT(response)=60)<br>exten => s,n,Background(choose_language)<br>
exten => s,n,WaitExten(8)</div>
<div>exten => 1,1,Set(CHANNEL(language)=lt)<br>exten => 1,n,Goto(123,1)</div>
<div>exten => 2,1,Set(CHANNEL(language)=en)<br>exten => 2,n,Goto(123,1)</div>
<div>exten => 123,1,Playback(test/enter-conf-pin-number_8)</div>
<div> </div>
<div>The output:</div>
<div>-- Executing [37052058370@from-trunk:1] Goto("SIP/111-b4091d40", "test-prompt,s,1") in new stack<br> -- Goto (test-prompt,s,1)<br> -- Executing [s@test-prompt:1] Answer("SIP/111-b4091d40", "") in new stack<br>
-- Executing [s@test-prompt:2] Wait("SIP/111-b4091d40", "1") in new stack<br> -- Executing [s@test-prompt:3] Set("SIP/111-b4091d40", "TIMEOUT(digit)=3") in new stack<br> -- Digit timeout set to 3<br>
-- Executing [s@test-prompt:4] NoOp("SIP/111-b4091d40", "New Call") in new stack<br> -- Executing [s@test-prompt:5] Set("SIP/111-b4091d40", "TIMEOUT(response)=60") in new stack<br>
-- Response timeout set to 60<br> -- Executing [s@test-prompt:6] BackGround("SIP/111-b4091d40", "choose_language") in new stack<br> -- <SIP/111-b4091d40> Playing 'choose_language.slin' (language 'en')<br>
== CDR updated on SIP/111-b4091d40<br> -- Executing [1@test-prompt:1] Set("SIP/111-b4091d40", "CHANNEL(language)=lt") in new stack<br> -- Executing [1@test-prompt:2] Goto("SIP/111-b4091d40", "123,1") in new stack<br>
-- Goto (test-prompt,123,1)<br> -- Executing [123@test-prompt:1] Playback("SIP/111-b4091d40", "test/enter-conf-pin-number_8") in new stack<br> -- <SIP/111-b4091d40> Playing 'test/enter-conf-pin-number_8.slin' (language 'lt')<br>
-- Auto fallthrough, channel 'SIP/111-b4091d40' status is 'UNKNOWN'<br></div>
<div> </div>
<div>Thanks<br></div>
<div><br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br></div></blockquote></div><br><br clear="all"><br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br>