[Home]

Summary:ASTERISK-17513: preferred_codec_only=yes disables the video stream from caller to callee
Reporter:Angel Kafazov (akafazov)Labels:
Date Opened:2011-03-04 06:58:05.000-0600Date Closed:
Priority:TrivialRegression?No
Status:Open/NewComponents:Channels/chan_sip/CodecHandling
Versions:1.8.1 13.18.4 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:preferred_codec_only=yes in sip.conf causes one-directional video for video calls. This looks like codec negotiation problem since when a codec is selected in ast_codec_choose() only preferred codecs are considered. The problem is that video codecs are never in the preferred list (h263 is always missing from the peers' Codec Order) and therefore are never in the peer capabilities after calling ast_codec_choose(). The caller always gets 200 OK with  m=video 0 RTP/AVP in the SDP.

I have managed to work around this by modifying ast_codec_choose() to look for video codecs in the peer's capabilities and select it even though it is not in the preferred codec list. However a better solution might be to include video codecs in the Codec Order.
Comments: