[asterisk-commits] file: trunk r110610 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 24 10:28:26 CDT 2008


Author: file
Date: Mon Mar 24 10:28:25 2008
New Revision: 110610

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110610
Log:
Only print out the set_address_from_contact host verbose message if debugging is enabled on the dialog.
(closes issue #12280)
Reported by: rjain
Patches:
      chan_sip.c.diff uploaded by rjain (license 226)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=110610&r1=110609&r2=110610
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Mar 24 10:28:25 2008
@@ -9745,7 +9745,9 @@
 		port = !ast_strlen_zero(pt) ? atoi(pt) : STANDARD_SIP_PORT;
 	}
 
-	ast_verbose("--- set_address_from_contact host '%s'\n", host);
+	if (sip_debug_test_pvt(pvt)) {
+		ast_verbose("--- set_address_from_contact host '%s'\n", host);
+	}
 
 	/* XXX This could block for a long time XXX */
 	/* We should only do this if it's a name, not an IP */




More information about the asterisk-commits mailing list