From: Joshua Colp Date: Mon, 24 Mar 2008 15:28:25 +0000 (+0000) Subject: Only print out the set_address_from_contact host verbose message if debugging is... X-Git-Tag: 1.6.0-beta7~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a77d16edae94b0a63751bb1f18a82a7afa453c6;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110610 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 39648d5218..f2547ae52b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9745,7 +9745,9 @@ static int set_address_from_contact(struct sip_pvt *pvt) 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 */