We have a group of managers who can pick up calls each other (when someone is absent). Normally when manager answers a call, some macro executes and sends various information to the manager’s computer based on caller ID. But if manager is absent, somebody picks up the call and the macro works incorrectly. How can I determine, who picked up call in a moment of picking up, in order to know which computer to send information? CDR(dstchannel) not working.
I’m using Asterisk 13.
Please help!
If I remember right,
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL
The peername argument perhaps
Also,
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables
BRIDGEPEER perhaps.
I haven’t used either of those in a while so I could be remembering wrong.
Thank you very much! Channel(peername) solved my problem.