summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-03-24 15:28:25 +0000
committerJoshua Colp <jcolp@digium.com>2008-03-24 15:28:25 +0000
commit5a77d16edae94b0a63751bb1f18a82a7afa453c6 (patch)
tree298c05753a43dd7794236e0108e657daab5b1028
parent75ede8b60ae056551a6e1aaaab688cf028466de2 (diff)
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
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
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 */