(fwd) Re: vgetty does not switch to data (but mgetty does!)
Gert Doering (gert@greenie.muc.de)
Thu, 13 May 1999 15:45:50 +0200
Hi,
On Thu, May 13, 1999 at 01:34:55PM +0200, Bjoern Giesler wrote:
> >> I fixed it by
> >> changing the code near the top of answer.c from:
> [snip]
>
> >Bjoern, could you try this? If yes, I'll check in something that will do
> >"+FCLASS=0 all the time except if (modem_quirks & MQ_NEED2), in which case
> >it will be +FCLASS=2" -- which is exactly what mgetty is doing.
>
> YES! Looks like it works!
Good. Could you please revert your change, apply the following patch,
and test again (with voice AND data)?
Index: answer.c
===================================================================
RCS file: /u2/cvs/mgetty/voice/vgetty/answer.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- answer.c 1999/01/31 09:18:49 1.9
+++ answer.c 1999/05/13 13:37:03 1.10
@@ -1,7 +1,7 @@
/*
* answer.c
*
- * $Id: answer.c,v 1.9 1999/01/31 09:18:49 marcs Exp $
+ * $Id: answer.c,v 1.10 1999/05/13 13:37:03 gert Exp $
*
*/
@@ -35,7 +35,12 @@
if (modem_type == Mt_class2)
{
bit_order = 0;
- fax_mode = "2";
+ /* following the specs, we should go to +FCLASS=2;+FAA=1, but
+ * there is a fair number of Rockwell modems that can't do
+ * data calls if in that mode - must go to +FCLASS=0;+FAA=1 -
+ * but yet other modems NEED class 2, so use modem_quirks...
+ */
+ fax_mode = ( modem_quirks & MQ_NEED2 ) ? "2": "0";
};
if (modem_type == Mt_class2_0)
--> this should lead to the very same commands being sent to your modem,
but for people who need "AT+FCLASS=2", it can be done by setting
"modem-quirks 0x01" in mgetty.config.
> (I'm still having a couple of troubles, but they are probably my fault.)
What kind of problems?
> Thanks, Gert and Ray -- you two are princes.
*LOL*
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de