Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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,"test.pl,${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

1 Answer 1

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:

extensions.conf
[macro-mymacro]
exten => s,1,NoOp(${MEMBERINTERFACE})

[queue]
exten => s,1,Queue(queue)

queues.conf
setinterfacevar=yes
membermacro=mymacro

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

 
discard

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.