Queue Member Macro Argument

Is there a way to pass arguments to the membermacro of a queue or can we access CallerID of the caller being bridged to an agent?

The callerid is available inside the macro that is called when bridged. ${CALLERID(num)}.
You may want to put a DumpChan() in the macro and see what is all available to you.

CALLERID(num) works in the macro but not if called from Queue() application. However, I solved it by calling CONNECTEDLINE(num). DumpChan() does show the caller ID though, but I don’t know why can’t I use CALLERID().

What version of Asterisk are you using? CALLERID works on my 1.8.6 and 1.8.7 systems.