[asterisk-commits] mvanbaak: branch 1.6.1 r170502 - in /branches/1.6.1: ./ channels/chan_h323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 23 11:49:55 CST 2009


Author: mvanbaak
Date: Fri Jan 23 11:49:55 2009
New Revision: 170502

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170502
Log:
Merged revisions 170501 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r170501 | mvanbaak | 2009-01-23 18:46:02 +0100 (Fri, 23 Jan 2009) | 1 line
  
  let's use SENTINEL where needed
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_h323.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_h323.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/channels/chan_h323.c?view=diff&rev=170502&r1=170501&r2=170502
==============================================================================
--- branches/1.6.1/channels/chan_h323.c (original)
+++ branches/1.6.1/channels/chan_h323.c Fri Jan 23 11:49:55 2009
@@ -1224,7 +1224,7 @@
 	struct ast_variable *var, *tmp;
 	struct oh323_alias *a;
 
-	var = ast_load_realtime("h323", "name", alias, NULL);
+	var = ast_load_realtime("h323", "name", alias, SENTINEL);
 
 	if (!var)
 		return NULL;
@@ -1438,10 +1438,10 @@
 	const char *username;
 
 	if (userbyalias)
-		var = ast_load_realtime("h323", "name", username = cd->call_source_aliases, NULL);
+		var = ast_load_realtime("h323", "name", username = cd->call_source_aliases, SENTINEL);
 	else {
 		username = (char *)NULL;
-		var = ast_load_realtime("h323", "host", cd->sourceIp, NULL);
+		var = ast_load_realtime("h323", "host", cd->sourceIp, SENTINEL);
 	}
 
 	if (!var)
@@ -1554,9 +1554,9 @@
 
 	/* First check on peer name */
 	if (peername)
-		var = ast_load_realtime("h323", "name", peername, NULL);
+		var = ast_load_realtime("h323", "name", peername, SENTINEL);
 	else if (sin) /* Then check on IP address for dynamic peers */
-		var = ast_load_realtime("h323", "host", addr = ast_inet_ntoa(sin->sin_addr), NULL);
+		var = ast_load_realtime("h323", "host", addr = ast_inet_ntoa(sin->sin_addr), SENTINEL);
 	else
 		return NULL;
 




More information about the asterisk-commits mailing list