mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
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:
parent
bf652b567f
commit
681f582b20
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user