Custom Destination using $LANGUAGE variable -- Syntax help?

Using the “transfer to queue” syntax for a custom destination I have here is not working. The system simply hangs up on me. Here’s the last log lines before hangup…

Custom Destination Code: s,1,Queue(${LANGUAGE}q)

The custom destination is being called by a time condition…


– Executing [[email protected]:1] GotoIfTime(“Zap/1-1”, “08:00-18:00|mon-fri||?s|1|Queue(q)”) in new stack
== Spawn extension (timeconditions, 2, 1) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/1-1’


I can see that the problem is that the variable ${LANGUAGE} was not “inserted” as part of the queue name being transferred to…

Help? Suggestions?


Two problems I found…

first, a custom destination has to be slightly different, and second the variable name has apparently changed.

Using this worked:


It transferred successfully to the extension that has a SIP alias equal to the language code.

Now, how do I get it to go to a queue? or directly to voicemail?