[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mgetty isn't answering the phone (ioctl problem)

I'm trying to get mgetty to answer an incoming call on a data line. 

I'm running "mgetty -x 4 -D /dev/ttyS0" and it waits on the line until I
call in (I'm running it explicitly from the cmdline as root until I can
figure the problem out). On the first ring, it dumps me back to the
command prompt. When I call from a normal phone, I hear a ring, a click,
another click, and then that's it. 

A peek at /var/log/mgetty/mg_ttyS0.log shows:
>10/22 16:41:48 yS0  lowering DTR to reset Modem
>10/22 16:41:48 yS0  send: \d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
>10/22 16:41:52 yS0  waiting for ``OK'' ** found **
>10/22 16:41:52 yS0  send: AT[0d]
>10/22 16:41:52 yS0  waiting for ``OK'' ** found **
>10/22 16:41:53 yS0  waiting...
>10/22 16:42:03 yS0  waiting for ``RING'' ** found **
>10/22 16:42:03 yS0  cannot set controlling tty (ioctl): Operation not
>10/22 16:42:03 yS0  send: ATA[0d]
>10/22 16:42:03 yS0  waiting for ``CONNECT''
>10/22 16:42:03 yS0  found action string: ``NO CARRIER''
>10/22 16:42:03 ##### failed A_FAIL dev=ttyS0, pid=17138, caller=none,
conn='', name=''

Notice the "cannot set controlling tty (ioctl): Operation not permitted".
Suspecting a permission problem, I did an "ls -l /dev/ttyS*" and that
turned up:
>crw-rw-r--   1 root     dialout    4,  64 Oct 22 15:39 ttyS0
>crw-rw----   1 root     tty        4,  65 Dec 31  1969 ttyS1
>crw-rw----   1 root     tty        4,  66 Dec 31  1969 ttyS2
>crw-rw----   1 root     tty        4,  67 Dec 31  1969 ttyS3

I changed the group ownership of ttyS0 to "tty", but that didn't help.

Any ideas?

- Joe

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com

Reply to: