Index: chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.832 diff -u -r1.832 chan_sip.c --- chan_sip.c 31 Aug 2005 19:53:38 -0000 1.832 +++ chan_sip.c 1 Sep 2005 12:22:26 -0000 @@ -943,10 +943,11 @@ ast_log(LOG_DEBUG, "Found no match for SIP option: %s (Please file bug report!)\n", next); next = sep; } - if (pvt) + if (pvt) { pvt->sipoptions = profile; - - ast_log(LOG_DEBUG, "* SIP extension value: %d for call %s\n", profile, pvt->callid); + if (option_debug) + ast_log(LOG_DEBUG, "* SIP extension value: %d for call %s\n", profile, pvt->callid); + } return profile; }