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

Modified Files:
        wctdm.c 
Log Message:
Only reset fxs mode when we're an fxs...


Index: wctdm.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wctdm.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- wctdm.c     29 Jun 2005 19:18:21 -0000      1.116
+++ wctdm.c     20 Jul 2005 04:18:55 -0000      1.117
@@ -1795,8 +1795,10 @@
 #else
        module_put(THIS_MODULE);
 #endif
-       for (x=0;x<wc->cards;x++)
-               wc->mod.fxs.idletxhookstate[x] = 1;
+       for (x=0;x<wc->cards;x++) {
+               if (wc->modtype[x] == MOD_TYPE_FXS)
+                       wc->mod.fxs.idletxhookstate[x] = 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