[svn-commits] may: branch 1.8 r355136 - /branches/1.8/addons/chan_ooh323.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 14 03:41:40 CST 2012


Author: may
Date: Tue Feb 14 03:41:38 2012
New Revision: 355136

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355136
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)


Modified:
    branches/1.8/addons/chan_ooh323.c

Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=355136&r1=355135&r2=355136
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Tue Feb 14 03:41:38 2012
@@ -449,8 +449,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", ch->name, "OOH323", i->call_reference);
+		}
 	} else
 		ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
 




More information about the svn-commits mailing list