let's use SENTINEL where needed
[asterisk/asterisk.git] / 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;