diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:28:05 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:28:05 +0000 |
commit | d08de90def326ee9c20f0a9a0307f8618ce8b185 (patch) | |
tree | 76301e185359e4bf47a25e4ff56e19ac0c2c3f43 | |
parent | fd645d731ba1cfe1affbabc946d4680a054d9151 (diff) |
dahdi-base: All channels for a span are now unconfigured on shutdown
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9317
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9659 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-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 e443dda..1c4dc8f 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -4221,6 +4221,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; |