Stopping incoming faxes with mgetty - Redux
"Len L." <[email protected]>
| Newsgroups | gmane.linux.admin.managers |
|---|---|
| Message-ID | <[email protected]> |
Hey, I got a couple of immediate responses and realize my request was somewhat short. I will give it in three sections Problem, What I have done, Documentation. Problem: I use mgetty on two modem ports to allow remote logins. mgetty works well to keep the connections clean, however I get unsolicitated faxes to these modems. I want to continue using mgetty, but want to block the incoming faxes. What I have done: I tried putting the -D option on mgetty in inittab, then running kill -HUP 1 so init rereads the inittab, then killed the /sbin/mgetty ttyS1 inorder to have the process respawned with the -D option. I then tried sending a fax to the ttyS1 line and it was accepted. Surprise! I went back to the books and tried to approach the problem in a different way. I edited /etc/mgetty+sendfax/mgetty.config with the following two lines: port ttyS1data-only y These files are read when mgetty is invoked and my intent was to identify ttyS1 as a data only (e.g. no fax) line. I tested it by sending a fax and it also was accepted. Documentation: Here are two listings. The first a data connection, the second a fax connection (with the above -D and data-only entries active) I changed the numbers to be xxx xxx xxxx for this email. Notice mgetty sees teh difference between a data connection and a fax connection. 05/02 21:04:12 yS1 mdm_send: 'AT' -> OK 05/02 21:04:12 yS1 waiting... 05/02 21:17:19 yS1 wfr: waiting for ``RING'' 05/02 21:17:19 yS1 send: ATA[0d] 05/02 21:17:19 yS1 waiting for ``CONNECT'' ** found ** 05/02 21:17:33 yS1 send: 05/02 21:17:33 yS1 waiting for ``_'' ** found ** 05/02 21:17:45 ##### data dev=ttyS1, pid=26441, caller='none', conn='28800/ARQ/V34/LAPM/V42BIS', name='', cmd='/bin/login', user='xxxxx' -- 05/02 16:54:26 yS1 mgetty: experimental test release 1.1.30-Dec16 05/02 16:54:26 yS1 check for lockfiles 05/02 16:54:26 yS1 locking the line 05/02 16:54:27 yS1 lowering DTR to reset Modem 05/02 16:54:28 yS1 send: \dATQ0V1H0[0d] 05/02 16:54:28 yS1 waiting for ``OK'' ** found ** 05/02 16:54:28 yS1 send: ATS0=0Q0&D3&C1[0d] 05/02 16:54:28 yS1 waiting for ``OK'' ** found ** 05/02 16:54:29 yS1 waiting... 05/02 16:56:40 yS1 wfr: waiting for ``RING'' 05/02 16:56:40 yS1 send: ATA[0d] 05/02 16:56:40 yS1 waiting for ``CONNECT'' 05/02 16:56:47 yS1 found action string: ``+FCO_'' 05/02 16:56:47 yS1 start fax receiver... 05/02 16:56:47 yS1 fax_wait_for(OK) 05/02 16:56:49 yS1 fax_id: '+FTI:" xxx xxx xxxx"' 05/02 16:56:49 yS1 transmission par.: '+FCS:1,5,0,2,0,0,0,0'** found ** 05/02 16:56:49 yS1 fax_send: 'AT+FDR' 05/02 16:56:49 yS1 fax_wait_for(CONNECT)** found ** 05/02 16:56:55 yS1 fax_get_page_data: receiving /var/spool/fax/incoming/ffeb2e998S1-xxx-xxx-xxxx.01... 05/02 16:57:06 yS1 fax_get_page_data: page end, bytes received: 20000 05/02 16:57:06 yS1 fax_wait_for(OK) 05/02 16:57:06 yS1 page status: +FPS:1,2206,0,0,0** found ** 05/02 16:57:07 yS1 fax_send: 'AT+FDR' 05/02 16:57:07 yS1 fax_wait_for(CONNECT) 05/02 16:57:10 yS1 connection hangup: '+FHS:00'** found ** 05/02 16:57:10 ##### fax dev=ttyS1, pid=27356, caller='none', name='', id='xxx xxx xxxx', +FHNG=000, pages=1/0, time=00:00:30 _______________________________________________ LinuxManagers mailing list - http://www.linuxmanagers.org submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected] subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers