🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.networking
Article #5708

Re: PPP1_45 problems?

#5708
From: John S. Burger
Date: Sat, 23 Mar 1996 09:51
82 lines
3522 bytes
On or about 21-Mar-96 02:28:25 Bernhard Graf typed the following words about
"Re: PPP1_45 problems?".  My reply is thus...

 Hi Bernhard,


 BG> In article <19960319.7D4BAA0.8F77@ccubb.com>: "Re: PPP1_45 problems?"
 BG> David Evans <devans@ccubb.com> wrote:

DE>> Uh, why not let ppp do the dialing?  (Assuming you have a registered
DE>> version) It works flawlessly!

 BG> It still handles only one number. (Please correct me, when I'm wrong).


 BG> Ciao
 BG> --
 BG> Bernhard Graf
 BG> mail graf@jojo.IN-Berlin.DE
 BG>      graffbgd@sp.zrz.TU-Berlin.DE

You don't need the registered version to have dialing however registration is
well worth the price.


One way to get multiple numbers if you are using the online command to start
the ppp.device is to make a pppx.config file for each number and call a
different dial script for each one. The only difference in the dial scripts
would be the phone number. The online command gives a return code of 10 if the
command fails so if a timeout occurs because of a no carrier you get a RC of
10. So just change your startnet script to watch for RC=10 and you can call
each config in order. Like this....

Say you have 3 phone numbers, you create 3 ppp config files (ppp0.config,
ppp1.config, ppp2.config). Each one calls a different dial file. The only
difference in the dial files is the phone number. You will have to add a line
in your AmiTCP:db/interfaces file for each ppp config.

ppp0 DEV=DEVS:Networks/ppp.device UNIT=0 IPTYPE=33 NOARP P2P
ppp1 DEV=DEVS:Networks/ppp.device UNIT=1 IPTYPE=33 NOARP P2P
ppp2 DEV=DEVS:Networks/ppp.device UNIT=2 IPTYPE=33 NOARP P2P

Then where ever the online command is in your startnet script make a loop
watching for a RC of 10 and call the next online command.

-------------------------CUT-------------------------


MultiDial:

AmiTCP:bin/online >NIL: devs:Networks/ppp.device 0
if RC=10 then do
  AmiTCP:bin/online >NIL: devs:Networks/ppp.device 1
  else
    if RC=10 then do
       AmiTCP:bin/online >NIL: devs:Networks/ppp.device 2
          if RC=10 then do
          call(MultiDial:)
          end
     end
end

-------------------------CUT-------------------------


Do this in arexx and you should be able to dial any number of phone numbers.
You may have to add a "Wait x" command before each online command but this
should work although I havn't tried it.

--
      //        -= John =-    jsburger@xmission.com    BIX: jburger
    \X/                                                                 Via
                             Amateur Radio   KB0ES                       T
 Amiga  2000                                                             H
 A2630 A2632            John S. Burger       Hooper, UT                  O
2+14megs  RAM                                                            R
  850meg HD             This message was composed on...                2.23ß
 Iomega  ZIP                  23-Mar-96 14:18:21 MST
--

The trick in overcoming temptation, is to play dead.
Technical Details
Message-ID: <2993.6656T891T2284@xmission.com>
Path: arc1-ca.pugleaf.net!newsfeed.internetmci.com!xmission!news
References: <19960319.7D4BAA0.8F77@ccubb.com> <66095637@jojo.IN-Berlin.DE>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeed.internetmci.com!xmission!news
From: jsburger@xmission.com (John S. Burger)
Newsgroups: comp.sys.amiga.networking
Subject: Re: PPP1_45 problems?
Date: 23 Mar 96 14:51:45 +0500
Organization: XMission Internet (801 539 0900)
Message-ID: <2993.6656T891T2284@xmission.com>
References: <19960319.7D4BAA0.8F77@ccubb.com> <66095637@jojo.IN-Berlin.DE>
NNTP-Posting-Host: slc34.xmission.com
X-Newsreader: THOR 2.22 (Amiga;TCP/IP)