diff options
author | Kinsey Moore <kmoore@digium.com> | 2010-09-10 15:54:36 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2010-09-10 15:54:36 +0000 |
commit | cc878857c2450e83ec59506265a2f326edffbdd4 (patch) | |
tree | 1d2edbedaad3f05975c0a2bbcddd53e6f7495b70 /drivers | |
parent | f1d5205ba32b7f8060eab06f33fb0311764efd7b (diff) |
dahdi-base: All channels for a span are now unconfigured on shutdown
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9317 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 7664c9c..6e441ca 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -4223,6 +4223,11 @@ static int dahdi_ctl_ioctl(struct file *file, unsigned int cmd, unsigned long da return 0; case DAHDI_SHUTDOWN: CHECK_VALID_SPAN(j); + + /* Unconfigure channels */ + for (x = 0; x < spans[j]->channels; x++) + spans[j]->chans[x]->sig = 0; + if (spans[j]->ops->shutdown) res = spans[j]->ops->shutdown(spans[j]); spans[j]->flags &= ~DAHDI_FLAG_RUNNING; |