[svn-commits] jpeeler: branch jpeeler/sip-dnsmgr r110080 - in /team/jpeeler/sip-dnsmgr: ./ ...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 19 15:27:22 CDT 2008


Author: jpeeler
Date: Wed Mar 19 15:27:21 2008
New Revision: 110080

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110080
Log:
removed some mostly useless debugging comments

Modified:
    team/jpeeler/sip-dnsmgr/CHANGES
    team/jpeeler/sip-dnsmgr/channels/chan_sip.c

Modified: team/jpeeler/sip-dnsmgr/CHANGES
URL: http://svn.digium.com/view/asterisk/team/jpeeler/sip-dnsmgr/CHANGES?view=diff&rev=110080&r1=110079&r2=110080
==============================================================================
--- team/jpeeler/sip-dnsmgr/CHANGES (original)
+++ team/jpeeler/sip-dnsmgr/CHANGES Wed Mar 19 15:27:21 2008
@@ -175,6 +175,7 @@
      more information on how it is used.
   * Added a new configuration option "authfailureevents" that enables manager events when
     a peer can't authenticate properly. 
+  * Added DNS manager support to registrations not referencing a peer entry.
 
 IAX2 changes
 ------------

Modified: team/jpeeler/sip-dnsmgr/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/jpeeler/sip-dnsmgr/channels/chan_sip.c?view=diff&rev=110080&r1=110079&r2=110080
==============================================================================
--- team/jpeeler/sip-dnsmgr/channels/chan_sip.c (original)
+++ team/jpeeler/sip-dnsmgr/channels/chan_sip.c Wed Mar 19 15:27:21 2008
@@ -191,7 +191,7 @@
 
 /* #define VOCAL_DATA_HACK */
 
-#define DEFAULT_DEFAULT_EXPIRY  10 /*this was 120 */
+#define DEFAULT_DEFAULT_EXPIRY  120
 #define DEFAULT_MIN_EXPIRY      60
 #define DEFAULT_MAX_EXPIRY      3600
 #define DEFAULT_REGISTRATION_TIMEOUT 20
@@ -2529,7 +2529,7 @@
 	int res = 0;
 	const struct sockaddr_in *dst = sip_real_dst(p);
 
-	ast_debug(1, "Trying to put '%.10s' onto %s socket at %s...\n", data->str, get_transport(p->socket.type), ast_inet_ntoa(dst->sin_addr));
+	ast_debug(1, "Trying to put '%.10s' onto %s socket destined for %s\n", data->str, get_transport(p->socket.type), ast_inet_ntoa(dst->sin_addr));
 
 	if (sip_prepare_socket(p) < 0)
 		return XMIT_ERROR;
@@ -4081,7 +4081,6 @@
 	if (peer) {
 		int res = create_addr_from_peer(dialog, peer);
 		unref_peer(peer);
-		ast_log(LOG_DEBUG, "Peer found with address of %s\n", ast_inet_ntoa(dialog->sa.sin_addr));
 		return res;
 	} else {
 		/* Setup default parameters for this dialog's socket. Currently we only support regular UDP SIP as the default */
@@ -9220,7 +9219,6 @@
 			ast_log(LOG_WARNING, "Already have a REGISTER going on to %s@%s?? \n", r->username, r->hostname);
 			return 0;
 		} else {
-			ast_log(LOG_DEBUG, "registration valid and authorized\n");
 			p = r->call;
 			make_our_tag(p->tag, sizeof(p->tag));	/* create a new local tag for every register attempt */
 			ast_string_field_set(p, theirtag, NULL);	/* forget their old tag, so we don't match tags when getting response */




More information about the svn-commits mailing list