Hi there,

I am problem when switching from analog dialup to ISDN.
I am currently using Slackware 7.0 v2.2.13, and diald.

What I have done:- (I will attach the logs/file below)
**********************
- Diald with analog modem works fine.
- manual ppp-go works with the DIVA T/A ISDN Modem (on ttyS0 - com1)
- I then modify diald.conf, options, chatscript file and then diald works.
- Later when I reboot the machine, ppp-go works but diald have scripting 
error. (log provided)
- I believed the hardware should be fine as the manual pppd works.
- I tried minicom and the ISDN T/A Modem responded to AT command set.

Question 1:-
Diald script error, could the I/O error caused it?
Is it the com port locked/error? How do I solve this? (log provided)

/var/log/messages
**********************
May  8 17:16:34 cher diald[480]: start sl0: SIOCSIFMETRIC: Operation not 
supported
May  8 17:16:38 cher diald[480]: Trigger: 
udp     192.168.0.222/1026     203.120.90.40/53
May  8 17:16:38 cher diald[480]: Calling site 192.168.0.244
May  8 17:16:39 cher diald[480]: Connect script failed.
May  8 17:16:40 cher diald[480]: Delaying 5 seconds before clear to dial.
May  8 17:16:45 cher diald[480]: Calling site 192.168.0.244
May  8 17:16:46 cher diald[480]: Connect script failed.
May  8 17:16:47 cher diald[480]: Delaying 5 seconds before clear to dial.

/var/log/syslog
****************
May  8 17:16:45 cher diald[480]: could not get initial terminal attributes: 
Input/output error
May  8 17:16:45 cher diald[480]: failed to set terminal attributes: 
Input/output error
May  8 17:16:45 cher diald[480]: could not get initial terminal attributes: 
Input/output error
May  8 17:16:45 cher diald[480]: failed to set terminal attributes: 
Input/output error
May  8 17:16:46 cher diald[480]: could not get initial terminal attributes: 
Input/output error
May  8 17:16:46 cher diald[480]: failed to set terminal attributes: 
Input/output error
May  8 17:16:46 cher chat[487]: Can't get terminal parameters: Input/output 
error

/et/diald.conf
***************
fifo /var/run/diald.ctl
mode ppp
connect "/usr/sbin/chat -f /etc/ppp/chatscript"
device /dev/modem
speed 230400
modem
lock
crtscts
debug
nodev-retry-timeout 30
retry-count 2
died-retry-count 1
redial-timeout 5
redial-backoff-start 10
redial-backoff-limit 900
dynamic
local 192.168.0.222
remote 192.168.0.244
pppd-options novj novjccomp user myusername
include /usr/lib/diald/standard.filter
defaultroute

/etc/ppp/chatscript
********************
TIMEOUT 5
"" AT&FH0
OK ATDXXXXXXX (I took out the "T" - the original was ATDT)
ABORT "NO CARRIER"
ABORT BUSY
ABORT "NO DIALTONE"
ABORT WAITING
TIMEOUT 60
CONNECT ""

/etc/ppp/options
****************
# General configuration options for PPPD:
lock
defaultroute
noipdefault
modem
/dev/ttyS0
230400
crtscts
# Uncomment the line below for more verbose error reporting:
debug
# If you have a default route already, pppd may require the other side
# to authenticate itself, which most ISPs will not do.  To work around this,
# uncomment the line below.  Note that this may have negative side effects
# on system security if you allow PPP dialins.  See the docs in /usr/doc/ppp*
# for more information.
noauth
passive
asyncmap 0


Question 2:-
Is this a critical error? Can I ignore it? Will it cause any harm?

/var/log/syslog
***************
May  8 17:17:59 cher pppd[503]: Received bad configure-nak/rej:  12 06 00 
00 00 01

Any comments/suggestions/solutions are appreciated.
I am clueless now and I don't know what else I can try out.

Regards,

