[asterisk-commits] qwell: branch qwell/http-channels-post r390511 - /team/qwell/http-channels-po...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 5 13:11:13 CDT 2013
Author: qwell
Date: Wed Jun 5 13:11:11 2013
New Revision: 390511
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390511
Log:
Remove default format caps, letting the dial API choose.
Modified:
team/qwell/http-channels-post/res/stasis_http/resource_channels.c
Modified: team/qwell/http-channels-post/res/stasis_http/resource_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/http-channels-post/res/stasis_http/resource_channels.c?view=diff&rev=390511&r1=390510&r2=390511
==============================================================================
--- team/qwell/http-channels-post/res/stasis_http/resource_channels.c (original)
+++ team/qwell/http-channels-post/res/stasis_http/resource_channels.c Wed Jun 5 13:11:11 2013
@@ -319,10 +319,6 @@
char dialdevice[AST_CHANNEL_NAME];
int timeout = 30000;
- int reason;
-
- struct ast_format_cap *cap = ast_format_cap_alloc_nolock();
- struct ast_format tmp_fmt;
const char *app = "Stasis";
RAII_VAR(struct ast_str *, appdata, ast_str_create(64), ast_free);
@@ -336,8 +332,6 @@
if (!ast_strlen_zero(args->app_args)) {
ast_str_append(&appdata, 0, ",%s", args->app_args);
}
-
- ast_format_cap_add(cap, ast_format_set(&tmp_fmt, AST_FORMAT_SLINEAR, 0));
if (args->endpoint) {
char *tmp = ast_strdupa(args->endpoint);
@@ -355,9 +349,7 @@
ast_log(LOG_DEBUG, "Dialing %s/%s\n", dialtech, dialdevice);
/* originate a channel, putting it into an application */
- ast_pbx_outgoing_app(dialtech, cap, dialdevice, timeout, app, ast_str_buffer(appdata), &reason, 0, NULL, NULL, NULL, NULL, NULL);
-
- ast_format_cap_destroy(cap);
+ ast_pbx_outgoing_app(dialtech, NULL, dialdevice, timeout, app, ast_str_buffer(appdata), NULL, 0, NULL, NULL, NULL, NULL, NULL);
stasis_http_response_no_content(response);
}
More information about the asterisk-commits
mailing list