Index: asterisk-ooh323c/src/chan_h323.c =================================================================== --- asterisk-ooh323c/src/chan_h323.c (revision 481) +++ asterisk-ooh323c/src/chan_h323.c (working copy) @@ -465,7 +465,7 @@ ast_getformatname_multiple(formats,512,format) ); oldformat = format; - format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1); + format &= AST_FORMAT_AUDIO_MASK; if (!format) { ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format " "'%d'\n", format);