Hola:
Tengo problemas a la hora de implementar el servicio de identificador de 
llamadas. Estoy usando mgetty+ppp, segun puedo ver en la traza se identifica el 
numero por el servcio mgetty, pero no se como quitarle el Area de procedencia 
(0322), ni porque el mismo mgetty me levanta el AutoPPP si me da denied 
caller.

Dec 11 15:32:34 proxys mgetty[2825]: denied caller dev=ttyS0, pid=2825, 
caller='032292072' 
Dec 11 15:32:57 proxys mgetty[2825]: data dev=ttyS0, pid=2825, caller='none', 
conn='', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'

No logro entender como en la primera traza si identifca el caller , y en la 
segunda siendo el mismo pid no la reconoce.
Estos son basicamente mis ficheros de configuracion:
/etc/mgetty+sendfax/dialin.config
292072
!all
/etc/mgetty+sendfax/mgetty.config
port ttyS0
    debug 9
    init-chat "" \d\d\d+++\d\d\dATS0=2 OK AT+VCID=1 OK 
    data-only yes
/etc/mgetty+sendfax/login.config
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/pppoe-server-options 
*       -       -       /bin/login @

En el ppp.  uso autenticacion pap-secrets y    en le fichero pppoe-server-
opions uso los parametros:
ip server:ip estacion
netmask mascara
require-pap
login
#lcp-echo-interval 10
#lcp-echo-failure 2
ms-dns ip del dns

Estas son las trazas  de la terminal:

12/11 16:44:04 yS0  mgetty: interim release 1.1.33-Apr10
12/11 16:44:04 yS0  check for lockfiles
12/11 16:44:04 yS0   checklock: no active process has lock, will remove
12/11 16:44:04 yS0  locking the line
12/11 16:44:04 yS0   makelock(ttyS0) called
12/11 16:44:04 yS0   do_makelock: lock='/var/lock/LCK..ttyS0'
12/11 16:44:04 yS0   lock made
12/11 16:44:04 yS0   tio_get_rs232_lines: status: RTS DTR
12/11 16:44:04 yS0  WARNING: DSR is off - modem turned off or bad cable?
12/11 16:44:04 yS0  lowering DTR to reset Modem
12/11 16:44:05 yS0  TIOCMBIS failed: Input/output error
12/11 16:44:05 yS0  cannot turn off soft carrier: Input/output error
12/11 16:44:05 yS0  tcgetattr failed: Input/output error
12/11 16:44:05 yS0  cannot get TIO: Input/output error
12/11 16:44:05 yS0  mg_init_device failed, trying again
12/11 16:44:05 yS0   tio_get_rs232_lines: status: RTS DTR
12/11 16:44:05 yS0  WARNING: DSR is off - modem turned off or bad cable?
12/11 16:44:05 yS0  lowering DTR to reset Modem
12/11 16:44:05 yS0   tss: set speed to 38400 (017)
12/11 16:44:05 yS0   tio_set_flow_control( HARD )
12/11 16:44:05 yS0   waiting for line to clear (VTIME=1), read: 
12/11 16:44:06 yS0  send: \d\d\d+++\d\d\dATS0=2[0d]
12/11 16:44:09 yS0  waiting for ``OK''
12/11 16:44:09 yS0   got: +++ATS0=2[0d]
12/11 16:44:09 yS0    CND: +++ATS0=2[0d][0a]OK ** found **
12/11 16:44:09 yS0  send: AT+VCID=1[0d]
12/11 16:44:09 yS0  waiting for ``OK''
12/11 16:44:09 yS0   got: [0d]
12/11 16:44:09 yS0    CND: OK[0a]AT+VCID=1[0d]
12/11 16:44:09 yS0    CND: AT+VCID=1[0d][0a]OK ** found **
12/11 16:44:09 yS0   waiting for line to clear (VTIME=3), read: [0d][0a]
12/11 16:44:09 yS0   removing lock file
12/11 16:44:09 yS0  waiting...
12/11 16:44:42 yS0    select returned 1
12/11 16:44:42 yS0   checking lockfiles, locking the line
12/11 16:44:42 yS0   makelock(ttyS0) called
12/11 16:44:42 yS0   do_makelock: lock='/var/lock/LCK..ttyS0'
12/11 16:44:42 yS0   lock made
12/11 16:44:42 yS0  wfr: waiting for ``RING''
12/11 16:44:42 yS0   got: [0d][0a]RING[0d]
12/11 16:44:42 yS0    CND: RING
12/11 16:44:42 yS0   wfr: rc=0, drn=0
12/11 16:44:42 yS0  wfr: waiting for ``RING''
12/11 16:44:42 yS0   got: [0a][0d][0a]DATE = 1211[0d]
12/11 16:44:43 yS0    CND: DATE = 1211
12/11 16:44:43 yS0    CND: found: 1211
12/11 16:44:43 yS0   got: [0a]TIME = 1645[0d]
12/11 16:44:43 yS0    CND: TIME = 1645
12/11 16:44:43 yS0    CND: found: 1645
12/11 16:44:43 yS0   got: [0a]NMBR = 032292070[0d]
12/11 16:44:43 yS0    CND: NMBR = 032292070
12/11 16:44:43 yS0    CND: found: 032292070
12/11 16:44:43 yS0   wfr: rc=0, drn=0
12/11 16:44:43 yS0    CND: check no: '032292072'
12/11 16:44:43 yS0    CND: check vs: '032292072'
12/11 16:44:43 yS0    CND: check vs: all
12/11 16:44:43 ##### denied caller dev=ttyS0, pid=3584, caller='032292072'

