From: Matthew Jordan Date: Wed, 14 Dec 2011 22:34:51 +0000 (+0000) Subject: Added support for all slin formats to app_originate X-Git-Tag: 10.1.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ac30d14c28b1e78f5a1ddd0a69e154992f2e95;p=thirdparty%2Fasterisk.git Added support for all slin formats to app_originate Previously, app_originate could not originate a call into a non-8kHz conference bridge as the formats for non-8kHz slin codecs were not applied to the created channel. This patch adds all of the formats by default, such that if a created channel has a codec that supports a higher sampling rate, a translation path can be built between it and other channels. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@348265 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_originate.c b/apps/app_originate.c index 5cfd413867..0a1192f05d 100644 --- a/apps/app_originate.c +++ b/apps/app_originate.c @@ -116,6 +116,14 @@ static int originate_exec(struct ast_channel *chan, const char *data) goto return_cleanup; } ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR12, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR16, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR24, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR32, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR44, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR48, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR96, 0)); + ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR192, 0)); if (ast_strlen_zero(data)) { ast_log(LOG_ERROR, "Originate() requires arguments\n");