[asterisk-commits] kpfleming: branch 1.4 r80501 - /branches/1.4/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 23 12:08:25 CDT 2007
Author: kpfleming
Date: Thu Aug 23 12:08:25 2007
New Revision: 80501
URL: http://svn.digium.com/view/asterisk?view=rev&rev=80501
Log:
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
Modified:
branches/1.4/channels/chan_zap.c
Modified: branches/1.4/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=80501&r1=80500&r2=80501
==============================================================================
--- branches/1.4/channels/chan_zap.c (original)
+++ branches/1.4/channels/chan_zap.c Thu Aug 23 12:08:25 2007
@@ -10304,8 +10304,9 @@
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++) {
@@ -10354,7 +10355,7 @@
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);
More information about the asterisk-commits
mailing list