I would highly recommend IETF publication RFC2833\4733. This document explains just about everything you need to know about transmitting DTMF inband or out of band.
This guy explains it and many other SIP topics very well.

https://andrewjprokop.wordpress.com/2013/09/27/dtmf-and-rfc-2833-4733/