aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-10 21:36:49 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-10 21:36:49 +0000
commit4ebb251f2ba2508bc18ce99adfe2b6f754c5d2bf (patch)
treead19720f250ca8079d3e6940ba64f5b0d8e63180 /channels/chan_sip.c
parentda20dc504f892e304eb646540e6ae31560d7ff0d (diff)
Add debug output while trying to trace bug in bug report
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6d720b186..6c39a0b24 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;
}