diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 17:18:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 17:18:29 +0000 |
commit | 2bd1fa599b845a71571845b81ca6e0f58fe52f24 (patch) | |
tree | 88f2a8cb8709faa86b54fb190039e5179baf6358 /channels | |
parent | 96b0dde6d9c53c5f8c2ea6bcf88edd87bea19908 (diff) |
Merged revisions 80501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r80501 | kpfleming | 2007-08-23 12:08:25 -0500 (Thu, 23 Aug 2007) | 2 lines
report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80508 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d7f86466e..7b0c18695 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -11346,8 +11346,9 @@ static int action_zapshowchannels(struct mansession *s, const struct message *m) static int __unload_module(void) { - int x = 0; + int x; struct zt_pvt *p, *pl; + #ifdef HAVE_PRI int i; for (i = 0; i < NUM_SPANS; i++) { @@ -11396,7 +11397,7 @@ static int __unload_module(void) zt_close(p->subs[SUB_REAL].zfd); pl = p; p = p->next; - x++; + x = pl->channel; /* Free associated memory */ if (pl) destroy_zt_pvt(&pl); |