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);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to