Pay attention to fmtp when matching codecs. Fix matching logic around

channels.