static char gatekeeper[100];
static int gatekeeper_disable = 1;
static int gatekeeper_discover = 0;
-static int manual = 0;
static int usingGk;
static int port = 1720;
static int jitter;
h323_gk_urq();
/* Possibly register with a GK */
- if (!gatekeeper_disable) {
+ if (gatekeeper_disable == 0) {
if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
ast_log(LOG_ERROR, "Gatekeeper registration failed.\n");
h323_end_process();
} else if (!strcasecmp(v->name, "context")) {
strncpy(default_context, v->value, sizeof(default_context)-1);
printf(" == Setting default context to %s\n", default_context);
- } else if (!strcasecmp(v->name, "manual")) {
- manual = ast_true(v->value);
} else if (!strcasecmp(v->name, "dtmfmode")) {
if (!strcasecmp(v->value, "inband"))
dtmfmode=H323_DTMF_INBAND;
reload_config();
/* Possibly register with a GK */
- if (!gatekeeper_disable) {
+ if (gatekeeper_disable == 0) {
if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
ast_log(LOG_ERROR, "Gatekeeper registration failed.\n");
h323_end_process();
}
/* Possibly register with a GK */
- if (!gatekeeper_disable) {
+ if (gatekeeper_disable == 0) {
if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
ast_log(LOG_ERROR, "Gatekeeper registration failed.\n");
h323_end_process();