Hello,
I’m trying to create a macro that contains extensions number which answered the call in a queue. What I have in my extensions.conf is:
exten => 1006,1,Verbose(2,${CALLERID(all)} entering the support queue)
same => n,Queue(support, , , , , ,answer)
same => n,Hangup()
[macro-answer]
exten = s,1,NoOp()
same = n,Verbose(2,Ext: ${EXTEN} dnid: ${CALLERID(dnid)} Macro Ext: ${MACRO_EXTEN})
However I got:
-- PJSIP/1001-00000019 answered PJSIP/1000-00000018
-- Executing [s@macro-answer:1] NoOp("PJSIP/1001-00000019", "") in new stack
-- Executing [s@macro-answer:2] Verbose("PJSIP/1001-00000019", "2,Ext: s dnid: Macro Ext: 1006") in new stack
Is there a way to get the extension number 1001 for example ?
Thanks !!!