From 599128a65a9639f88ed270edfe1a0ca769e97152 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 18 Sep 2009 00:31:21 +0000 Subject: [PATCH] Another place where timeout events with subcmds should clear any old subcmds. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1097 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 1 + 1 file changed, 1 insertion(+) diff --git a/q931.c b/q931.c index 719e970..aaef333 100644 --- a/q931.c +++ b/q931.c @@ -5142,6 +5142,7 @@ static int pri_internal_clear(void *data) UPDATE_OURCALLSTATE(ctrl, c, Q931_CALL_STATE_NULL); c->peercallstate = Q931_CALL_STATE_NULL; + q931_clr_subcommands(ctrl); ctrl->ev.hangup.subcmds = &ctrl->subcmds; ctrl->ev.hangup.channel = q931_encode_channel(c); ctrl->ev.hangup.cause = c->cause;