title: asterisk get credit card info
body: <p>I`m trying to build a script that will capture the credit card info like card number,cvc and expiration date using asterisk 11.x and asterisk-java library for AMI/AGI integration.    </p>
  
  <p>Right now I am able to build a script that will acquire that info if it is called via dialplan but i have a different scenario:<br>
  1. A call enters a queue.<br>
  2. An agent from the specific queue answer the call<br>
  3. The caller wants to input the card details<br>
  4. After the caller has entered the card details is redirected back to agent to continue the call.  </p>
  
  <p>My specific problem is related to step 3 as I do not know how to route the caller to my AGI and then back to the same agent. (eventually the agents has to be still involved in (some) call to guarantee that when the caller returns from agi it is still available)<br>
  Any idea how can I achieve that ? I know that this is a common practice so I think that there has to be a way. </p>