freetdm: fix queue full problem

- restore flushing queue when channel state goes to down
This commit is contained in:
James Zhang 2012-04-18 10:52:01 -04:00
parent e2f1b4ab27
commit 4f5a6557fc
1 changed files with 1 additions and 0 deletions

View File

@ -1599,6 +1599,7 @@ ftdm_status_t ftdm_sangoma_ss7_process_state_change (ftdm_channel_t *ftdmchan)
ftdm_channel_t *close_chan = ftdmchan;
/* close the channel */
SS7_DEBUG_CHAN(ftdmchan,"FTDM Channel Close %s\n", "");
sngss7_flush_queue(sngss7_info->event_queue);
ftdm_channel_close (&close_chan);
}