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
1.6.1
Joshua Colp 17 years ago
parent 75ede8b60a
commit 5a77d16eda

@ -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 */

Loading…
Cancel
Save