[asterisk-users] [Solved] change language and playback issue

Giedrius Augys voipas at gmail.com
Mon Mar 2 06:55:45 CST 2009


Only need to make change in file.c :
int ast_language_is_prefix = 0
And that's all!

2009/2/27 Giedrius Augys <voipas at gmail.com>

> Hi,
>
>   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.
>
>  Files are:
> [root at voip asterisk]# 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
>
> 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(8)
> exten => 1,1,Set(CHANNEL(language)=lt)
> exten => 1,n,Goto(123,1)
> exten => 2,1,Set(CHANNEL(language)=en)
> exten => 2,n,Goto(123,1)
> exten => 123,1,Playback(test/enter-conf-pin-number_8)
>
> The output:
> -- Executing [37052058370 at from-trunk:1] Goto("SIP/111-b4091d40",
> "test-prompt,s,1") in new stack
>     -- Goto (test-prompt,s,1)
>     -- Executing [s at test-prompt:1] Answer("SIP/111-b4091d40", "") in new
> stack
>     -- Executing [s at test-prompt:2] Wait("SIP/111-b4091d40", "1") in new
> stack
>     -- Executing [s at test-prompt:3] Set("SIP/111-b4091d40",
> "TIMEOUT(digit)=3") in new stack
>     -- Digit timeout set to 3
>     -- Executing [s at test-prompt:4] NoOp("SIP/111-b4091d40", "New Call") in
> new stack
>     -- Executing [s at test-prompt:5] Set("SIP/111-b4091d40",
> "TIMEOUT(response)=60") in new stack
>     -- Response timeout set to 60
>     -- Executing [s at test-prompt:6] BackGround("SIP/111-b4091d40",
> "choose_language") in new stack
>     -- <SIP/111-b4091d40> Playing 'choose_language.slin' (language 'en')
>   == CDR updated on SIP/111-b4091d40
>     -- Executing [1 at test-prompt:1] Set("SIP/111-b4091d40",
> "CHANNEL(language)=lt") in new stack
>     -- Executing [1 at test-prompt:2] Goto("SIP/111-b4091d40", "123,1") in
> new stack
>     -- Goto (test-prompt,123,1)
>     -- Executing [123 at test-prompt:1] Playback("SIP/111-b4091d40",
> "test/enter-conf-pin-number_8") in new stack
>     -- <SIP/111-b4091d40> Playing 'test/enter-conf-pin-number_8.slin'
> (language 'lt')
>     -- Auto fallthrough, channel 'SIP/111-b4091d40' status is 'UNKNOWN'
>
> Thanks
>
> --
> Pagarbiai  / Best Regards,
> Giedrius Augys
>



-- 
Pagarbiai  / Best Regards,
Giedrius Augys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090302/851722aa/attachment.htm 


More information about the asterisk-users mailing list