BTW:-
/var/log/messages (log to show the manual pppd/diald did work before the 
reboot)
*****************
...(below shows manual pppd works)
May  8 14:38:16 cher kernel: registered device ppp0
May  8 14:38:16 cher pppd[377]: pppd 2.3.10 started by root, uid 0
May  8 14:38:17 cher chat[378]: timeout set to 60 seconds
May  8 14:38:17 cher chat[378]: abort on (ERROR)
May  8 14:38:17 cher chat[378]: abort on (BUSY)
May  8 14:38:17 cher chat[378]: abort on (NO CARRIER)
May  8 14:38:17 cher chat[378]: abort on (NO DIALTONE)
May  8 14:38:17 cher chat[378]: send (AT&FH0^M)
May  8 14:38:17 cher chat[378]: expect (OK)
May  8 14:38:17 cher chat[378]: AT&FH0^M^M
May  8 14:38:17 cher chat[378]: OK
May  8 14:38:17 cher chat[378]:  -- got it
May  8 14:38:17 cher chat[378]: send (atdXXXXXXX^M)
May  8 14:38:17 cher chat[378]: timeout set to 75 seconds
May  8 14:38:17 cher chat[378]: expect (CONNECT)
May  8 14:38:17 cher chat[378]: ^M
May  8 14:38:18 cher chat[378]: atdXXXXXXX^M^M
May  8 14:38:18 cher chat[378]: CONNECT
May  8 14:38:18 cher chat[378]:  -- got it
May  8 14:38:18 cher pppd[377]: Serial connection established.
May  8 14:38:18 cher pppd[377]: Using interface ppp0
May  8 14:38:18 cher pppd[377]: Connect: ppp0 <--> /dev/ttyS0
May  8 14:38:20 cher pppd[377]: local  IP address 210.24.228.5
May  8 14:38:20 cher pppd[377]: remote IP address 192.169.40.191
May  8 14:39:09 cher pppd[377]: Terminating on signal 2.
May  8 14:39:09 cher pppd[377]: Connection terminated.
May  8 14:39:09 cher pppd[377]: Connect time 0.9 minutes.
May  8 14:39:09 cher pppd[377]: Sent 1224 bytes, received 1938 bytes.
May  8 14:39:10 cher pppd[377]: Exit.
....(below shows diald works)
May  8 15:28:00 cher diald[1036]: Using fifo /var/run/diald.ctl
May  8 15:28:00 cher diald[1036]: Proxy device established on interface sl0
May  8 15:28:00 cher diald[1036]: start sl0: SIOCSIFMETRIC: Operation not 
supported
May  8 15:28:00 cher diald[1036]: Diald initial setup completed.
May  8 15:28:03 cher diald[1036]: Trigger: 
udp       192.168.0.1/1026     203.120.90.40/53
May  8 15:28:03 cher diald[1036]: Calling site 192.168.0.2
May  8 15:28:07 cher diald[1036]: Connected to site 192.168.0.2
May  8 15:28:07 cher diald[1036]: Running pppd (pid = 1043).
May  8 15:28:07 cher pppd[1043]: pppd 2.3.10 started by root, uid 0
May  8 15:28:07 cher pppd[1043]: Using interface ppp0
May  8 15:28:07 cher pppd[1043]: Connect: ppp0 <--> /dev/ttyS0
May  8 15:28:08 cher pppd[1043]: local  IP address 210.24.228.12
May  8 15:28:08 cher pppd[1043]: remote IP address 192.169.40.191
May  8 15:28:08 cher diald[1036]: New addresses: local 210.24.228.12, 
remote 192.169.40.191, broadcast 0.0.0.0
May  8 15:28:08 cher diald[1036]: start ppp0: SIOCSIFMETRIC: Operation not 
supported
May  8 15:28:56 cher diald[1036]: Closing down idle link.
May  8 15:28:56 cher diald[1036]: start sl0: SIOCSIFMETRIC: Operation not 
supported
May  8 15:28:56 cher pppd[1043]: Terminating on signal 2.
May  8 15:28:57 cher pppd[1043]: Connection terminated.
May  8 15:28:57 cher pppd[1043]: Connect time 0.9 minutes.
May  8 15:28:57 cher pppd[1043]: Sent 1148 bytes, received 1627 bytes.
May  8 15:28:57 cher pppd[1043]: Exit.
May  8 15:28:57 cher diald[1036]: Closing /dev/modem
May  8 15:28:58 cher diald[1036]: Delaying 5 seconds before clear to dial.

***************************************************************
"What you get by achieving your goals is not as
  important as what you become by achieving your goals."
Email     : [EMAIL PROTECTED]
Home Page : http://home.pacific.net.sg/~hkmun
***************************************************************


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to