freetdm: Support for channel restarts

This commit is contained in:
David Yat Sin committed 2010-12-14 11:23:47 -05:00
1 parent ce25c9186f
commit 905fdcc248
15 files changed
+367 -279

No files matched your search

@@ -281,10 +281,10 @@ static __inline__ void state_advance(ftdm_channel_t *ftdmchan)
switch (ftdmchan->state) {
case FTDM_CHANNEL_STATE_DOWN:
{
ftdm_channel_done(ftdmchan);
ftdm_channel_close(ftdmchan);
ftdmchan->call_data = NULL;
ftdm_channel_done(peerchan);
ftdm_channel_close(peerchan);
peerchan->call_data = NULL;
}
break;