From 7d476dd3032cce68397e0b23dbd5da0067f8a9ec Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 29 Feb 2008 01:05:23 +0000 Subject: [PATCH] state tweaks git-svn-id: http://svn.openzap.org/svn/openzap/trunk@417 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/zap_isdn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/freetdm/src/zap_isdn.c b/libs/freetdm/src/zap_isdn.c index 39c904b329..5bfe471144 100644 --- a/libs/freetdm/src/zap_isdn.c +++ b/libs/freetdm/src/zap_isdn.c @@ -332,6 +332,8 @@ static __inline__ void state_advance(zap_channel_t *zchan) { if (zchan->last_state > ZAP_CHANNEL_STATE_HANGUP) { zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP); + } else { + zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_DOWN); } } break;