Koozali.org: home of the SME Server

Dialing up to ISP with ISDN

James

Dialing up to ISP with ISDN
« on: July 04, 2001, 10:39:09 PM »
Hi guys

I have an external Dynalink ISDN modem. It works fine under Windows. I cannot get it to dial under e-smith. I have modified the chat-ppp0 script to as follows.(I know I shouldnt, its just for testing purposes)

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999, 2000 e-smith, inc.
#------------------------------------------------------------

'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
REPORT CONNECT
''
'ATE1V1+IMODE=0'
'OK'
'AT&F \V8'                          
'OK'
'ATS7=60\N16%C0'
'OK'
'AT\N10%P1%S0'
'OK'
'ATD3275000'
'CONNECT'

#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------

The init strings are from the Windows log file for my modem. I have checked all the string and they all report OK under Hyperteminal and the final one reports CONNECT 64000. The /var/log/messages is as follows.

Jul  4 20:32:50 mail diald[3112]: Calling site 0.0.0.0
Jul  4 20:32:51 mail chat[5231]: abort on (BUSY)
Jul  4 20:32:51 mail chat[5231]: abort on (ERROR)
Jul  4 20:32:51 mail chat[5231]: abort on (NO CARRIER)
Jul  4 20:32:51 mail chat[5231]: abort on (NO DIALTONE)
Jul  4 20:32:51 mail chat[5231]: abort on (Invalid Login)
Jul  4 20:32:51 mail chat[5231]: abort on (Login incorrect)
Jul  4 20:32:51 mail chat[5231]: report (CONNECT)
Jul  4 20:32:51 mail chat[5231]: send (ATE1V1+IMODE=0^M)
Jul  4 20:32:52 mail chat[5231]: expect (OK)
Jul  4 20:32:52 mail chat[5231]: ATE1V1+IMODE=0^M^M
Jul  4 20:32:52 mail chat[5231]: OK
Jul  4 20:32:52 mail chat[5231]:  -- got it
Jul  4 20:32:52 mail chat[5231]: send (AT&F \V8^M)
Jul  4 20:32:52 mail chat[5231]: expect (OK)
Jul  4 20:32:52 mail chat[5231]: ^M
Jul  4 20:32:52 mail chat[5231]: AT&F V8^M^M
Jul  4 20:32:52 mail chat[5231]: ERROR
Jul  4 20:32:52 mail chat[5231]:  -- failed
Jul  4 20:32:52 mail chat[5231]: Failed (ERROR)
Jul  4 20:32:52 mail diald[3112]: Connect script failed.


I have modifed the chat-ppp0 file to read as follows after I figured that chat was leaving out the '' (backslash). I received the following in /var/log/messages

Jul  4 20:34:18 mail diald[3112]: Calling site 0.0.0.0
Jul  4 20:34:19 mail chat[5239]: abort on (BUSY)
Jul  4 20:34:19 mail chat[5239]: abort on (ERROR)
Jul  4 20:34:19 mail chat[5239]: abort on (NO CARRIER)
Jul  4 20:34:19 mail chat[5239]: abort on (NO DIALTONE)
Jul  4 20:34:19 mail chat[5239]: abort on (Invalid Login)
Jul  4 20:34:19 mail chat[5239]: abort on (Login incorrect)
Jul  4 20:34:19 mail chat[5239]: report (CONNECT)
Jul  4 20:34:19 mail chat[5239]: send (ATE1V1+IMODE=0^M)
Jul  4 20:34:19 mail chat[5239]: expect (OK)
Jul  4 20:34:19 mail chat[5239]: ATE1V1+IMODE=0^M^M
Jul  4 20:34:19 mail chat[5239]: OK
Jul  4 20:34:19 mail chat[5239]:  -- got it
Jul  4 20:34:19 mail chat[5239]: send (AT&F \V8^M)
Jul  4 20:34:19 mail chat[5239]: expect (OK)
Jul  4 20:34:19 mail chat[5239]: ^M
Jul  4 20:34:19 mail chat[5239]: AT&F \V8^M^M
Jul  4 20:34:19 mail chat[5239]: ERROR
Jul  4 20:34:19 mail chat[5239]:  -- failed
Jul  4 20:34:19 mail chat[5239]: Failed (ERROR)
Jul  4 20:34:19 mail diald[3112]: Connect script failed.

I'm guessing I am not sending the init string correctly. but have tried every combination of settings to no avail. I have also tried storing the strings on the modem, but this did not work. It seems that the modem needs these strings to dial out. I tried a simple ATZ followed by a atd3275000 (the ISP's number), but I get NO CARRIER.

Please help. I really want e-smith to work, as it is exactly what we need here.

James

pieter18

Re: Dialing up to ISP with ISDN
« Reply #1 on: July 06, 2001, 02:50:15 AM »
e-smith, unfortunally, doesn't really support ISDN. I believ it can only emulate a ISDN-device to work as an modem (or something). It has something to do with protocols.

If you live in Europe, you use the ippp-protocol, instead of the X75 that's used in the USA (correct me if I'm wrong).

