From c7a819e398c916e7000993eeb633e3da92ff3427 Mon Sep 17 00:00:00 2001 From: Automerge script Date: Wed, 12 Sep 2012 15:26:56 +0000 Subject: [PATCH] Merged revisions 372933 via svnmerge from file:///srv/subversion/repos/asterisk/branches/10 ................ r372933 | mmichelson | 2012-09-12 09:53:35 -0500 (Wed, 12 Sep 2012) | 10 lines Add channel name to a warning to make debugging easier. The "autodestruct with owner in place" message is typically indicative of a channel reference leak. Printing out the name of the channel in the message may be helpful when trying to debug the issue. ........ Merged revisions 372932 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@372958 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2225015c2e..082b798fc5 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3971,7 +3971,7 @@ static int __sip_autodestruct(const void *data) */ owner = sip_pvt_lock_full(p); if (owner) { - ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner in place (Method: %s). Rescheduling destruction for 10000 ms\n", p->callid, sip_methods[p->method].text); + ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner %s in place (Method: %s). Rescheduling destruction for 10000 ms\n", p->callid, owner->name, sip_methods[p->method].text); ast_queue_hangup_with_cause(owner, AST_CAUSE_PROTOCOL_ERROR); ast_channel_unlock(owner); ast_channel_unref(owner); -- 2.47.2