Sorry to post this again, but I still have seen no sugestiosn as to what I
am doing wrong here :-(

And I am going out of town soon, and desperatrly need this to work.

Please, can some kind soul give me some help here?


I'm trying to set up one of my FreeBSD STABLE machines to dial intot the
company ppp server using a 80-0 number. I'v already got a ppp.conf entry
that works for the local number, and the 800 number differs only in that
it's a diffferent phone number (obviously), and that the answer sequence
involves waiting, and then sending an extension number. This makes the
connection/dial dialog longer. 

Here is the entry for the local number:


#################################################################
#
#       PPP  Sample Configuration File
#
#         Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.3.4.3 1996/06/17 09:17:50 jkh Exp $
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set server 6670 ppp_passwd
 set device /dev/cual0
 set speed 38400
 allow users *
 disable lqr
 deny lqr
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" \\dATZ OK ATX7 OK ATS37=11 OK 
ATS7=180 OK ATN0 OK ATDT\\T TIMEOUT 180 CONNECT"
#  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \\\dATY0Z0 OK \dATDT\\T 
TIMEOUT 120 CONNECT"
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \\dATDT\\T TIMEOUT 120 
CONNECT"
 # set log Phase Chat Connect tun TCP/IP IPCP hdlc
 set log Phase Chat Connect LCP CCP 
 set redial 1
#
# Example with login script
#   o From PPP prompt,
#       ppp> dial awod
#     will automatically dials and perform login procedure.
#
#       ppp> load awod
#     will also load and execute commands, but don't dial.
#
#   o From shell, invoke as
#       % ppp awod
#     will load commands associated with the label. Use,
#       ppp> dial
#     to establish the connection.
#
#
awod_new:
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \dATDT\\T TIMEOUT 120 
CONNECT"
 set phone 9w3295900
 # set phone 3295900
 set login "TIMEOUT 5 name>-\\r-name> stanb word> 611_no_more(- tion: 2"
 deny chap
 accept pap
# enable pap
 set authname stanb
 set authkey  611_no_more(-
 set timeout 600
 # set ifaddr 127.1.1.1/0 127.1.1.2/0
 # add 0 0 127.1.1.2
 allow dns
 delete default
 add 0 0 HISADDR
#
awod:
 set phone 7692052
 set login "TIMEOUT 10 name>-\\r-name> stanb word> 611_no_more(- tion: 2\r"\""
 set timeout 600
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 add 0 0 127.1.1.2
grizzly:
 set parity even
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \\\dATY0Z0 OK \dATDT\\T 
TIMEOUT 180 CONNECT"
 set timeout 180
 set phone "9w8864919"
# set phone "8864919"
 set parity even
 set login "TIMEOUT 80 gin:-\\r-gin: stan word: foo-bar tan spp"
 set timeout 6000
 deny chap
 deny deflate pred1
 disable deflate pred1
 enable lqr
 allow lqr
 set timeout 60000
 set ifaddr 127.1.1.1/0 127.1.1.2/0
# add 0 0 127.1.1.2
ppp_grizzly:
 set parity even
 set timeout 120
 set phone "8864919"
 set parity even
 set login "TIMEOUT 10 gin:-\\r-gin: ppp word: ppp_test"
 set timeout 6000
 deny chap
 deny deflate pred1
 disable deflate pred1
 enable lqr
 allow lqr
 set timeout 6000
 delete all
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 add 0 0 127.1.1.2
black:
 delete ALL
 deny chap
 accept pap
 set authname stan
 set authkey  foo-bar
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \\\dATY0Z0 OK \dATDT\\T 
TIMEOUT 180 CONNECT"
 set timeout 180
 set phone "8864919"
# set phone "9w8864919"
 deny lqr
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 add 0 0 127.1.1.2
 add 205.159.77.0 255.255.255.0 HISADDR
netcom:
 set openmode active
 set phone 9W5698740
 # set login "TIMEOUT 125 gin:-\\r-gin: stanb word: 611_no_more(- stanb slirp"
 # set login "TIMEOUT 125 gin:-\\r-gin: stanb word: 611_no_more(- nnected \\r word: 
611_no_more(- stanb slirp"
 set login "TIMEOUT 125 gin:-\\r-gin: stanb word: 611_no_more(- word: 611_no_more(- 
stanb slirp"
 disable pred1
 deny pred1
 set timeout 180
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 # set ifaddr 127.1.1.1/0 127.1.1.2/0
 # set ifaddr 10.0.0.1 10.0.0.2 255.255.255.0 0.0.0.0/0
 delete default
 add 0 0 HISADDR
 # add! default HISADDR
 # delete default
 # add 0 0 HISADDR
#
# Multi-phone example
#
multiphone:
 set phone 12345678:12345679:12345670:12345671
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
#
# If peer requires to use CHAP, don't forget to supply authname and authkey.
#
# If you'd like to use CHAP to authentication peer, comment out the line
# ``enable chap'' below. You also need to prepare /etc/ppp.secret.
#
# If remote system sends its system name within CHAP packet and it is
# found in /etc/ppp.secret, then secret key is taken from the file and
# value of authkey is ignored.
#
chapsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny pap
 accept chap
# enable chap
 set authname MySystemName
 set authkey  OurSecretKey
#
# To speak PAP is just similar to CHAP
#
papsite:
 set phone 8530856
 set login "TIMEOUT 5 login:-\\r-login> ppp word> ppp"
 deny chap
 accept pap
# enable pap
 set authname stanb
 set authkey  611_no_more(-
#
# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto option to invoke PPP.
#
#  ex. % ppp -auto ondemand
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
 add 0 0 192.244.176.44
#
# Another on demand example
#  If peer assign some IP address for us, and we can't predict it
#  until we make a connection, use 0 as local side address.
#
pmdemend:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 0 192.244.176.44 255.255.255.0
 add 0 0 192.244.176.44
#
# Example to validate incoming user with CHAP
#  Invod as ``ppp -direct users'' from login script. User's system name
#  and secret-key must be registered into /etc/ppp.secret.
#  IP address assigned to peer is registered in ppp.secret, then that
#  value is used and value in ``ifaddr'' command has no effect.
#
users:
 disable pap
 enable chap
 enable  proxy
 set authname ppp-server
 set ifaddr 192.244.176.44 292.244.184.31
#
# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentication. We simply use chat script capability
#  and wait for a "NO CARRIER" response from our modem.
#
#  % ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret 
TIMEOUT 20 DUMMY"
 set log phase chat
 dial
 quit
#
# Example for PPP/TELNET and PPP/TCP. Read doc for further details
#
ppptelnet:
 set escape 0xff
ppptcp:
 set device 192.244.191.33:2400

wv:
 delete ALL
 set phone XwXXXXXXX
 deny chap
 accept pap
 set authname sdbrown
 set authkey  foo-bar
 set timeout 120
 delete all
 # Take a wild guess at an IP number and let the other side decide
 set ifaddr X70.85.107.1/25 X70.85.107.14/25 255.255.255.255 0
 add X70.85.107.0 255.255.255.128 HISADDR

 add 0 0 HISADDR

So, I copied thta section and created this one:

rwv:
 delete ALL
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 480 \"\" \\dATDT\\T TIMEOUT 480 
CONNECT"
 set timeout 240
 set phone 9w1800XXXXXXX.....3610
 deny chap
 accept pap
 set authname sdbrown
 set authkey  foo-bar
 delete all
 # Take a wild guess at an IP number and let the other side decide
 set ifaddr X70.85.107.1/25 X70.85.107.14/25 255.255.255.255 0
 add X70.85.107.0 255.255.255.128 HISADDR

 add 0 0 HISADDR


But, unfortunately, I still have timeout problems. See this logfile snipet:


Aug 29 14:12:41 brown2 ppp[862]: Phase: Using interface: tun0 
Aug 29 14:12:41 brown2 ppp[862]: Phase: deflink: Created in closed state 
Aug 29 14:12:41 brown2 ppp[862]: Phase: Listening at port 6670. 
Aug 29 14:12:41 brown2 ppp[862]: Warning: Add route failed: XXX.85.107.0/25 already 
exists 
Aug 29 14:12:41 brown2 ppp[862]: Warning: Add route failed: 0.0.0.0/0 already exists 
Aug 29 14:12:41 brown2 ppp[863]: Phase: PPP Started (ddial mode). 
Aug 29 14:12:41 brown2 ppp[863]: Phase: bundle: Establish 
Aug 29 14:12:41 brown2 ppp[863]: Phase: deflink: closed -> opening 
Aug 29 14:12:41 brown2 ppp[863]: Phase: deflink: Connected! 
Aug 29 14:12:41 brown2 ppp[863]: Phase: deflink: opening -> dial 
Aug 29 14:12:41 brown2 ppp[863]: Chat: Phone: 9w18008XXXXX.....3610 
Aug 29 14:12:41 brown2 ppp[863]: Chat: Send: ATDT9w18008XXXXX.....3610^M 
Aug 29 14:12:43 brown2 ppp[863]: Chat: Expect(480): CONNECT 
Aug 29 14:13:37 brown2 ppp[863]: Chat: Received: ATDT9w18008XXXXX.....3610^M^M 
Aug 29 14:13:37 brown2 ppp[863]: Chat: Received: NO CARRIER^M 
Aug 29 14:13:37 brown2 ppp[863]: Warning: Chat script failed 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: dial -> hangup 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: Disconnected! 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: Connect time: 56 secs: 0 octets in, 0 
octets out 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: 0 packets in, 0 packets out 
Aug 29 14:13:37 brown2 ppp[863]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Fri 
Aug 29 14:12:41 2003 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: hangup -> opening 
Aug 29 14:13:37 brown2 ppp[863]: Phase: deflink: Enter pause (1) for redialing. 
Aug 29 14:13:38 brown2 ppp[863]: Chat: deflink: Redial timer expired. 
Aug 29 14:13:40 brown2 ppp[863]: Phase: deflink: Connected! 
Aug 29 14:13:40 brown2 ppp[863]: Phase: deflink: opening -> dial 
Aug 29 14:13:40 brown2 ppp[863]: Chat: Phone: 9w18008XXXXX.....3610 
Aug 29 14:13:40 brown2 ppp[863]: Chat: Send: ATDT9w18008XXXXX.....3610^M 
Aug 29 14:13:42 brown2 ppp[863]: Chat: Expect(480): CONNECT 
Aug 29 14:14:36 brown2 ppp[863]: Chat: Received: ATDT9w18008XXXXX.....3610^M^M 
Aug 29 14:14:36 brown2 ppp[863]: Chat: Received: NO CARRIER^M 
Aug 29 14:14:36 brown2 ppp[863]: Warning: Chat script failed 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: dial -> hangup 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: Disconnected! 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: Connect time: 56 secs: 0 octets in, 0 
octets out 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: 0 packets in, 0 packets out 
Aug 29 14:14:36 brown2 ppp[863]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Fri 
Aug 29 14:13:40 2003 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: hangup -> opening 
Aug 29 14:14:36 brown2 ppp[863]: Phase: deflink: Enter pause (1) for redialing. 
Aug 29 14:14:37 brown2 ppp[863]: Chat: deflink: Redial timer expired. 
Aug 29 14:14:39 brown2 ppp[863]: Phase: deflink: Connected! 
Aug 29 14:14:39 brown2 ppp[863]: Phase: deflink: opening -> dial 
Aug 29 14:14:39 brown2 ppp[863]: Chat: Phone: 9w18008XXXXX.....3610 
Aug 29 14:14:39 brown2 ppp[863]: Chat: Send: ATDT9w18008XXXXX.....3610^M 
Aug 29 14:14:41 brown2 ppp[863]: Chat: Expect(480): CONNECT 
Aug 29 14:14:45 brown2 ppp[863]: Phase: Signal 15, terminate. 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: Disconnected! 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: dial -> logout 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: logout -> hangup 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: Disconnected! 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: Connect time: 6 secs: 0 octets in, 0 
octets out 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: 0 packets in, 0 packets out 
Aug 29 14:14:45 brown2 ppp[863]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Fri 
Aug 29 14:14:39 2003 
Aug 29 14:14:45 brown2 ppp[863]: Phase: deflink: hangup -> closed 
Aug 29 14:14:45 brown2 ppp[863]: Phase: bundle: Dead 
Aug 29 14:14:45 brown2 ppp[863]: Phase: PPP Terminated (normal). 


So, it looks like I missed a 60 second timeout somewhere. Anyone have any
ideas where it might be?

The modem is a Winmodem using the Winmodem module from ports, if thta
matters.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


----- End forwarded message -----

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to