From: Mark Michelson Date: Mon, 29 Jun 2009 22:45:34 +0000 (+0000) Subject: Add error message so that it is clear why a SIP peer was not processed when X-Git-Tag: 1.4.26~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5bef05d8fd3749e385bc39874fe798f4982ed07;p=thirdparty%2Fasterisk.git Add error message so that it is clear why a SIP peer was not processed when a DNS lookup fails on a host or outboundproxy. (closes issue #13432) Reported by: p_lindheimer Patches: outboundproxy.patch uploaded by p (license 558) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@204300 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 688641d7c4..df825e7da8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17703,6 +17703,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str ast_clear_flag(&peer->flags[1], SIP_PAGE2_DYNAMIC); if (!obproxyfound || !strcasecmp(v->name, "outboundproxy")) { if (ast_get_ip_or_srv(&peer->addr, v->value, srvlookup ? "_sip._udp" : NULL)) { + ast_log(LOG_ERROR, "srvlookup failed for outboundproxy: %s, on peer %s, removing peer\n", v->value, peer->name); ASTOBJ_UNREF(peer, sip_destroy_peer); return NULL; }