[asterisk-commits] may: trunk r355138 - in /trunk: ./ addons/chan_ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 14 03:58:47 CST 2012


Author: may
Date: Tue Feb 14 03:58:46 2012
New Revision: 355138

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355138
Log:
call manager_event only if there is not null channel structure

(Closes issue ASTERISK-19298)
Reported by: robinfood
Patches:
        issue19298.patch uploaded by may213 (License #5415)
........

Merged revisions 355136 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 355137 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/addons/chan_ooh323.c

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

Modified: trunk/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_ooh323.c?view=diff&rev=355138&r1=355137&r2=355138
==============================================================================
--- trunk/addons/chan_ooh323.c (original)
+++ trunk/addons/chan_ooh323.c Tue Feb 14 03:58:46 2012
@@ -476,8 +476,11 @@
 			} 
 	 	}
 
-		manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate", "Channel: %s\r\nChanneltype: %s\r\n"
+		if (ch) {
+			manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate", 
+				"Channel: %s\r\nChanneltype: %s\r\n"
 				"CallRef: %d\r\n", ast_channel_name(ch), "OOH323", i->call_reference);
+		}
 	} else
 		ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
 




More information about the asterisk-commits mailing list