h.323 gk cycle is still broken on -r
authorJeremy McNamara <jj@nufone.net>
Tue, 13 Jan 2004 09:11:36 +0000 (09:11 +0000)
committerJeremy McNamara <jj@nufone.net>
Tue, 13 Jan 2004 09:11:36 +0000 (09:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2018 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c

index 992bb4b..d95de59 100755 (executable)
@@ -1327,6 +1327,10 @@ static int h323_no_debug(int fd, int argc, char *argv[])
 
 static int h323_gk_cycle(int fd, int argc, char *argv[])
 {
+       result RESULT_SUCCESS;
+
+/* This works from a full console, but not -r ?! */
+
        if (argc != 3) {
                return RESULT_SHOWUSAGE;
        }       
@@ -1334,7 +1338,7 @@ static int h323_gk_cycle(int fd, int argc, char *argv[])
        
        /* Possibly register with a GK */
        if (!gatekeeper_disable) {
-               if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
+// boom if -r  if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
                        ast_log(LOG_ERROR, "Gatekeeper registration failed.\n");
                }
        }