Dial Plan Variables

GoAutoDial CE 2.0 RC2 | Vicidial 2.2.1-237 Build 100510-2015 | Asterisk 1.4.27.1-1 | Single Server | Sangoma A104D (not used yet) | phpmyadmin installed after installation.
------
When an agent has a call on park and is dialing a number to transfer the call manually. Is there any way from the dial plan to know what agent or phone is initiating the call?
I'm trying to change CID based on the number being dialed. I've got this 50% finished, but when an agent is making the transfer I need to be able to see what the number they have parked so that I can set that number as the CID for the transfer dial.
The functionality would be similar to using
Variable: UserID=agent001
in the originate command being used to place the call with AMI. Then this variable can be used for the AGI lookup in the dial plan.
Any clues/tips ?
------
When an agent has a call on park and is dialing a number to transfer the call manually. Is there any way from the dial plan to know what agent or phone is initiating the call?
I'm trying to change CID based on the number being dialed. I've got this 50% finished, but when an agent is making the transfer I need to be able to see what the number they have parked so that I can set that number as the CID for the transfer dial.
The functionality would be similar to using
Variable: UserID=agent001
in the originate command being used to place the call with AMI. Then this variable can be used for the AGI lookup in the dial plan.
Any clues/tips ?