mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@41356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -12477,7 +12477,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
|
|||||||
peer->expire = -1;
|
peer->expire = -1;
|
||||||
ast_clear_flag(&peer->flags_page2, SIP_PAGE2_DYNAMIC);
|
ast_clear_flag(&peer->flags_page2, SIP_PAGE2_DYNAMIC);
|
||||||
if (!obproxyfound || !strcasecmp(v->name, "outboundproxy")) {
|
if (!obproxyfound || !strcasecmp(v->name, "outboundproxy")) {
|
||||||
if (ast_get_ip_or_srv(&peer->addr, v->value, "_sip._udp")) {
|
if (ast_get_ip_or_srv(&peer->addr, v->value, srvlookup ? "_sip._udp" : NULL)) {
|
||||||
ASTOBJ_UNREF(peer, sip_destroy_peer);
|
ASTOBJ_UNREF(peer, sip_destroy_peer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -12765,7 +12765,7 @@ static int reload_config(void)
|
|||||||
} else if (!strcasecmp(v->name, "fromdomain")) {
|
} else if (!strcasecmp(v->name, "fromdomain")) {
|
||||||
ast_copy_string(default_fromdomain, v->value, sizeof(default_fromdomain));
|
ast_copy_string(default_fromdomain, v->value, sizeof(default_fromdomain));
|
||||||
} else if (!strcasecmp(v->name, "outboundproxy")) {
|
} else if (!strcasecmp(v->name, "outboundproxy")) {
|
||||||
if (ast_get_ip_or_srv(&outboundproxyip, v->value, "_sip._udp") < 0)
|
if (ast_get_ip_or_srv(&outboundproxyip, v->value, srvlookup ? "_sip._udp" : NULL) < 0)
|
||||||
ast_log(LOG_WARNING, "Unable to locate host '%s'\n", v->value);
|
ast_log(LOG_WARNING, "Unable to locate host '%s'\n", v->value);
|
||||||
} else if (!strcasecmp(v->name, "outboundproxyport")) {
|
} else if (!strcasecmp(v->name, "outboundproxyport")) {
|
||||||
/* Port needs to be after IP */
|
/* Port needs to be after IP */
|
||||||
|
Reference in New Issue
Block a user