Merged revisions 204300 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2009 22:50:35 +0000 (22:50 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2009 22:50:35 +0000 (22:50 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r204300 | mmichelson | 2009-06-29 17:45:34 -0500 (Mon, 29 Jun 2009) | 9 lines

  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/trunk@204301 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b0a72fa..d3e67fe 100644 (file)
@@ -24404,6 +24404,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                snprintf(transport, sizeof(transport), "_sip._%s", get_transport(peer->socket.type));
 
                if (ast_dnsmgr_lookup(_srvlookup, &peer->addr, &peer->dnsmgr, sip_cfg.srvlookup ? transport : NULL)) {
+                       ast_log(LOG_ERROR, "srvlookup failed for host: %s, on peer %s, removing peer\n", _srvlookup, peer->name);
                        unref_peer(peer, "getting rid of a peer pointer");
                        return NULL;
                }