]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add channel name to a warning to make debugging easier.
authorMark Michelson <mmichelson@digium.com>
Wed, 12 Sep 2012 14:53:35 +0000 (14:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 12 Sep 2012 14:53:35 +0000 (14:53 +0000)
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@372933 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index f4f57988d0e7c1cfc3525b85d7568066dd38e110..3d5a90324aaabbebab8d28e3d40e2b5465a79f3a 100644 (file)
@@ -3944,7 +3944,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);