[Asterisk-cvs] zaptel wcfxs.c,1.83,1.84

markster at lists.digium.com markster at lists.digium.com
Wed Sep 15 15:38:51 CDT 2004


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

Modified Files:
	wcfxs.c 
Log Message:
When using fxshonormode=1 and opermode=TBR21 set ring to 25 Hz (bug #724)


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- wcfxs.c	9 Sep 2004 01:05:03 -0000	1.83
+++ wcfxs.c	15 Sep 2004 19:40:16 -0000	1.84
@@ -117,10 +117,13 @@
 	int dcv;
 	int mini;
 	int acim;
+	int ring_osc;
+	int ring_x;
 } fxo_modes[] =
 {
 	{ "FCC", 0, 0, 0, 0, 0, 0x3, 0, 0 }, 	/* US, Canada */
-	{ "TBR21", 0, 0, 0, 0, 1, 0x3, 0, 0x2 },/* Austria, Belgium, Denmark, Finland, France, Germany, 
+	{ "TBR21", 0, 0, 0, 0, 1, 0x3, 0, 0x2, 0x7e6c, 0x023a },
+										/* Austria, Belgium, Denmark, Finland, France, Germany, 
 										   Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
 										   Norway, Portugal, Spain, Sweden, Switzerland, and UK */
 	{ "ARGENTINA", 0, 0, 0, 0, 0, 0x3, 0, 0 },
@@ -1318,6 +1321,10 @@
 	if (fxshonormode) {
 		fxsmode = acim2tiss[fxo_modes[_opermode].acim];
 		wcfxs_setreg(wc, card, 10, 0x08 | fxsmode);
+		if (fxo_modes[_opermode].ring_osc)
+			wcfxs_proslic_setreg_indirect(wc, card, 20, fxo_modes[_opermode].ring_osc);
+		if (fxo_modes[_opermode].ring_x)
+			wcfxs_proslic_setreg_indirect(wc, card, 21, fxo_modes[_opermode].ring_x);
 	}
     if (lowpower)
     	wcfxs_setreg(wc, card, 72, 0x10);




More information about the svn-commits mailing list