[Asterisk-Users] Set(LANGUAGE()=language) - for queue

Tomislav Parčina tparcina at lama.hr
Mon Mar 6 08:33:02 MST 2006


Hi group!

How to set language for queue?
I have several queue's. In every queue, agents speaks different language. I need to announce queue-youarenext and similar on different languages.

This is what I have in my extensions.conf and it does set language, but when calls enters queue, it doesn't use that language.

exten => 313,1,Answer 
exten => 313,n,Set(LANGUAGE()=de)
exten => 313,n,Playback(callcentar/qnjemacki,skip)
exten => 313,n,Queue(njemacki|t|||3600)
exten => 313,n,GotoIfTime(8:00-16:00|mon-fri|*|*?313,8)
exten => 313,n,Playback(callcentar/rvnjemacki,skip)
exten => 313,n,VoiceMail,u221
exten => 313,n,Hangup
exten => 313,n,VoiceMail,b221
exten => 313,n,Hangup


And this is how it looks on CLI.

    -- Executing Goto("SIP/211-793f", "callcentre|313|1") in new stack
    -- Goto (callcentre,313,1)
    -- Executing Answer("SIP/211-793f", "") in new stack
    -- Executing Set("SIP/211-793f", "LANGUAGE()=de") in new stack
    -- Executing Playback("SIP/211-793f", "callcentar/qnjemacki|skip") in new stack
    -- Executing Queue("SIP/211-793f", "njemacki|t|||3600") in new stack
    -- outgoing agentcall, to agent '401', on 'Local/211 at internal-b3a7,1'
    -- Called Agent/401
    -- Executing Dial("Local/211 at internal-b3a7,2", "SIP/211|20|wWtT") in new stack
    -- Called 211
    -- SIP/211-5996 is ringing
    -- Agent/401 is ringing
    -- SIP/211-5996 answered Local/211 at internal-b3a7,2
    -- Agent/401 answered SIP/211-793f
    -- Playing 'callcentar/gpnjemacki' (language 'en')
  == Spawn extension (internal, 211, 1) exited non-zero on 'Local/211 at internal-b3a7,2'
    -- Playing 'queue-reporthold' (language 'en')
    -- Playing 'queue-less-than' (language 'en')
    -- Playing 'digits/2' (language 'en')
    -- Playing 'queue-minutes' (language 'en')
  


--
Tomislav Parcina
tparcina#lama.hr



More information about the asterisk-users mailing list