Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

ive setup asterisk with queues (agent.conf sip.conf queues.conf) Everything is working well.

I need to send caller's id to agent's machine (or web site) from queue.

something like this

.... exten => _200,n,Queue(qtest,t,,,10,",${MEMBERNAME},${QUEUENAME}")

MEMBERNAME and QUEUENAME are enabled by setinterfacevar=yes in queues.conf This doesnt work :(. and i cant get that variables in agi script.

What should i do?

share|improve this question
up vote 0 down vote accepted

That is very strange. Ive checked version 1.4.x, 1.6.x and 1.8.x and only one solution that was working everywhere was using macros.

like this:

exten => s,1,NoOp(${MEMBERINTERFACE})

exten => s,1,Queue(queue)


This macro will be executed right after agent will receive call. This helped me to solve the problem. I also can agi from macro

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.