12/11 16:44:43 yS0   waiting for line to clear (VTIME=80), read: [0d]
[0a]RING[0d][0a]
12/11 16:44:55 yS0   waiting for line to clear (VTIME=3), read: 
12/11 16:44:55 yS0   removing lock file
12/11 16:44:55 yS0  waiting...
12/11 16:45:04 yS0    select returned 1
12/11 16:45:04 yS0   checking lockfiles, locking the line
12/11 16:45:04 yS0   makelock(ttyS0) called
12/11 16:45:04 yS0   do_makelock: lock='/var/lock/LCK..ttyS0'
12/11 16:45:04 yS0   lock made
12/11 16:45:04 yS0  wfr: waiting for ``RING''
12/11 16:45:04 yS0   got: [0a][0d][0a]CONNECT
12/11 16:45:04 yS0  wfr: found action string: ``CONNECT''
12/11 16:45:04 yS0   wfr: rc=-1, drn=0
12/11 16:45:04 yS0   waiting for line to clear (VTIME=3), read: ~[ff]}#[c0]!}!} 
} }7}"}&} } } } }%}&}([8e]w[bf]}'}"}(}"}-}#}&[bd]|~
12/11 16:45:05 yS0    looking for utmp entry... (my PID: 3584)
12/11 16:45:05 yS0   utmp + wtmp entry made
12/11 16:45:05 yS0   tio_set_flow_control( HARD )
12/11 16:45:05 yS0   print welcome banner (/etc/issue)
12/11 16:45:05 yS0   getlogname (AUTO_PPP), read:~[ff]}#[c0]!
12/11 16:45:06 yS0   input finished with '\r', setting ICRNL ONLCR
12/11 16:45:06 yS0   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
12/11 16:45:06 yS0    login: use login config file 
/etc/mgetty+sendfax/login.config
12/11 16:45:06 yS0   match: user='/AutoPPP/', key=''
12/11 16:45:06 yS0   match: user='/AutoPPP/', key=''
12/11 16:45:06 yS0   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
12/11 16:45:06 yS0   calling login: cmd='/usr/sbin/pppd', argv[]='pppd file 
/etc/ppp/pppoe-server-options'
12/11 16:45:06 yS0   setenv: 'CALLER_ID=none'
12/11 16:45:06 yS0   setenv: 'CONNECT='
12/11 16:45:06 yS0   setenv: 'DEVICE=ttyS0'
12/11 16:45:06 ##### data dev=ttyS0, pid=3584, caller='none', conn='', 
name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'



-- 
Ing. Nidia Hdez Avila
Dir.Prov. BPA Cmg.

-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.

_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a