diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-31 18:42:09 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-31 18:42:09 +0000 |
commit | 17e27f0d8f713782b858057464e29f9f7e971e3f (patch) | |
tree | 58062a8a6b6a30ab0d1c6f7c93d9c487e2532cec /channels/h323/chan_h323.c | |
parent | c98bfb03024d976de523c73d7c4602004d1b30d9 (diff) |
remove references to jitter as we use Asterisk's RTP and fix a silly typo
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1066 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/chan_h323.c')
-rwxr-xr-x | channels/h323/chan_h323.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index 9227d94bc..68e4ebfae 100755 --- a/channels/h323/chan_h323.c +++ b/channels/h323/chan_h323.c @@ -72,7 +72,6 @@ static int gatekeeper_disable = 1; static int gatekeeper_discover = 0; static int usingGk; static int port = 1720; -static int jitter; static int gkroute = 0; /* Just about everybody seems to support ulaw, so make it a nice default */ @@ -204,7 +203,7 @@ static struct oh323_alias *build_alias(char *name, struct ast_variable *v) } else if (!strcasecmp(v->name, "context")) { strncpy(alias->context, v->value, sizeof(alias->context)-1); } else if (!strcasecmp(v->name, "secret")) { - strncpy(alias->prefix, v->value, sizeof(alias->secret)-1); + strncpy(alias->secret, v->value, sizeof(alias->secret)-1); } v = v->next; } @@ -1340,14 +1339,7 @@ int reload_config() v = ast_variable_browse(cfg, "general"); while(v) { /* Create the interface list */ - if (!strcasecmp(v->name, "jitter")) { - jitter = (int) strtol(v->value, NULL, 10); - if (jitter < 20 || jitter > 10000) { - ast_log(LOG_NOTICE, "Invalid jitter value! Valid range: 20ms to 10000ms. Recommended: 100ms"); - ast_destroy(cfg); - return 0; - } - } else if (!strcasecmp(v->name, "port")) { + if (!strcasecmp(v->name, "port")) { port = (int)strtol(v->value, NULL, 10); } else if (!strcasecmp(v->name, "bindaddr")) { if (!(hp = gethostbyname(v->value))) { @@ -1643,7 +1635,7 @@ int load_module() connection_made, send_digit); /* start the h.323 listener */ - if (h323_start_listener(port, bindaddr, jitter)) { + if (h323_start_listener(port, bindaddr)) { ast_log(LOG_ERROR, "Unable to create H323 listener.\n"); // h323_end_process(); return -1; |