From: Olle Johansson Date: Fri, 10 Nov 2006 21:36:49 +0000 (+0000) Subject: Add debug output while trying to trace bug in bug report X-Git-Tag: 1.4.0-beta4~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea257647a2138824964b95294bb084c9cd237e95;p=thirdparty%2Fasterisk.git Add debug output while trying to trace bug in bug report git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47474 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6d720b186d..6c39a0b24f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1969,10 +1969,11 @@ static int __sip_autodestruct(void *data) ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner in place (Method: %s)\n", p->callid, sip_methods[p->method].text); ast_queue_hangup(p->owner); } else if (p->refer) { + if (option_debug > 2) + ast_log(LOG_DEBUG, "Finally hanging up channel after transfer: %s\n", p->callid); transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, 1); - } else { + } else sip_destroy(p); - } return 0; }