freetdm: Try to resolve OPENZAP-173

The token count needs to be updated after the master session token is cleared
         and before checking for other tokens
This commit is contained in:
Moises Silva 2012-03-19 09:20:44 -04:00
parent bf652b567f
commit 681f582b20

View File

@ -586,6 +586,7 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session)
break;
case FTDM_CHAN_TYPE_FXS:
{
tokencnt = ftdm_channel_get_token_count(tech_pvt->ftdmchan);
if (!ftdm_channel_call_check_busy(tech_pvt->ftdmchan) && !ftdm_channel_call_check_done(tech_pvt->ftdmchan)) {
if (tokencnt) {
cycle_foreground(tech_pvt->ftdmchan, 0, NULL);