From: Joshua Colp Date: Mon, 22 Jan 2007 16:23:03 +0000 (+0000) Subject: Explicitly declare what codecs are supported by default globally since using a bitmas... X-Git-Tag: 1.2.15~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46636d6fa09bf68029d9d5ef0f556072f3f734b;p=thirdparty%2Fasterisk.git Explicitly declare what codecs are supported by default globally since using a bitmask for all may include ones we don't need. (issue #8357 reported by gknispel_proformatique) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51359 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_h323.c b/channels/chan_h323.c index b86d684c87..1b4a616a5f 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -2021,7 +2021,7 @@ int reload_config(void) memset(&global_options, 0, sizeof(global_options)); global_options.dtmfcodec = 101; global_options.dtmfmode = H323_DTMF_RFC2833; - global_options.capability = ~0; /* All capabilities */ + global_options.capability = AST_FORMAT_G723_1 | AST_FORMAT_GSM | AST_FORMAT_ULAW | AST_FORMAT_ALAW | AST_FORMAT_G729A | AST_FORMAT_H261; global_options.bridge = 1; /* Do native bridging by default */ v = ast_variable_browse(cfg, "general"); while(v) {