let's use SENTINEL where needed
authorMichiel van Baak <michiel@vanbaak.info>
Fri, 23 Jan 2009 17:46:02 +0000 (17:46 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Fri, 23 Jan 2009 17:46:02 +0000 (17:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170501 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c

index 13526b9..f327b9b 100644 (file)
@@ -1224,7 +1224,7 @@ static struct oh323_alias *realtime_alias(const char *alias)
        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 @@ static struct oh323_user *realtime_user(const call_details_t *cd)
        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 @@ static struct oh323_peer *realtime_peer(const char *peername, struct sockaddr_in
 
        /* 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;