Add congestion message to SIP history
authorOlle Johansson <oej@edvina.net>
Wed, 31 May 2006 14:36:47 +0000 (14:36 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 31 May 2006 14:36:47 +0000 (14:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e25727f..f338d95 100644 (file)
@@ -2353,6 +2353,7 @@ static int auto_congest(void *nothing)
                /* XXX fails on possible deadlock */
                if (!ast_channel_trylock(p->owner)) {
                        ast_log(LOG_NOTICE, "Auto-congesting %s\n", p->owner->name);
+                       append_history(p, "Cong", "Auto-congesting (timer)");
                        ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                        ast_channel_unlock(p->owner);
                }