Operating System - HP-UX
1844075 Members
2755 Online
110227 Solutions
New Discussion

Callback from internal modem

 
Chris Watson
Super Advisor

Callback from internal modem

I would like to be able get the internal modem on my D250 to call me back when I dial in from home.

I have noticed a command called ct, but I can't figure out how to configure it, secure it, and ensure an appropriate fail condition if the callback fails.

The modem is restricted to only allow me to login in, but sam doesn't appear to have any callback config abilities.

Thanks

Chris
Moving along nicely
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: Callback from internal modem

Maybe the following will be of some use ?

How to make ct callback your system

Solution

Create two files that will be located on the remote system:
One has the commands in it and the other has an answer for the command file.

The command file(dct) contains the following:

#!/bin/sh
sleep 20
ct -h -x9 -s($1) ($2) < no > /tmp/ct.log 2>&1

The answer file(no) contains a ascii n which is required for the ct command.

Pass the baud rate($1) and the phone number($2) to the dct script.

Process:
1). Dialin to the remote.
cu -s(baud rate) -l(call out port) -m dir.
atdt(phone number)
(connect)

2). Login in.

3). Execute a batch request.
batch
dct (baud rate) (call back phone number)
control d

4). Exit from the system.

5). The remote system will call after about one minute.

The system will log you off and clean up the port and other house
keeping. With a 20 delay in the batch process that allows more than
enough time for the port to clear. Next ct is spawned on a port with
the speed and number indicated in the command.

Now you must have a modem port waiting to accept a call back on the
local. This can be accomplished in unix by using cu command with the dir
option or through kermit. Both can be used to keep control of a modem


Chris Watson
Super Advisor

Re: Callback from internal modem

Thanks Alex.

I have now been able to get the machine to call me back using the above, or a straight ct followed by phone number.

However, after providing the login name I am getting an error stating 'Cannot obtain database information on this terminal'. This seems to be a problem with my trusted system configuration.

My modem device is listed in these files;
/tcb/files/devassign
/tcb/files/ttys
a requirement noted in A4317489 but the config steps are a little vague.

I think I will now log a support call.

Thanks,

Chris
Moving along nicely