All pastes #62410 Raw Edit

Stuff

public text v1 · immutable
#62410 ·published 2006-06-06 04:25 UTC
rendered paste body
Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (revision 32456)
+++ channels/chan_sip.c (working copy)
@@ -13041,6 +13041,10 @@
                        ast_log(LOG_ERROR, "We could NOT get the channel lock for %s! \n", p->owner->name);
                        ast_log(LOG_ERROR, "SIP MESSAGE JUST IGNORED: %s \n", req.data);
                        ast_log(LOG_ERROR, "BAD! BAD! BAD!\n");
+#ifdef DEBUG_THREADS
+                       ast_log(LOG_ERROR, "Channel '%s' locked by %s on line %s of %s.\n",
+                               p->owner->lock.func, p->owner->lock.lineno, p->owner->lock.file);
+#endif
                        return 1;
                }
                p->recv = sin;