--- chan_sip.c.ORIG 2008-09-05 21:02:59.000000000 -0700 +++ chan_sip.c 2008-09-05 21:19:07.000000000 -0700 @@ -16763,6 +16763,7 @@ 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; }