[Asterisk-cvs] zaptel wcfxs.c,1.84.2.12,1.84.2.13

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jul 25 10:23:57 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv14060

Modified Files:
      Tag: v1-0
	wcfxs.c 
Log Message:
ensure that only the channel being closed is reset to idle, and only if it is an FXS module


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/Attic/wcfxs.c,v
retrieving revision 1.84.2.12
retrieving revision 1.84.2.13
diff -u -d -r1.84.2.12 -r1.84.2.13
--- wcfxs.c	25 Jul 2005 14:24:48 -0000	1.84.2.12
+++ wcfxs.c	25 Jul 2005 14:30:39 -0000	1.84.2.13
@@ -1704,15 +1704,15 @@
 static int wcfxs_close(struct zt_chan *chan)
 {
 	struct wcfxs *wc = chan->pvt;
-	int x;
 	wc->usecount--;
 #ifndef LINUX26
 	MOD_DEC_USE_COUNT;
 #else
 	module_put(THIS_MODULE);
 #endif
-	for (x=0;x<wc->cards;x++)
-		wc->mod.fxs.idletxhookstate[x] = 1;
+	if (wc->modtype[chan->chanpos - 1] == MOD_TYPE_FXS)
+		wc->mod.fxs.idletxhookstate[chan->chanpos - 1] = 1;
+
 	/* If we're dead, release us now */
 	if (!wc->usecount && wc->dead) 
 		wcfxs_release(wc);




More information about the svn-commits mailing list