freetdm: fix potential bug in MFCR2 where the channel token is cleared too soon

This commit is contained in:
Moises Silva 2011-12-15 20:29:32 -05:00
parent 0a463b0c3c
commit 4b22c22c33
1 changed files with 0 additions and 1 deletions

View File

@ -2302,7 +2302,6 @@ static FIO_SIGNAL_CB_FUNCTION(on_r2_signal)
switch_set_flag_locked(tech_pvt, TFLAG_DEAD); switch_set_flag_locked(tech_pvt, TFLAG_DEAD);
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
switch_channel_hangup(channel, caller_data->hangup_cause); switch_channel_hangup(channel, caller_data->hangup_cause);
ftdm_channel_clear_token(sigmsg->channel, switch_core_session_get_uuid(session));
switch_core_session_rwunlock(session); switch_core_session_rwunlock(session);
} }
} }