How to make three way calling work?

hello, i currently running Asterisk 1.6.0.22, i just wonder how to make three way calling and call waiting work on my phone cisco ip phone 7940 or any phone on asterisk?

thank you