[Asterisk-cvs] zaptel wctdm.c,1.117,1.118

markster at lists.digium.com markster at lists.digium.com
Wed Jul 20 08:58:31 CDT 2005


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

Modified Files:
	wctdm.c 
Log Message:
Only set idlemode on current channel....


Index: wctdm.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wctdm.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- wctdm.c	20 Jul 2005 04:18:55 -0000	1.117
+++ wctdm.c	20 Jul 2005 13:05:47 -0000	1.118
@@ -1788,17 +1788,15 @@
 static int wctdm_close(struct zt_chan *chan)
 {
 	struct wctdm *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++) {
-		if (wc->modtype[x] == MOD_TYPE_FXS)
-			wc->mod.fxs.idletxhookstate[x] = 1;
-	}
+	if (wc->modtype[chan->chanpos - 1])
+		wc->mod.fxs.idletxhookstate[chan->chanpos -  1] = 1;
+
 	/* If we're dead, release us now */
 	if (!wc->usecount && wc->dead) 
 		wctdm_release(wc);




More information about the svn-commits mailing list