[Fwd: Vgetty question]

Steffen Klupsch (steffen@vlsi.informatik.tu-darmstadt.de)
Tue, 22 Jun 1999 19:41:26 +0200


Vandoorselaere Yoann wrote:
> I think it could be really improved if we rewrite it, but this time

Hmm, let's start doing some extensions..

> ( Feature: modem are defined at compile time, use text file for that,

I need more information about this feature. As I see the actual status
is as follows: vgetty is compiled without knowing which modem is used -
and can work with all of them (Plug and play!!). If problems occur you
can specify modem workarounds using a config file (text) which is read
during startup of the program. What is missing?


> support bidirectionnal communication through the modem... )
> > 'bidirectionnal communication through the modem'
> > You might be talking of 'chating' using the modem mic and the modem
> > speaker.
> 
> Exactly...


OK. I vote for that too. You request an extension of
libvoice/*.c/*_set_device(int device) so that 'device' includes 
'SPEAKER_PHONE_MODE' or 'LOCAL_HANDSET' for all modems.

Hi Marc, is it possible this is already realized in some libvoice/*.c
files?
Perhaps someone could add some more error messages for the log file in
cases the desired mode is not available. I am going to do that for UMC.c

Is there an example on how to use set_device from within a script?


> 
> As i've said before, vgetty is a must have...
> But, because an user with a voice modem like to use it to call his
> friend,
> ( and to receive call ), i'd like, as i've said, made a gui for the user
> which :
> 1: popup a window when somebody is dialing the modem and ask : Answer or
> Answering
> Machine ?

OK. You want:
a) vgetty sending you a message if a 'ring' occures
b) vgetty not to answer automaticly (set the number of rings to wait to
100)
c) vgetty to answer immidiatly if your user said 'do so'.

This is possible. Have a look at the scripts in the contribution
directories
Perhaps someone can help Yoann with an small example?

> 2: A window to simply dial a number, in bidirectionnal...xxx...
Fucking easy!! 
There is an C program which includes all the funktionality you want to
get:
Have a look at faxrunq and extract the dialing - send a 
'changetovoicemode' 'set_device(SPEAKER_PHONE_MODE)' 'ATA' afterwards
and there you are.

> We can't share more than one process on a tty,
That's not your problem. Vgetty frees the tty as soon as the modem init
succeded, you can use another process to do outgoing-calls (Your point
2).


> so i don't want to rewrite vgetty ( even if i think it could be very
> usefull )
> and i don't have the time for that...
Oha!!

> Vgetty is an excellent program in what it do,
Yep! I agree.

> but feature like a library for another program to use vgetty to pass
> data to the modem (
> vgetty get locked when a library function is called ) could really be
> usefull...
> ( And i think that an client server arch could be even more )
But it might be a hard bit of work :-(


Regards, Steffen
-- 
+----------------------------------------------------------------------+
|   Steffen Klupsch                Alexanderstr. 10, D-64283 Darmstadt |
|   TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme |
|   Email:   steffen@informatik.tu-darmstadt.de                        |
|   URL  :   http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ |
|   Phone:   (+49)6151/16-6650                  Fax: (+49)6151/16-4810 |
+----------------------------------------------------------------------+