From: Naresh Sharma 23.Dec.1996 Subject: Problems with callback solved Hi Folks, Good News, ;-) ISDN4Linux works will bot dialout and call back. A big and special thanks to all those who gave their inputs: Karsten, Michael, Carlo, and Tor. The isdnup script is as follows (phone numbers and IP addresses have been changed. Please note that in the Netherlands (PTT), MSN numbers include the city code. I get -NO- errors, with the following scripts, not even warnings (/var/log/ppp-log, /var/log/debug, /var/log/messages, /dev/isdnctrl, are all clean of errors). At the moment, I'm working on channel bundling possibilities with my ISP, and will post the results. There is no problem in calling/disconnecting several times during the day. The rest of the stuff is in ppp-options files. Check my home page after a couple of days for the ppp-options. _______cut__________cut________________cut________________cut_________ #!/bin/sh ######################################################################## # # # ISDN Scripts by Naresh Sharma # # Use them as you wish, and enjoy. # # # ######################################################################## #### COUNTRY and CALLING CONVENTIONS COUTRY_CODE=31 OUTSIDE_DIALING_CODE=0 INTERNATIONAL_DIALING_CODE=00 #### LOCAL setup LOCAL_NUMBER=1234567 LOCAL_CITY_CODE=40 LOCAL_IP="123.123.123.123" #### Remote Setup REMOTE_NUMBER=7654321 REMOTE_CITY_CODE=15 REMOTE_IP="123.123.123.12" #### ISDN Device initialization telesctrl MyTeles 1 31 #### ISDN Device setup #### Callout device DEVICE0=ippp0 isdnctrl addif $DEVICE0 #### Callback device DEVICE1=ippp1 isdnctrl addif $DEVICE1 #### Phone Initialization #### Generic #### Callout device isdnctrl addphone $DEVICE0 in $REMOTE_CITY_CODE$REMOTE_NUMBER isdnctrl addphone $DEVICE0 out $OUTSIDE_DIALING_CODE$REMOTE_CITY_CODE$REMOTE_NUMBER isdnctrl eaz $DEVICE0 $LOCAL_CITY_CODE$LOCAL_NUMBER isdnctrl encap $DEVICE0 syncppp isdnctrl l2_prot $DEVICE0 hdlc isdnctrl l3_prot $DEVICE0 trans isdnctrl huptimeout $DEVICE0 60 isdnctrl chargehup $DEVICE0 on isdnctrl secure $DEVICE0 on isdnctrl cbhup $DEVICE0 off isdnctrl callback $DEVICE0 out isdnctrl ihup $DEVICE0 off #### Callback device isdnctrl addphone $DEVICE1 in $REMOTE_CITY_CODE$REMOTE_NUMBER isdnctrl addphone $DEVICE1 out $OUTSIDE_DIALING_CODE$REMOTE_CITY_CODE$REMOTE_NUMBER isdnctrl eaz $DEVICE1 $LOCAL_CITY_CODE$LOCAL_NUMBER isdnctrl encap $DEVICE1 syncppp isdnctrl l2_prot $DEVICE1 hdlc isdnctrl l3_prot $DEVICE1 trans isdnctrl huptimeout $DEVICE1 60 isdnctrl chargehup $DEVICE1 on isdnctrl secure $DEVICE1 on isdnctrl cbhup $DEVICE1 off isdnctrl callback $DEVICE1 out isdnctrl ihup $DEVICE1 off #### Network initialization /sbin/ifconfig $DEVICE0 $LOCAL_IP pointopoint $REMOTE_IP metric 1 /sbin/route add default $DEVICE0 /sbin/ifconfig $DEVICE1 $LOCAL_IP pointopoint $REMOTE_IP metric 1 /sbin/route add default $DEVICE1 /sbin/ipppd /dev/ippp0 $LOCAL_IP:$REMOTE_IP defaultroute & /sbin/ipppd /dev/ippp1 $LOCAL_IP:$REMOTE_IP defaultroute & _______cut__________cut________________cut________________cut_________ From: Manfred.Dill 23.DEC.1996 Subject: Re: Problems with callback solved Hi Naresh, in my opinion thats a bit overkill. One ipppd is able to handle more than one logical channel, therefore it is possible to define many devices on *one* ipppd and one needs only one interface. Naresh Sharma wrote: > ........ .... > #### Phone Initialization > #### Generic > > #### Callout device > isdnctrl addphone $DEVICE0 in $REMOTE_CITY_CODE$REMOTE_NUMBER > isdnctrl addphone $DEVICE0 out $OUTSIDE_DIALING_CODE$REMOTE_CITY_CODE$REMOTE_NUMBER > isdnctrl eaz $DEVICE0 $LOCAL_CITY_CODE$LOCAL_NUMBER > isdnctrl encap $DEVICE0 syncppp > isdnctrl l2_prot $DEVICE0 hdlc > isdnctrl l3_prot $DEVICE0 trans > isdnctrl huptimeout $DEVICE0 60 > isdnctrl chargehup $DEVICE0 on > isdnctrl secure $DEVICE0 on > isdnctrl cbhup $DEVICE0 off > isdnctrl callback $DEVICE0 out > isdnctrl ihup $DEVICE0 off > #### Network initialization > > /sbin/ifconfig $DEVICE0 $LOCAL_IP pointopoint $REMOTE_IP metric 1 > /sbin/route add default $DEVICE0 > > /sbin/ipppd /dev/ippp0 $LOCAL_IP:$REMOTE_IP defaultroute & At my side the stuff looks like: /sbin/ipppd $LOCAL_IP:$REMOTE_IP \ -if -ipdefault -vjccomp -ac -pc -bsdcomp mru 2048 mtu 2048 -detach \ /dev/ippp0 ... if necessary .../dev/ipppn callback would work on *one* device (without the bug in ipppd) because the callback call could be accepted on the same device used for requesting the callback. AFAIK more than one ipppd is necessary if different protocols are used (e.g hdlc and rawip or cisco) Manfred Dill, BMW AG Tel.: + 89 382 49552 D-80788 Muenchen Fax: + 89 382 49048 Germany email: manfred.dill@bmw.de ---------------------------------------------------