[Fwd: Vgetty question]
Vandoorselaere Yoann (yoann@coldserver.com)
Wed, 23 Jun 1999 11:16:09 +0000
Steffen Klupsch wrote:
>
> 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?
Vgetty is compiled without knowing which modem is used : you're right.
And can work with all of them : you're wrong
If you're "modem ATI answer" is not desbribed in detect.c ( from
libvoice )
you can't use vgetty...
static const struct modem_type_struct modem_database[] =
{
{ati, "1.04", NULL, &Cirrus_Logic},
[....]
I think all the modem dependant thing could be puted in config file (
but
this is hard work )...
>
> > 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?
b --> Vgetty *must* answer automaticaly is the gui is not launched
exemple : the man is at work, so after 4 ring vgetty start the
answering machine.
>
> > 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.
Ok, i will look at it..
>
> > 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).
I think you're wrong...
I've started writing an application which use the modem tty...
( it permit to dial a number in voice communication mode )
when vgetty is started, it fail...