Dynamic routes select extension from queue after post hangup


(Pscom) #1

Hi,

i have create a flow like:
inbound calls goes to a queue with static agents (linear). Availiable agent pickup the phone and on hangup i send the call to an IVR (post hangup) . The caller must press 3 to go to a voice mail of the user that he talk.
i am trying to add Dynamic Routes to select multiply agent based on $exten , on option 3 but i cannot get the extension of the agent that hangup the phone.

What is the correct method and how ? AGI or asterisk variable ?

Thanks