Hi all,

        I am having a problem connecting to my isp using diald.  It connects fine, but 
only stays connected for a couple of seconds, before terminating the link and 
redialling.  I can connect fine if i run my ppp-on script by itself, but when it's run 
by diald, it doesn't work.  I have attached below the syslog dump of what happens when 
diald connects, along with my diald.conf, and ppp-on files.

Any help would be great.  Thanks



The syslog dump

Jun 16 22:20:08 bluetongue diald[1930]: Running connect (pid = 1935).
Jun 17 08:20:08 bluetongue chat[1936]: timeout set to 3 seconds
Jun 17 08:20:08 bluetongue chat[1936]: abort on (\nBUSY\r)
Jun 17 08:20:08 bluetongue chat[1936]: abort on (\nNO ANSWER\r)
Jun 17 08:20:08 bluetongue chat[1936]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jun 17 08:20:08 bluetongue chat[1936]: send (rAT^M)
Jun 17 08:20:08 bluetongue chat[1936]: expect (OK)
Jun 17 08:20:08 bluetongue chat[1936]: rAT^M^M
Jun 17 08:20:08 bluetongue chat[1936]: OK
Jun 17 08:20:08 bluetongue chat[1936]:  -- got it 
Jun 17 08:20:08 bluetongue chat[1936]: send (ATH0^M)
Jun 17 08:20:08 bluetongue chat[1936]: timeout set to 50 seconds
Jun 17 08:20:08 bluetongue chat[1936]: expect (OK)
Jun 17 08:20:08 bluetongue chat[1936]: ^M
Jun 17 08:20:08 bluetongue chat[1936]: ATH0^M^M
Jun 17 08:20:08 bluetongue chat[1936]: OK
Jun 17 08:20:08 bluetongue chat[1936]:  -- got it 
Jun 17 08:20:08 bluetongue chat[1936]: send (ATDT82183400^M)
Jun 17 08:20:09 bluetongue chat[1936]: expect (CONNECT)
Jun 17 08:20:09 bluetongue chat[1936]: ^M
Jun 17 08:20:37 bluetongue chat[1936]: ATDT82183400^M^M
Jun 17 08:20:37 bluetongue chat[1936]: CONNECT
Jun 17 08:20:37 bluetongue chat[1936]:  -- got it 
Jun 17 08:20:37 bluetongue chat[1936]: send (^M)
Jun 17 08:20:37 bluetongue chat[1936]: expect (ogin:)
Jun 17 08:20:37 bluetongue chat[1936]:  115200/V90/LAPM/V42BIS/28800:TX/49333:RX
^M
Jun 17 08:20:39 bluetongue chat[1936]: max29.syd^M
Jun 17 08:20:39 bluetongue chat[1936]: ^M
Jun 17 08:20:39 bluetongue chat[1936]: ^M
Jun 17 08:20:39 bluetongue chat[1936]: login:
Jun 17 08:20:39 bluetongue chat[1936]:  -- got it 
Jun 17 08:20:39 bluetongue chat[1936]: send (simonm^M)
Jun 17 08:20:39 bluetongue chat[1936]: expect (assword:)
Jun 17 08:20:39 bluetongue chat[1936]: simonm^M
Jun 17 08:20:39 bluetongue chat[1936]: Password:
Jun 17 08:20:39 bluetongue chat[1936]:  -- got it 
Jun 17 08:20:39 bluetongue chat[1936]: send (*****^M)
Jun 16 22:20:39 bluetongue diald[1930]: Running pppd (pid = 1937).
Jun 17 08:20:40 bluetongue pppd[1937]: pppd 2.3.5 started by root, uid 0
Jun 17 08:20:40 bluetongue pppd[1937]: Using interface ppp0
Jun 17 08:20:40 bluetongue pppd[1937]: Connect: ppp0 <--> /dev/ttyS1
Jun 17 08:20:43 bluetongue pppd[1937]: LCP terminated by peer
Jun 17 08:20:46 bluetongue pppd[1937]: Connection terminated.
Jun 17 08:20:46 bluetongue pppd[1937]: Hangup (SIGHUP)
Jun 17 08:20:46 bluetongue pppd[1937]: Exit.
Jun 16 22:20:48 bluetongue diald[1930]: Delaying 30 seconds before clear to dial

My diald.conf file


# vi /etc/diald.conf

fifo /etc/diald/diald.ctl
mode ppp
connect "/etc/ppp/ppp-on-dialer"
device /dev/modem
speed 115200
modem
lock
crtscts
local 10.20.0.1
remote 10.20.0.8
dynamic
defaultroute
debug VERBOSE
include /usr/lib/diald/standard.filter
accounting-log /var/log/diald.calls.log
dial-fail-limit 3
two-way
connect-timeout 180
ip-up /etc/sysconfig/network-scripts/ifup-ppp
pppd-options debug

my ppp-on script
#!/bin/sh
  #
  # Script to initiate a PPP connection. This is the first part of the
  # pair of scripts. This is not a secure pair of scripts as the codes
  # are visible with the 'ps' command.  However, it is simple.
  #
  # These are the parameters. Change as needed.
  TELEPHONE=0282183400      # The telephone number for the connection
  ACCOUNT=simonm          # The account name for logon (as in 'George Burns')
  PASSWORD=52kjh2b         # The password for this account (and 'Gracie Allen')
  LOCAL_IP=0.0.0.0        # Local IP address if known. Dynamic = 0.0.0.0
  REMOTE_IP=0.0.0.0       # Remote IP address if desired. Normally 0.0.0.0
  NETMASK=255.255.255.0   # The proper netmask if needed
  #
  # Export them so that they will be available to 'ppp-on-dialer'
  export TELEPHONE ACCOUNT PASSWORD
  #
  # This is the location of the script which dials the phone and logs
  # in.  Please use the absolute file name as the $PATH variable is not
  # used on the connect option.  (To do so on a 'root' account would be
  # a security hole so don't ask.)
  #
  #
  DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
  #
  # Initiate the connection
  #
  #
  exec /usr/sbin/pppd /dev/modem 38400 debug kdebug 4\
          $LOCAL_IP:$REMOTE_IP \
          connect $DIALER_SCRIPT


# 

my ppp-on-dialer script

#!/bin/sh

  #
  # This is part 2 of the ppp-on script. It will perform the connection
  # protocol for the desired connection.
  #
  /usr/sbin/chat -v                                                 \
          TIMEOUT         3                               \
          ABORT           '\nBUSY\r'                      \
          ABORT           '\nNO ANSWER\r'                 \
          ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
          ''              \rAT                            \
          'OK-+++\c-OK'   ATH0                            \
          TIMEOUT         50                              \
          OK              ATDT82183400                    \
          CONNECT         ''                              \
          ogin:--ogin:    simonm                          \
          assword:        ******

# 



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

Reply via email to