mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Update SIP/IAX documentation and code (Bug #3810)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -9787,7 +9787,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
|
|||||||
} else if (!strcasecmp(v->name, "mask")) {
|
} else if (!strcasecmp(v->name, "mask")) {
|
||||||
maskfound++;
|
maskfound++;
|
||||||
inet_aton(v->value, &peer->mask);
|
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))
|
if (!realtime && ast_test_flag(peer, SIP_DYNAMIC))
|
||||||
peer->defaddr.sin_port = htons(atoi(v->value));
|
peer->defaddr.sin_port = htons(atoi(v->value));
|
||||||
else
|
else
|
||||||
@@ -10116,7 +10116,7 @@ static int reload_config(void)
|
|||||||
tos = 0;
|
tos = 0;
|
||||||
else
|
else
|
||||||
ast_log(LOG_WARNING, "Invalid tos value at line %d, should be 'lowdelay', 'throughput', 'reliability', 'mincost', or 'none'\n", v->lineno);
|
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) {
|
if (sscanf(v->value, "%i", &ourport) == 1) {
|
||||||
bindaddr.sin_port = htons(ourport);
|
bindaddr.sin_port = htons(ourport);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
;
|
;
|
||||||
[general]
|
[general]
|
||||||
;bindport=4569 ; bindport and bindaddr may be specified
|
;bindport=4569 ; bindport and bindaddr may be specified
|
||||||
|
; ; NOTE: bindport must be specified BEFORE bindaddr
|
||||||
|
; ; or may be specified on a specific bindaddr if followed by
|
||||||
|
; ; colon and port (e.g. bindaddr=192.168.0.1:4569)
|
||||||
;bindaddr=192.168.0.1 ; more than once to bind to multiple
|
;bindaddr=192.168.0.1 ; more than once to bind to multiple
|
||||||
; ; addresses, but the first will be the
|
; ; addresses, but the first will be the
|
||||||
; ; default
|
; ; default
|
||||||
|
|||||||
Reference in New Issue
Block a user