[asterisk-commits] oej: branch oej/pgtips-srv-and-outbound-stuff-1.8 r421673 - /team/oej/pgtips-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 21 09:15:06 CDT 2014
Author: oej
Date: Thu Aug 21 09:15:02 2014
New Revision: 421673
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421673
Log:
My address gets lost somewhere.
Modified:
team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c
Modified: team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c?view=diff&rev=421673&r1=421672&r2=421673
==============================================================================
--- team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c (original)
+++ team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c Thu Aug 21 09:15:02 2014
@@ -5809,6 +5809,7 @@
ast_sockaddr_set_port(&dialog->sa, ast_sockaddr_port(addr));
}
} else {
+ ast_debug(4, "DNS Lookup : Going to find something with the name %s \n", peername);
/* Let's see if we can find the host in DNS. First try DNS SRV records,
then hostname lookup */
@@ -5820,6 +5821,7 @@
* an A record lookup should be used instead of SRV.
*/
if (!dialog->portinuri && sip_cfg.srvlookup) {
+ ast_debug(4, "DNS SRV Lookup : Going to find something with the name %s \n", peername);
if (dialog->srvcontext) {
ast_srv_context_free_list(dialog->srvcontext);
}
@@ -5867,9 +5869,10 @@
}
} else {
+ ast_debug(4, "DNS A/AAAA Lookup : Going to find something with the name %s \n", hostn);
if (ast_sockaddr_resolve_first_transport(&dialog->sa, hostn, 0, dialog->socket.type ? dialog->socket.type : SIP_TRANSPORT_UDP)) {
- ast_log(LOG_WARNING, "No such host: %s\n", peername);
+ ast_log(LOG_WARNING, "DNS giving up: No such host: %s\n", peername);
return -1;
}
}
More information about the asterisk-commits
mailing list