state tweaks

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@417 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2008-02-29 01:05:23 +00:00
parent 1d3f79cddc
commit 7d476dd303
1 changed files with 2 additions and 0 deletions

View File

@ -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;