Start work on Asterisk 12 version.

This patch removes code that is already in Asterisk 12 branch.
Get the patch for Asterisk 12 compiling.

I assume this will work with chan_sip with no problems.  Next up is getting the
new PJSIP channel driver working with this.