summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2010-09-10 15:54:36 +0000
committerKinsey Moore <kmoore@digium.com>2010-09-10 15:54:36 +0000
commit3043f67687319175ffef534fbcc471a86c8ecdea (patch)
tree1d2edbedaad3f05975c0a2bbcddd53e6f7495b70
parent4f8c2ddf3c9fd9353d01b9e7968b58511c7254b0 (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
-rw-r--r--drivers/dahdi/dahdi-base.c5
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;