Speed dial with following DMTF code sending

Hi,

I want to setup a speed dial number (as misc application or just extension number) but after dialing to an external number there should also a predefined pincode send via DMTF including waiting and a second pincode.

How can I do this ?

Thanks
Kai