summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */