diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 09:11:36 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 09:11:36 +0000 |
commit | 16e0fa65d2886ff10c28c66c37cf671d462d4b0f (patch) | |
tree | 974eaaa9ad650327aacaf58e3d9ec6f5b857d808 /channels/chan_h323.c | |
parent | 2c2e8015bbc490a7d7c31b36ca638a1f45cc1273 (diff) |
h.323 gk cycle is still broken on -r
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2018 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-x | channels/chan_h323.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 992bb4b10..d95de59d7 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -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"); } } |