bob (10/07/82)
Yes, a small change to getty.c + autodial code will get my machine
to originate a call to me. You need to figure out how to trigger
things. I make a 14 cent call, login, copy a phone number to /tmp/phon,
and send HUP to proc 1, logout and wait a second to be called back.
(I don't consider this as "cleanly implemented", but it is very useful.)
Bob Gray (315 738-0600) (duke!adiron!bob) (gray@berkeley)
Diff of 4.1bsd getty.c and mine.
< int fdphon,index;
< char phonbuf[30];
(in main, right after the test of argc > 1 )
< if(tname == 'q' && (fdphon=open("/tmp/phon",0)) >= 0 )
< {
< read(fdphon,phonbuf, sizeof(phonbuf));
< close(fdphon);
< for(index=0;index<sizeof(phonbuf);index++)
< if(phonbuf[index] == '\n')
< phonbuf[index]=0;
< while( ventel(0,phonbuf,B1200) < 0 )
< I had a print statement here;
< }
ventel(fd,buf,speed) /*Insert autodial code at end of getty*/
Here is /tmp/phon (CBX ROLM phone system with a ventel 212+ modem)
&85&345-6789%