vm does not recognize remote off-hook
Stefan Haller (stefan.haller@ascom.ch)
Mon, 29 Nov 1999 15:54:10 +0100
Hi all
I have to program an application to send email, facsimiles, pages and
voice mails, spooling all jobs using lpr that require the modem. For the
various applications, I use exteral programs (qpage, sendmail, vgetty
and efax). sendfax in the mgetty package didn't work, but since I have
14 days left (and because I have to visit the school on 2 days a week)
to finish the application, I didn't have any time to find the problem
there. efax worked without problem. Nearly everything is working now...
But I have some problems with vm. I'm using the message.sh script that
comes with the mgetty/vgetty release 1.1.21. I'm using a ZyXEL 1496
modem plugged into a Sun Sparc Server.
After some troubles at the beginning with an USR modem where nothing
worked at all, now mostly the thing is running since I use the ZyXEL.
But one single problem is left. If I try to send a voice mail, the modem
seems not to recongize when the remote end has hook off.
After hook off at the remote end, normal talking there is ignored, but
after whistleing into (or pushing a button on the number pad one) the
phone, the message starts playing. Otherwise, the message starts 7
seconds after the first ring. And even if I don't pick the phone up, the
message plays after 7 secs and vm returns an OK: message send. (by the
way, shouldn't it be message senT?)
I tought that altering the following entries in default.h would change
that. But even if I set them both to 0ms, the message wouldn't play
right after dialing. I tried several values, but they seemed not to
change anything when testing. I guess a make clean and make vgetty is
enough after changing default.h?
The two entries in default.h I tried to alter:
---------
/* -- alborchers@steinerpoint.com
* Timeout for deciding that a dialout call has been answered; if more
* than this many 1/10ths of a second have passed since the last
ringback,
* the modem assumes the call has been answered and the ATDT... command
* exits with response VCON. A value of 0 causes ATDT... to return VCON
* immediately. Default is 70 (7 sec).
*/
CONF(ringback_goes_away, 70, CT_INT)
/* -- alborchers@steinerpoint.com
* Timeout for deciding that a dialout call has been answered; if more
* than this many 1/10ths of a second have passed without any ringback
* the modem assumes the call has been answered and the ATDT... command
* exits with response VCON. A value of 0 causes ATDT... to return VCON
* immediately. Default is 100 (10 sec).
*/
CONF(ringback_never_came, 100, CT_INT)
--------
What could be wrong here? I would like that an error occurs when nobody
took the phone on the remote end. The message has to play after the
phone was hooked off or even right after dialing with an endless loop
would be fine. But even that isn't working after changing default.h.
I greatly appreciate any help.
Regards,
Stefan Haller