[asterisk-commits] dlee: branch dlee/performance r399336 - /team/dlee/performance/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 18 00:30:30 CDT 2013
Author: dlee
Date: Wed Sep 18 00:30:28 2013
New Revision: 399336
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399336
Log:
ast_getformatname_multiple ain't cheap
Modified:
team/dlee/performance/main/stasis_channels.c
Modified: team/dlee/performance/main/stasis_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/performance/main/stasis_channels.c?view=diff&rev=399336&r1=399335&r2=399336
==============================================================================
--- team/dlee/performance/main/stasis_channels.c (original)
+++ team/dlee/performance/main/stasis_channels.c Wed Sep 18 00:30:28 2013
@@ -174,7 +174,9 @@
{
RAII_VAR(struct ast_channel_snapshot *, snapshot, NULL, ao2_cleanup);
RAII_VAR(struct ast_bridge *, bridge, NULL, ao2_cleanup);
+#if 0
char nativeformats[256];
+#endif
struct ast_str *write_transpath = ast_str_alloca(256);
struct ast_str *read_transpath = ast_str_alloca(256);
struct ast_party_id effective_connected_id;
@@ -236,8 +238,10 @@
ast_string_field_set(snapshot, bridgeid, bridge->uniqueid);
}
+#if 0
ast_string_field_set(snapshot, nativeformats, ast_getformatname_multiple(nativeformats, sizeof(nativeformats),
- ast_channel_nativeformats(chan)));
+ ast_channel_nativeformats(chan)));
+#endif
ast_string_field_set(snapshot, readformat, ast_getformatname(ast_channel_readformat(chan)));
ast_string_field_set(snapshot, writeformat, ast_getformatname(ast_channel_writeformat(chan)));
ast_string_field_set(snapshot, writetrans, ast_translate_path_to_str(ast_channel_writetrans(chan), &write_transpath));
More information about the asterisk-commits
mailing list