[asterisk-commits] mjordan: trunk r400461 - in /trunk: ./ main/channel_internal_api.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 3 16:46:08 CDT 2013
Author: mjordan
Date: Thu Oct 3 16:46:07 2013
New Revision: 400461
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400461
Log:
Remove publication of a channel snapshot when the technology is set
This patch removes said publication for a few reasons:
(1) It is unnecessary. Association of the channel technology with a specific
channel is an implementation detail that should be assumed to "just happen",
and consumers of Stasis don't need to be informed about it.
(2) Publication of said message can now cause crashes, as the actual creation
of a channel in normal locations now stages its messages. As a result, things
that create dummy channels (such as the SIP RTP QOS unit test) and associate
them with a channel technology were now crashing, as the channel itself was
not known by Stasis.
........
Merged revisions 400460 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/main/channel_internal_api.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: trunk/main/channel_internal_api.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel_internal_api.c?view=diff&rev=400461&r1=400460&r2=400461
==============================================================================
--- trunk/main/channel_internal_api.c (original)
+++ trunk/main/channel_internal_api.c Thu Oct 3 16:46:07 2013
@@ -879,7 +879,6 @@
void ast_channel_tech_set(struct ast_channel *chan, const struct ast_channel_tech *value)
{
chan->tech = value;
- ast_channel_publish_snapshot(chan);
}
enum ast_channel_adsicpe ast_channel_adsicpe(const struct ast_channel *chan)
{
More information about the asterisk-commits
mailing list