[asterisk-commits] twilson: trunk r287932 - in /trunk: ./ main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 21 14:05:00 CDT 2010


Author: twilson
Date: Tue Sep 21 14:04:57 2010
New Revision: 287932

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287932
Log:
Merged revisions 287931 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r287931 | twilson | 2010-09-21 14:02:40 -0500 (Tue, 21 Sep 2010) | 2 lines
  
  Revert change in favor of a more targeted fix
........

Modified:
    trunk/   (props changed)
    trunk/main/channel.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=287932&r1=287931&r2=287932
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Sep 21 14:04:57 2010
@@ -8229,8 +8229,7 @@
 
 void ast_channel_update_connected_line(struct ast_channel *chan, const struct ast_party_connected_line *connected, const struct ast_set_party_connected_line *update)
 {
-	unsigned char data[1024] = { 0, };	/* This should be large enough */
-	unsigned char data2[sizeof(data)] = { 0, };
+	unsigned char data[1024];	/* This should be large enough */
 	size_t datalen;
 
 	datalen = ast_connected_line_build_data(data, sizeof(data), connected, update);
@@ -8238,10 +8237,7 @@
 		return;
 	}
 
-	/* Only send an update if the connected line info is different or the channels info is suspect */
-	if (ast_connected_line_build_data(data2, sizeof(data2), &chan->connected, update) == -1 || memcmp(data, data2, sizeof(data))) {
-		ast_indicate_data(chan, AST_CONTROL_CONNECTED_LINE, data, datalen);
-	}
+	ast_indicate_data(chan, AST_CONTROL_CONNECTED_LINE, data, datalen);
 }
 
 void ast_channel_queue_connected_line_update(struct ast_channel *chan, const struct ast_party_connected_line *connected, const struct ast_set_party_connected_line *update)




More information about the asterisk-commits mailing list