mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -818,6 +818,11 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
|
||||
unsigned int src_audio = powerof(src & AST_FORMAT_AUDIO_MASK);
|
||||
unsigned int src_video = powerof(src & AST_FORMAT_VIDEO_MASK);
|
||||
|
||||
/* if we don't have a source format, we just have to try all
|
||||
possible destination formats */
|
||||
if (!src)
|
||||
return dest;
|
||||
|
||||
AST_LIST_LOCK(&translators);
|
||||
|
||||
for (x = 1; x < AST_FORMAT_MAX_AUDIO; x <<= 1) {
|
||||
|
Reference in New Issue
Block a user