Dtmf after queue problem

I have a phpagi script and works fine when the extension transfer the
user to the script, but if i put a queue, extension get the call and
transfer the dtmf digits does not recognize