[ozmod_isdn] Backport fix from rework branch: use channel flag rather than CRVFlag to properly release channels in ZAP_CHANNEL_STATE_DOWN transition

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@662 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Stefan Knoblich 2009-02-11 16:04:30 +00:00
parent a846877a47
commit 2505bfd29f

View File

@ -1038,7 +1038,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
case ZAP_CHANNEL_STATE_DOWN:
{
if (gen->CRV) {
if(gen->CRVFlag) {
if (zap_test_flag(zchan, ZAP_CHANNEL_OUTBOUND)) {
isdn_data->channels_local_crv[gen->CRV] = NULL;
} else {
isdn_data->channels_remote_crv[gen->CRV] = NULL;