vgetty and redhat 6.0 and USR-I-modem and isdn4linux

Gerhard Zuber (zuber@berlin.snafu.de)
23 Aug 1999 1923:11:26 GMT


hi,

I have redhat 6.0 and linux 2.2.11 (unpatched)

currently is running USR-Courier-I-Modem in fax/data-mode and
isdn4linux in data-mode with mgetty. they are working properly.

Now I want to add voice-mode with vgetty on one ore both
with the following feature:
if one dials in in voice-mode, there should be played some senseful
message. Nothing should be recorded, but if the dialer is pressing
some keys on the DTMF-keypad, some actions should be started. Here
I want to go online with the linux-box.

Now the USR-I-Modem:
------------------------------------------------------------------------
08/24 00:49:51 yS2  USR I-Modem detected
08/24 00:49:51 yS2  mdm_send: 'ATI3'
08/24 00:49:51 yS2    got:[0a][0d][0a]USRobotics Courier I-Modem with ISDN/V.34[0d]
08/24 00:49:51 yS2   mdm_gis: string 1: 'USRobotics Courier I-Modem with ISDN/V.34'
08/24 00:49:51 yS2    got:[0a][0d][0a]OK[0d]
08/24 00:49:51 yS2  additional info: 'USRobotics Courier I-Modem with ISDN/V.34'
[... snip]
08/24 00:49:51 yS2  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0'
08/24 00:49:51 yS2    got:[0a][0d][0a]OK[0d]
08/24 00:49:51 yS2   mdm_command: string 'OK' -> OK
08/24 00:49:51 yS2   tss: set speed to 38400 (017)
08/24 00:49:51 yS2   tio_set_flow_control( HARD )
08/24 00:49:51 yS2  detecting voice modem type
08/24 00:49:51 yS2    vgetty: ATE0
08/24 00:49:52 yS2    serial port: OK
08/24 00:49:52 yS2   voice command: 'ATI9' -> ''
08/24 00:49:52 yS2    vgetty: ATI9
08/24 00:49:52 yS2    serial port: ERROR
08/24 00:49:53 yS2   voice command: 'ATI' -> ''
08/24 00:49:53 yS2    vgetty: ATI
08/24 00:49:53 yS2    serial port: 6401
08/24 00:49:53 yS2    serial port: OK
08/24 00:49:53 yS2  no voice modem detected
------------------------------------------------------------------------

vgetty does not recognize this as a voice-modem.


Now ISDN4LINUX:
------------------------------------------------------------------------
08/24 00:11:53 yI8  can't get group 'modem': No such file or directory
08/24 00:11:53 yI8   tio_get_rs232_lines: status: RTS CTS DSR DTR
08/24 00:11:53 yI8  lowering DTR to reset Modem
08/24 00:11:54 yI8   tss: set speed to 38400 (017)
08/24 00:11:54 yI8   tio_set_flow_control( HARD )
08/24 00:11:54 yI8   waiting for line to clear (VTIME), read: 
08/24 00:11:54 yI8  send: AT[0d]
08/24 00:11:54 yI8  waiting for ``OK''
08/24 00:11:54 yI8   got: [0d][0a]OK ** found **
08/24 00:11:54 yI8  send: \dAT&F&EXXXXXX&B512S18=1[0d]
08/24 00:11:55 yI8  waiting for ``OK''
08/24 00:11:55 yI8   got: [0d]
08/24 00:11:55 yI8    CND: OK[0a][0d][0a]OK ** found **
08/24 00:11:55 yI8   tss: set speed to 38400 (017)
08/24 00:11:55 yI8   tio_set_flow_control( HARD )
08/24 00:11:55 yI8  detecting voice modem type
08/24 00:11:55 yI8    vgetty: ATE0
08/24 00:11:55 yI8    serial port: ATE0
08/24 00:11:55 yI8    serial port: OK
08/24 00:11:55 yI8   voice command: 'ATI9' -> ''
08/24 00:11:55 yI8    vgetty: ATI9
08/24 00:11:55 yI8    serial port: Linux ISDN
08/24 00:11:55 yI8    serial port: ERROR
08/24 00:11:56 yI8   voice command: 'ATI' -> ''
08/24 00:11:56 yI8    vgetty: ATI
08/24 00:11:56 yI8    serial port: Linux ISDN
08/24 00:11:56 yI8    Linux ISDN: OK
08/24 00:11:56 yI8  Linux ISDN detected
08/24 00:11:56 yI8   vgetty: entering voice mode
08/24 00:11:56 yI8   vgetty: Installing signal handlers
08/24 00:11:56 yI8   voice command: 'AT+FCLASS?' -> ''
08/24 00:11:56 yI8    vgetty: AT+FCLASS?
08/24 00:11:56 yI8    Linux ISDN: 8
08/24 00:11:56 yI8   voice command: '' -> 'OK'
08/24 00:11:56 yI8    Linux ISDN: OK
08/24 00:11:56 yI8   voice command: 'AT+FCLASS=8' -> 'OK'
08/24 00:11:56 yI8    vgetty: AT+FCLASS=8
08/24 00:11:56 yI8    Linux ISDN: OK
08/24 00:11:56 yI8   voice command: 'AT' -> 'OK'
08/24 00:11:56 yI8    vgetty: AT
08/24 00:11:56 yI8    Linux ISDN: OK
08/24 00:11:56 yI8  initializing ISDN4Linux voice mode
08/24 00:11:56 yI8    vgetty: queued event RESET_WATCHDOG at position 0000
08/24 00:11:56 yI8   voice command: 'ATS18?' -> ''
08/24 00:11:57 yI8    vgetty: ATS18?
08/24 00:11:57 yI8    vgetty: unqueued event RESET_WATCHDOG at position 0000
08/24 00:11:57 yI8    vgetty: voice_handle_event got event RESET_WATCHDOG with data <NUL>
08/24 00:11:57 yI8    Linux ISDN: 5
08/24 00:11:57 yI8   voice command: '' -> 'OK'
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   voice command: 'ATS18=5' -> 'OK'
08/24 00:11:57 yI8    vgetty: ATS18=5
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   voice command: 'ATS13?' -> ''
08/24 00:11:57 yI8    vgetty: ATS13?
08/24 00:11:57 yI8    Linux ISDN: 4
08/24 00:11:57 yI8   voice command: '' -> 'OK'
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   voice command: 'ATS13=20' -> 'OK'
08/24 00:11:57 yI8    vgetty: ATS13=20
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   vgetty: leaving voice mode
08/24 00:11:57 yI8   voice command: 'AT+FCLASS=8' -> 'OK'
08/24 00:11:57 yI8    vgetty: AT+FCLASS=8
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   voice command: 'AT' -> 'OK'
08/24 00:11:57 yI8    vgetty: AT
08/24 00:11:57 yI8    Linux ISDN: OK
08/24 00:11:57 yI8   vgetty: Restoring signal handlers
08/24 00:11:57 yI8   waiting for line to clear (VTIME), read: 
08/24 00:11:58 yI8   removing lock file
08/24 00:11:58 yI8  waiting...
------------------------------------------------------------------------

it seems that the "modem" is recognized, but if I dial in, isdn4linux does not
answer the call.

I did some expieriance with the init-string in mgetty.config
  S18=1
so that the ttyIx-should answer audio-calls, with no effect (audio-support
is compiled in).

Now, maybe one has some information,

thanx in advance

gerhard.