diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-07-20 04:18:55 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-07-20 04:18:55 +0000 |
commit | af4a13e4df9635a4fb2c9720897404919d0d20ca (patch) | |
tree | 50ee1678974dfbc0e3968590fb4d68d142828832 | |
parent | 6aa852bfcc456827bf81a2feb6eba4639ea94e23 (diff) |
Only reset fxs mode when we're an fxs...
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@696 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wctdm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1795,8 +1795,10 @@ static int wctdm_close(struct zt_chan *chan) #else module_put(THIS_MODULE); #endif - for (x=0;x<wc->cards;x++) - wc->mod.fxs.idletxhookstate[x] = 1; + for (x=0;x<wc->cards;x++) { + if (wc->modtype[x] == MOD_TYPE_FXS) + wc->mod.fxs.idletxhookstate[x] = 1; + } /* If we're dead, release us now */ if (!wc->usecount && wc->dead) wctdm_release(wc); |