From 5a77d16edae94b0a63751bb1f18a82a7afa453c6 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 24 Mar 2008 15:28:25 +0000 Subject: 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 --- channels/chan_sip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 39648d521..f2547ae52 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 */ -- cgit v1.2.3