Problems with voice call-out using a MultiTech 2834ZDXv
Gert Doering (gert@greenie.muc.de)
Sun, 17 Jan 1999 22:23:23 +0100
Hi,
On Sun, Jan 17, 1999 at 02:00:10PM -0600, Mark A. Haun wrote:
> I now have an application requiring the modem to dial out and then play a
> prerecorded message (an automatic notification system for a scientific
> instrument). The message.sh example in the scripts directory seems
> simplistic in that it doesn't make use of the NO_VOICE_ENERGY event to wait
> for a person to answer before playing the message.
I *think* that the dial command won't come back with "OK" until the modem
has decided that someone has picked up the phone. My own dialup script
looks like this (truncate, the full version was posted on Thursday or so):
-----
#
# Activate asynchronous events (DTMF tones, BUSY!)
#
send "ENABLE EVENTS"
ANSWER=`receive`
if [ "$ANSWER" != "READY" ] ; then
echo "$0: could not enable events" >&2
echo "ERROR" >$status
exit 20
fi
#
# Now, dial out...
#
echo "All set up, dialing $phone..." >&2
send "DIAL $phone"
ANSWER="NOTREADY"
while [ ! -z "$ANSWER" -a "$ANSWER" != "READY" ] ; do
ANSWER=`receive`
echo "DIAL --> $ANSWER"
done
if [ "$ANSWER" != "READY" ]; then
echo "$0: could not start dial out (->error)" >&2
echo "ERROR" >$status
exit 1
fi
#
# Let's send $file $num times...
#
----
(now it will continue with "send PLAY")
> I tried to improve the
> script to make it do this, but the modem never reports anything after the
> ATDT command except BUSY if the line is busy or NO CARRIER after the timeout
> if the line is not busy (whether or not someone answers). Things about this
> I do not understand:
>
> -- Playing with the modem by hand, I notice that a dialing command (ATDT)
> always returns it to data mode. i.e. you get this:
>
> AT+FCLASS=8
> OK
> AT+FCLASS?
> +FCLASS=8
> ATDTxxxxxxx
> BUSY
> AT+FCLASS?
> +FCLASS=0
Sounds like the modem can't really do dialout in voice mode.
> Do you have to use a different dialing command when in voice mode, or
> is this normal behavior? The documentation included with the modem
> is very sketchy.
This is definitely not the way it should be.
> -- After a human or an answering machine answers the phone, the modem will
> often send out beeps which I presume are fax calling tones. It
> shouldn't do this in voice mode, correct?
Yes. Those could be fax or data calling tones, but neither of them are
correct here.
> It would be disappointing to learn that my modem can answer voice calls but
> cannot originate them :( Any ideas? If all else fails, is there some way
> to dial a number and ignore anything at the other end for xx seconds, then
> play a message?
Not that I know of. My modems just do the right thing here (ZyXEL 1496).
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