diff options
author | Mark Spencer <markster@digium.com> | 2005-03-21 02:17:36 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-21 02:17:36 +0000 |
commit | b0fa3b6450dc1177f73abf6496dc6366f7fa2573 (patch) | |
tree | 9777ba311d10ca82717a3efbfd1c1a859b41589f /channels/chan_sip.c | |
parent | 8085c618c0edd754522e9c243cbaab8411592af3 (diff) |
Update SIP/IAX documentation and code (Bug #3810)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f27eb4461..152efe562 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9787,7 +9787,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int } else if (!strcasecmp(v->name, "mask")) { maskfound++; inet_aton(v->value, &peer->mask); - } else if (!strcasecmp(v->name, "port") || !strcasecmp(v->name, "bindport")) { + } else if (!strcasecmp(v->name, "port")) { if (!realtime && ast_test_flag(peer, SIP_DYNAMIC)) peer->defaddr.sin_port = htons(atoi(v->value)); else @@ -10116,7 +10116,7 @@ static int reload_config(void) tos = 0; else ast_log(LOG_WARNING, "Invalid tos value at line %d, should be 'lowdelay', 'throughput', 'reliability', 'mincost', or 'none'\n", v->lineno); - } else if (!strcasecmp(v->name, "port")) { + } else if (!strcasecmp(v->name, "bindport")) { if (sscanf(v->value, "%i", &ourport) == 1) { bindaddr.sin_port = htons(ourport); } else { |