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

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

Reply via email to