summaryrefslogtreecommitdiff
path: root/apps/app_originate.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2011-12-14 22:36:30 +0000
committerMatthew Jordan <mjordan@digium.com>2011-12-14 22:36:30 +0000
commit7a3bda0ce39be5c26a9b73d4402cd19419a31804 (patch)
treee3a67d16333bc997adec4a61140e766221982dd3 /apps/app_originate.c
parentaaa715bfae8dd41aeb922a2ed9406fe066016ad9 (diff)
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. ........ Merged revisions 348265 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_originate.c')
-rw-r--r--apps/app_originate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/app_originate.c b/apps/app_originate.c
index 03bb6c44b..4756b68b6 100644
--- a/apps/app_originate.c
+++ b/apps/app_originate.c
@@ -120,6 +120,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");