--- channels/chan_sip.c 2010-12-09 23:10:31.000000000 +0100 +++ channels/chan_sip.c 2011-02-28 19:25:54.000000000 +0100 @@ -10771,16 +10771,6 @@ - Then other codecs in capabilities, including video */ - /* Prefer the audio codec we were requested to use, first, no matter what - Note that p->prefcodec can include video codecs, so mask them out - */ - if (capability & p->prefcodec) { - int codec = p->prefcodec & AST_FORMAT_AUDIO_MASK; - - add_codec_to_sdp(p, codec, &m_audio, &a_audio, debug, &min_audio_packet_size); - alreadysent |= codec; - } - /* Start by sending our preferred audio/video codecs */ for (x = 0; x < 32; x++) { int codec;