[asterisk-commits] oej: branch oej/pgtips-srv-and-outbound-stuff-1.8 r397639 - /team/oej/pgtips-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 26 04:51:28 CDT 2013


Author: oej
Date: Mon Aug 26 04:51:25 2013
New Revision: 397639

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397639
Log:
Fixing TTL to something more useful

Modified:
    team/oej/pgtips-srv-and-outbound-stuff-1.8/main/dns.c
    team/oej/pgtips-srv-and-outbound-stuff-1.8/main/srv.c

Modified: team/oej/pgtips-srv-and-outbound-stuff-1.8/main/dns.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pgtips-srv-and-outbound-stuff-1.8/main/dns.c?view=diff&rev=397639&r1=397638&r2=397639
==============================================================================
--- team/oej/pgtips-srv-and-outbound-stuff-1.8/main/dns.c (original)
+++ team/oej/pgtips-srv-and-outbound-stuff-1.8/main/dns.c Mon Aug 26 04:51:25 2013
@@ -236,8 +236,8 @@
 
 		if (ntohs(ans->class) == class && ntohs(ans->rtype) == type) {
 			if (callback) {
-				ast_debug(3, "     ==> Using callback for DNS answer \n");
-				if ((res = callback(context, answer, ntohs(ans->size), fullanswer, ans->ttl)) < 0) {
+				ast_debug(3, "     ==> Using callback for DNS answer TTL %u\n", ntohl(ans->ttl));
+				if ((res = callback(context, answer, ntohs(ans->size), fullanswer, ntohl(ans->ttl))) < 0) {
 					ast_log(LOG_WARNING, "Failed to parse result\n");
 					return -1;
 				}

Modified: team/oej/pgtips-srv-and-outbound-stuff-1.8/main/srv.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pgtips-srv-and-outbound-stuff-1.8/main/srv.c?view=diff&rev=397639&r1=397638&r2=397639
==============================================================================
--- team/oej/pgtips-srv-and-outbound-stuff-1.8/main/srv.c (original)
+++ team/oej/pgtips-srv-and-outbound-stuff-1.8/main/srv.c Mon Aug 26 04:51:25 2013
@@ -141,7 +141,7 @@
 	struct srv_entry *current = NULL;
 	struct timeval expiry  = {0,};
 
-	ast_debug(3, " ==> Callback received \n");
+	ast_debug(3, " ==> Callback received ttl= %u\n", ttl);
 
 	expiry.tv_sec =  (long) ttl;
 	expiry = ast_tvadd(expiry, ast_tvnow());




More information about the asterisk-commits mailing list