Connecting inbound and outbound channels

Hello at all
i´ am searching for an posibility to connect 2 channels
i have following szenario:
call comes in an starts an agi script
the callee well prompt an voicefile and after that an waitfile during the waitfile i will start an outbound call to an operator. if this operator answer this call he will prompt with an infovoice and after that he should enter an valid dtmf code. after entering he should be connected to the inbound channel

thanks and cheers helmut