diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-29 22:45:34 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-29 22:45:34 +0000 |
commit | 4e9a2ebf681fd27cdbc64fa30ed277378643a11b (patch) | |
tree | fe7839586f97f2a4d2b3ba7c8b4fd0fc4ecfe427 /channels/chan_sip.c | |
parent | 4c32ec63b7cdda8fbb35da5984c48019ab24d8cd (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@204300 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 688641d7c..df825e7da 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; } |