Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2001 11:07:29 +0100
From:      Roland Jesse <jesse@mail.CS.Uni-Magdeburg.De>
To:        freebsd-isdn@freebsd.org
Subject:   Using multiple provider w/ i4b
Message-ID:  <20011209110729.A5118@herzog.cs.uni-magdeburg.de>

next in thread | raw e-mail | index | archive | help

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

My i4b (1.x on a more or less recent FreeBSD 4.4-stable) works fine
with my main provider (which is my University). However, for some
specific cases I want to use another provider. Lets call the Uni
provider P1 and the other one provider P2.

For some reason, connections to provider P2 are immediately
closed. The setup looks as follows:

/etc/isdn/isdnd.rc is about the same for both providers. They differ
of course in remote-phone-dialout.

I have a config script /usr/local/etc/start_if.isp0 which looks as
follows:

----------8-<-----------------------------------------------
#!/bin/sh
PATH=/bin:/sbin:/usr/sbin
ifconfig isp0 delete -link1 down
ispppcontrol isp0 authproto=chap
if [ x"$1" = x-n ]; then
    ispppcontrol isp0 myauthname=P1.name
    ispppcontrol isp0 myauthsecret=P1.password
else
    ispppcontrol isp0 myauthname=P2.name
    ispppcontrol isp0 myauthsecret=P2.password
fi
ispppcontrol isp0 hisauthproto=none callin norechallenge
ifconfig isp0 0.0.0.0 0.0.0.1 netmask 0xffffffff link1
ifconfig isp0 down
ifconfig isp0 up
ifconfig isp0 down
----------8->-----------------------------------------------

When connecting, I do the following:

1) Copy the idnd.rc for the respective provider to /etc/isdn/isdnd.rc.
2) kill -HUP `cat /var/run/isdnd.pid`
3) /usr/local/etc/start_if.isp0 $1
   thereby: $1 = -n for P1
            $1 empty otherwise
4) Do the following three steps in given order:
   /sbin/ifconfig isp0 up
   /sbin/route add default -interface isp0
   /sbin/ping -c 2 141.44.1.1 # initiate dialout

That's it and it works fine for P1. For P2 I get in my
/var/log/isdnd.log:

----------8-<-----------------------------------------------
...
09.12.2001 10:42:04 CHD 00018 I4BPPP outgoing call active (ctl 0, ch 0,
isp0)
09.12.2001 10:42:04 DMN date/time from exchange = 0112091042
09.12.2001 10:42:04 DBG FSM event [msg-con-act-ind]: [dialing =>
connected]
09.12.2001 10:42:04 DBG F_DOK: dial out ok
09.12.2001 10:42:04 DBG select_this_dialno: index = 0, no = xxxxxxxxxx
09.12.2001 10:42:05 DBG isp0: switched to state 3
09.12.2001 10:42:05 CHD 00018 I4BPPP outgoing call disconnected (remote)
09.12.2001 10:42:05 CHD 00018 I4BPPP cause 16: Normal call clearing
(Q.850)
09.12.2001 10:42:05 CHD 00018 I4BPPP charging: 0 units, 1 seconds
09.12.2001 10:42:05 CHD 00018 I4BPPP accounting: in 54, out 48 (in 0, out
0)
09.12.2001 10:42:05 DBG set_channel_idle: controller [0] channel B1 set to
IDLE!
09.12.2001 10:42:05 DBG incr_free_channels: ctrl 0, now 2 chan free
09.12.2001 10:42:05 DBG FSM event [msg-disc-ind]: [connected => idle]
09.12.2001 10:42:05 DBG F_IDIS: disconnect indication
----------8->-----------------------------------------------

Any ideas why I get these CHD 00018 responses are very much
appreciated.

All the best,
  Roland

--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjwTN+AACgkQd7xQRm1JWk/5DQCgh7wmuOwqwxF0u6rqkZQRrirz
o8sAoI4xwNwOIWpUyNp1bZHopbaVWp02
=n+zH
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011209110729.A5118>