[Asterisk-Users] Language settings not working in astcc

Ronald Wiplinger ronald at elmit.com
Tue Oct 18 18:18:02 MST 2005


I have now finally installed additional languages, however it is not 
working as I expected.

The normal user comes in via the context [std] a chinese user comes in 
via context [cn-std]

[cn-std]
exten => .,1,Set(LANGUAGE()=cn)        ; Set language to Chinese
include => std

I hope that this means set the language to Chinese for any number.



[std]
...
exten => 
_91NXXNXXXXXX,4,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN:${TRUNKMSD}},${TARIFF})
exten => _91NXXNXXXXXX,5,hangup
;
include => inhouse
include => wakeup
include => meetme
include => parkedcalls
include => voicemail


Everywhere it takes English, even when I dial 698 (say unixtime) which 
is an extension in [inhouse]
exten => 698,1,SayUnixTime
exten => 698,2,Hangup

[Oct 19 09:01:41]     -- Executing SayUnixTime("SIP/602-8824", "") in 
new stack
[Oct 19 09:01:41]     -- Playing 'digits/day-3' (language 'en')
[Oct 19 09:01:42]     -- Playing 'digits/mon-9' (language 'en')
[Oct 19 09:01:43]     -- Playing 'digits/h-19' (language 'en')
[Oct 19 09:01:44]     -- Playing 'digits/2' (language 'en')
[Oct 19 09:01:45]     -- Playing 'digits/thousand' (language 'en')
[Oct 19 09:01:46]     -- Playing 'digits/5' (language 'en')
[Oct 19 09:01:46]     -- Playing 'digits/at' (language 'en')
[Oct 19 09:01:47]     -- Playing 'digits/9' (language 'en')
[Oct 19 09:01:48]     -- Playing 'digits/oh' (language 'en')
[Oct 19 09:01:48]     -- Playing 'digits/1' (language 'en')
[Oct 19 09:01:49]     -- Playing 'digits/a-m' (language 'en')


HOWEVER, if I dial 1000 from another phone in another context, than 
select 3 for the Language setting Chinese and than 1234  which is a part 
of [demo], than I hear a "wait" in Chinese:
[Oct 19 09:15:39]     -- Playing 'transfer' (language 'cn')

How can I solve that the Language can be used according to the context?


bye

Ronald Wiplinger




More information about the asterisk-users mailing list