summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-05-31 14:36:47 +0000
committerOlle Johansson <oej@edvina.net>2006-05-31 14:36:47 +0000
commitc7007e1f554e4037ccddcc3be5c2886cfb8d0643 (patch)
tree37ca22e704bc9e04a4e8e672e4ca60eda61e23c5 /channels
parentbc0f0a3226e36509394daec02028f5a0e0514764 (diff)
Add congestion message to SIP history
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e25727f58..f338d95e9 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);
}