Not Logged in - No Account?
Logging in allows you to post to forums, track new posts, subscribe to threads, pm (private message) other members, and receive periodic news letters. Once logged in this message disappears. No account? Create one by registering here. Lost your password, request a new password. We respect your privacy and collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for details.
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 [2@timeconditions: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?
Thanks!
R. Eriks Goodwin
UniMatrix xSP
Application, VPS and Server Hosting
http//www.unimatrix.net

Using GoTo(.... to transfer a caller to a queue?
Two problems I found...
first, a custom destination has to be slightly different, and second the variable name has apparently changed.
Using this worked:
default,${CHANNEL(language)},1
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?
R. Eriks Goodwin
UniMatrix xSP
Application, VPS and Server Hosting
http//www.unimatrix.net