If you want to use ISDN to connect you LAN to the Internet, you need a router, like FREESCO (www.freesco.org) or FIL4L (www.fli4l.de). I use FIL4L and let my e-smith 4.1.1 server connect through that to collect my mail. It works well...

Hope I got it al right, I saw it a long time ago...

P.

Hsing-Foo

Re: Dialing up to ISP with ISDN
« Reply #2 on: July 06, 2001, 03:37:26 AM »
Hi James (Hoi Pieter :) ),

The situation you are referring to Pieter is a situation where you use a passive ISDN INTERNAL ISDN card. The case James is talking about is a EXTERNAL ISDN Terminal adapter.

James: Please look through the forum(s) for there are many postings concerning external ISDN terminal adapters.(and your modem manual for the init strings :) )

Pieter: Your suggestions are interesting for me because you line in NL as I do. Can you send me a 'how-to' on usng FLI4L for I use that too. (Bij voorbaat dank!)

Not that this posting adds some suggestions, but maybe it points out the direction to have a solution (difference between TA and internal ISDN card)

Regards to all,

RequestedDeletion

James

Re: Dialing up to ISP with ISDN
« Reply #3 on: July 06, 2001, 04:12:11 AM »
Hi guys

Yes I am using an external modem. The strings that I put in my chat-ppp0 are the strings that my modem requires to dial ie I need to send the modem
ATE1V1+IMODE=0 followed by
AT&F \V8
ATS7=60\N16%C0
AT\N10%P1%S0
then ATD3275000 to dial my ISP

These strings work fine in Hyperterminal and the modem dials fine in Windows, but I think the chat script is not working because of the backslashes '' in the init strings. Can anyone explain this to me please?

Thanks
James

Filippo Carletti

Re: Dialing up to ISP with ISDN
« Reply #4 on: July 06, 2001, 03:53:32 PM »
You can use isdn with e-smith, easily with an external TA, with some simple work with n internel passive card supported by isdn4linux.
There is an howto on the contrib section of e-smith.org and search this forum.

Hsing-Foo

Re: Dialing up to ISP with ISDN
« Reply #5 on: July 06, 2001, 09:44:20 PM »
Hi James,

To work out a correct set of init settings you may want to use minicom on your e-smith server. This is like a hyperterminal on your windoze machine.

To start it just type 'minicom' on a console, and read further instructions.

Maybe this way you can see what happens with you init commands.

Hope it helps!

Regards,

RequestedDeletion

Charlie Brady

Re: Dialing up to ISP with ISDN
« Reply #6 on: July 07, 2001, 04:49:15 PM »
James wrote:

...
> Jul  4 20:34:19 mail chat[5239]: send (ATE1V1+IMODE=0^M)
> Jul  4 20:34:19 mail chat[5239]: expect (OK)
> Jul  4 20:34:19 mail chat[5239]: ATE1V1+IMODE=0^M^M
> Jul  4 20:34:19 mail chat[5239]: OK
> Jul  4 20:34:19 mail chat[5239]:  -- got it
> Jul  4 20:34:19 mail chat[5239]: send (AT&F \V8^M)
> Jul  4 20:34:19 mail chat[5239]: expect (OK)
> Jul  4 20:34:19 mail chat[5239]: ^M
> Jul  4 20:34:19 mail chat[5239]: AT&F \V8^M^M
> Jul  4 20:34:19 mail chat[5239]: ERROR
> Jul  4 20:34:19 mail chat[5239]:  -- failed
> Jul  4 20:34:19 mail chat[5239]: Failed (ERROR)
> Jul  4 20:34:19 mail diald[3112]: Connect script failed.
>
> I'm guessing I am not sending the init string correctly. but
> have tried every combination of settings to no avail. I have
> also tried storing the strings on the modem, but this did not
> work. It seems that the modem needs these strings to dial
> out. I tried a simple ATZ followed by a atd3275000 (the ISP's
> number), but I get NO CARRIER.

James, you seemed to have followed a sound process in trying to get this going. Your guess seems valid to me as well - the modem's command interpretor is not happy with the string starting AT&F. My first guess is that a stray space is the problem.

There are a few things about the init sequence that don't make sense to me. The first is that there are some commands before AT&F. I can't see the point of those, since AT&F should return the modem to factory settings.  I'd suggest that you change the chat to:

'AT&F'
OK
'ATE1V1+IMODE=0'
'OK'
'AT\V8'
'OK'
'ATS7=60\N16%C0'
'OK'
'AT\N10%P1%S0'
'OK'
'ATD3275000'
'CONNECT'

If that works, I'd suggest that you try again to store the state in the modem, and just use ATZ.

Regards

Charlie

Hennie

Re: Dialing up to ISP with ISDN
« Reply #7 on: July 11, 2001, 04:00:23 PM »
Hi James as far as my knowledge goes there is currently only 1 Dynalink ext
ISDN TA. And I am using it. The only thing you need to do is get the right init string.

Mine is ATB4D%Dialupnumber%
the B4 stands for my connection which is PPP 64K
so if you know what type of ISDN service your country
is using you can download the manual from Dynalink's
web site or I will e-mail it to you

By the way mine works beautifully