Koozali.org: home of the SME Server

isdn

Filippo Carletti

Re: isdn (and subsequent probs)
« Reply #30 on: March 18, 2002, 05:27:29 PM »
You can enable logging of communications with the TA under windows.

John Crisp

Re: isdn (and subsequent probs)
« Reply #31 on: March 18, 2002, 09:00:10 PM »
I'll hook it on to my Windoze laptop tonight and have a look at the logs.

B. Rgds

John

John Crisp

Re: isdn (and subsequent probs)
« Reply #32 on: March 19, 2002, 03:36:24 PM »

Tried it thru Windoze, had a look at the AT commands it uses and no clues there AT all.

You can choose a couple of different types of settings when you install -

'PPP'
'X75BF2'

and a few others. All they do is run a slight variation on the AT string - with the PPP version, the AT string has a $IBP=HDLC - just use HDLC

the X75FB2 is AT$IBP=X75FB2 - X75 with fall back via V120 and HDLCP.

Either way, I end up with it negotiating a HDLCP connectinn and then dying on the spot.

As I said, the X75 works fine, but I only have one provider that uses it - the other all use HDLCP, including my new 24hour flat rate ISP.

The other thing of note is that happens both with E-smith and Freesco......I will try and lob Smoothwall in tonight and see if it does the same.

Gotta get this to go and soon.................I may also try another TA tonight if I get a chance.

Can you advise how to set E-smith to turn on pppd in debug mode ? I can then report with more details

One thing of note is that TA does come with some Linux drivers, although I believe from what I can see that they are for the internal TAs - looking in the files it seems to be geared towards ISDN4linux.


B. Rgds
John

Filippo Carletti

Re: isdn (and subsequent probs)
« Reply #33 on: March 19, 2002, 05:42:21 PM »
I'd put "$IBP=HDLC" in the modem init string, but I think you have to check that the $ isn't interpreted by a variable during template expansion.
Check /etc/sysconfig/network-scripts/chat-ppp0, near the bottom.

To turn debug on, add a line with the word "debug" in /etc/ppp/options.

John Crisp

Re: isdn (and subsequent probs)
« Reply #34 on: March 20, 2002, 03:30:05 AM »
OK, got it thanks.

This first one was nearly succesful - I think that there may be password problem with the ISP - I shall check shortly. Seems that it wants longer to negotiate.

The second one is typical. Third one with different provider that I know works with X75. However, I have forced it to go HDLC-PPPP only to see what happens. Also I notice that as per my earlier post and for anyone who is interested, with this Elsa Internet TA you have to set it to HDLC-PPP with AT$IBP=HDLCP (ATS180=6) and not the default AT$IBP=XF75FB2 etc.

I have had quite a read around now. Still don't understand completely. Has it got anything to with syncPPP ? I think that at some stage there was an async line or similar in options which is not there now - I may have deleted it at some stage. should it be there ?

Thanks for your time & patience !

B. Rgds

John

Mar 20 00:11:45 esmith diald[5940]: Calling site 0.0.0.0
Mar 20 00:11:46 esmith chat[6151]: abort on (BUSY)
Mar 20 00:11:46 esmith chat[6151]: abort on (ERROR)
Mar 20 00:11:46 esmith chat[6151]: abort on (NO CARRIER)
Mar 20 00:11:46 esmith chat[6151]: abort on (NO DIALTONE)
Mar 20 00:11:46 esmith chat[6151]: abort on (Invalid Login)
Mar 20 00:11:46 esmith chat[6151]: abort on (Login incorrect)
Mar 20 00:11:46 esmith chat[6151]: report (CONNECT)
Mar 20 00:11:46 esmith chat[6151]: send (ATZ^M)
Mar 20 00:11:46 esmith chat[6151]: expect (OK)
Mar 20 00:11:46 esmith chat[6151]: ATZ^M^M
Mar 20 00:11:46 esmith chat[6151]: OK
Mar 20 00:11:46 esmith chat[6151]:  -- got it
Mar 20 00:11:46 esmith chat[6151]: send (AT&fs180=6^M)
Mar 20 00:11:46 esmith chat[6151]: expect (OK)
Mar 20 00:11:46 esmith chat[6151]: ^M
Mar 20 00:11:46 esmith chat[6151]: AT&fs180=6^M^M
Mar 20 00:11:46 esmith chat[6151]: OK
Mar 20 00:11:46 esmith chat[6151]:  -- got it
Mar 20 00:11:46 esmith chat[6151]: send (ATDT08089933074^M)
Mar 20 00:11:46 esmith chat[6151]: expect (CONNECT)
Mar 20 00:11:46 esmith chat[6151]: ^M
Mar 20 00:11:47 esmith chat[6151]: ATDT08089933074^M^M
Mar 20 00:11:47 esmith chat[6151]: CONNECT
Mar 20 00:11:47 esmith chat[6151]:  -- got it
Mar 20 00:11:47 esmith diald[5940]: connector: chat:  Mar 20 00:11:47 CONNECT 64000/ISDN/HDLCP
Mar 20 00:11:47 esmith diald[5940]: Connected to site 0.0.0.0
Mar 20 00:11:47 esmith diald[5940]: Running pppd (pid = 6152).
Mar 20 00:11:47 esmith diald[6152]: Running pppd: /usr/sbin/pppd -defaultroute -detach modem crtscts mtu 1500 mru 1500 name im
pamark noauth noipdefault ipparam diald
Mar 20 00:11:47 esmith pppd[6152]: pppd 2.4.0 started by root, uid 0
Mar 20 00:11:47 esmith pppd[6152]: Using interface ppp0
Mar 20 00:11:47 esmith pppd[6152]: Connect: ppp0 <--> /dev/ttyS0
Mar 20 00:11:47 esmith pppd[6152]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:11:47 esmith pppd[6152]: rcvd [LCP ConfReq id=0x0]
Mar 20 00:11:47 esmith pppd[6152]: sent [LCP ConfAck id=0x0]
Mar 20 00:11:47 esmith pppd[6152]: rcvd [LCP TermAck id=0x0]
Mar 20 00:11:49 esmith pppd[6152]: rcvd [LCP ConfReq id=0x24 2.54.4d.44.49.50]>]
Mar 20 00:11:49 esmith pppd[6152]: sent [LCP ConfRej id=0x24 ]
Mar 20 00:11:49 esmith pppd[6152]: rcvd [LCP ConfReq id=0x25 9.50]>]
Mar 20 00:11:49 esmith pppd[6152]: sent [LCP ConfAck id=0x25 9.50]>]
Mar 20 00:11:50 esmith pppd[6152]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:11:50 esmith pppd[6152]: rcvd [LCP ConfAck id=0x1 ]
Mar 20 00:11:50 esmith pppd[6152]: sent [LCP EchoReq id=0x0 magic=0x97070357]
Mar 20 00:11:50 esmith pppd[6152]: rcvd [CHAP Challenge id=0x4a <574cd96a4fa0625ee0c032b29a69cad0>, name = "BTMDIP"]
Mar 20 00:11:50 esmith pppd[6152]: sent [CHAP Response id=0x4a <0e7e81a64bac0025bb1790eef74412ca>, name = "myhostname"]
Mar 20 00:11:50 esmith pppd[6152]: rcvd [LCP EchoRep id=0x0 magic=0x1d2bde5b]
Mar 20 00:11:50 esmith pppd[6152]: rcvd [CHAP Failure id=0x4a "Authentication failure"]
Mar 20 00:11:50 esmith pppd[6152]: Remote message: Authentication failure
Mar 20 00:11:50 esmith pppd[6152]: CHAP authentication failed
Mar 20 00:11:50 esmith pppd[6152]: sent [LCP TermReq id=0x2 "Failed to authenticate ourselves to peer"]
Mar 20 00:11:50 esmith pppd[6152]: rcvd [LCP TermReq id=0x26]
Mar 20 00:11:50 esmith pppd[6152]: sent [LCP TermAck id=0x26]
Mar 20 00:11:51 esmith pppd[6152]: Hangup (SIGHUP)
Mar 20 00:11:51 esmith pppd[6152]: Modem hangup
Mar 20 00:11:51 esmith pppd[6152]: Connection terminated.
Mar 20 00:11:51 esmith pppd[6152]: Exit.
Mar 20 00:11:51 esmith diald[5940]: stop ppp0: RTNETLINK answers: No such process
Mar 20 00:11:51 esmith diald[5940]: stop ppp0: SIOCSIFFLAGS: No such device or address
Mar 20 00:11:51 esmith diald[5940]: Disconnected. Call duration 4 seconds.
Mar 20 00:11:51 esmith diald[5940]: IP transmitted 504 bytes and received 0 bytes.
Mar 20 00:11:52 esmith diald[5940]: Delaying 10 seconds before clear to dial.



Second one :

Mar 20 00:10:48 esmith diald[5940]: Calling site 0.0.0.0
Mar 20 00:10:50 esmith chat[6136]: abort on (BUSY)
Mar 20 00:10:50 esmith chat[6136]: abort on (ERROR)
Mar 20 00:10:50 esmith chat[6136]: abort on (NO CARRIER)
Mar 20 00:10:50 esmith chat[6136]: abort on (NO DIALTONE)
Mar 20 00:10:50 esmith chat[6136]: abort on (Invalid Login)
Mar 20 00:10:50 esmith chat[6136]: abort on (Login incorrect)
Mar 20 00:10:50 esmith chat[6136]: report (CONNECT)
Mar 20 00:10:50 esmith chat[6136]: send (ATZ^M)
Mar 20 00:10:50 esmith chat[6136]: expect (OK)
Mar 20 00:10:50 esmith chat[6136]: OK
Mar 20 00:10:50 esmith chat[6136]:  -- got it
Mar 20 00:10:50 esmith chat[6136]: send (AT&fs180=6^M)
Mar 20 00:10:50 esmith chat[6136]: expect (OK)
Mar 20 00:10:50 esmith chat[6136]: ^M
Mar 20 00:10:50 esmith chat[6136]: ATZ^M^M
Mar 20 00:10:50 esmith chat[6136]: OK
Mar 20 00:10:50 esmith chat[6136]:  -- got it
Mar 20 00:10:50 esmith chat[6136]: send (ATDT08089933074^M)
Mar 20 00:10:50 esmith chat[6136]: expect (CONNECT)
Mar 20 00:10:50 esmith chat[6136]: ^M
Mar 20 00:11:01 esmith chat[6136]: ATDT08089933074^M^M
Mar 20 00:11:01 esmith chat[6136]: CONNECT
Mar 20 00:11:01 esmith chat[6136]:  -- got it
Mar 20 00:11:01 esmith diald[5940]: connector: chat:  Mar 20 00:11:01 CONNECT 64000/ISDN/HDLCP
Mar 20 00:11:01 esmith diald[5940]: Connected to site 0.0.0.0
Mar 20 00:11:01 esmith diald[5940]: Running pppd (pid = 6137).
Mar 20 00:11:01 esmith diald[6137]: Running pppd: /usr/sbin/pppd -defaultroute -detach modem crtscts mtu 1500 mru 1500 name im
pamark noauth noipdefault ipparam diald
Mar 20 00:11:01 esmith pppd[6137]: pppd 2.4.0 started by root, uid 0
Mar 20 00:11:01 esmith pppd[6137]: Using interface ppp0
Mar 20 00:11:01 esmith pppd[6137]: Connect: ppp0 <--> /dev/ttyS0
Mar 20 00:11:01 esmith pppd[6137]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:11:01 esmith pppd[6137]: rcvd [LCP ConfAck id=0x1 ]
Mar 20 00:11:04 esmith pppd[6137]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:11:22 esmith last message repeated 6 times
Mar 20 00:11:22 esmith pppd[6137]: Hangup (SIGHUP)
Mar 20 00:11:22 esmith pppd[6137]: Modem hangup
Mar 20 00:11:22 esmith pppd[6137]: Connection terminated.
Mar 20 00:11:22 esmith pppd[6137]: Exit.
Mar 20 00:11:22 esmith diald[5940]: stop ppp0: RTNETLINK answers: No such process
Mar 20 00:11:22 esmith last message repeated 2 times
Mar 20 00:11:22 esmith diald[5940]: stop ppp0: SIOCSIFFLAGS: No such device or address
Mar 20 00:11:22 esmith diald[5940]: Disconnected. Call duration 21 seconds.
Mar 20 00:11:22 esmith diald[5940]: IP transmitted 2772 bytes and received 0 bytes.
Mar 20 00:11:23 esmith diald[5940]: Delaying 10 seconds before clear to dial.

Third one


Mar 20 00:24:31 esmith diald[6287]: Calling site 0.0.0.0
Mar 20 00:24:32 esmith chat[6430]: abort on (BUSY)
Mar 20 00:24:32 esmith chat[6430]: abort on (ERROR)
Mar 20 00:24:32 esmith chat[6430]: abort on (NO CARRIER)
Mar 20 00:24:32 esmith chat[6430]: abort on (NO DIALTONE)
Mar 20 00:24:32 esmith chat[6430]: abort on (Invalid Login)
Mar 20 00:24:32 esmith chat[6430]: abort on (Login incorrect)
Mar 20 00:24:32 esmith chat[6430]: report (CONNECT)
Mar 20 00:24:32 esmith chat[6430]: send (ATZ^M)
Mar 20 00:24:32 esmith chat[6430]: expect (OK)
Mar 20 00:24:32 esmith chat[6430]: ATZ^M^M
Mar 20 00:24:32 esmith chat[6430]: OK
Mar 20 00:24:32 esmith chat[6430]:  -- got it
Mar 20 00:24:32 esmith chat[6430]: send (AT&fs180=6^M)
Mar 20 00:24:32 esmith chat[6430]: expect (OK)
Mar 20 00:24:32 esmith chat[6430]: ^M
Mar 20 00:24:32 esmith chat[6430]: AT&fs180=6^M^M
Mar 20 00:24:32 esmith chat[6430]: OK
Mar 20 00:24:32 esmith chat[6430]:  -- got it
Mar 20 00:24:32 esmith chat[6430]: send (ATDT08451121200^M)
Mar 20 00:24:32 esmith chat[6430]: expect (CONNECT)
Mar 20 00:24:32 esmith chat[6430]: ^M
Mar 20 00:24:35 esmith chat[6430]: ATDT08451121200^M^M
Mar 20 00:24:35 esmith chat[6430]: CONNECT
Mar 20 00:24:35 esmith chat[6430]:  -- got it
Mar 20 00:24:35 esmith diald[6287]: connector: chat:  Mar 20 00:24:35 CONNECT 64000/ISDN/HDLCP
Mar 20 00:24:35 esmith diald[6287]: Connected to site 0.0.0.0
Mar 20 00:24:35 esmith diald[6287]: Running pppd (pid = 6431).
Mar 20 00:24:35 esmith diald[6431]: Running pppd: /usr/sbin/pppd -defaultroute -detach modem crtscts mtu 1500 mru 1500 name sr
0187440 noauth noipdefault ipparam diald
Mar 20 00:24:35 esmith pppd[6431]: pppd 2.4.0 started by root, uid 0
Mar 20 00:24:35 esmith pppd[6431]: Using interface ppp0
Mar 20 00:24:35 esmith pppd[6431]: Connect: ppp0 <--> /dev/ttyS0
Mar 20 00:24:35 esmith pppd[6431]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:24:35 esmith pppd[6431]: rcvd [LCP ConfReq id=0x1 00> ]
Mar 20 00:24:35 esmith pppd[6431]: sent [LCP ConfRej id=0x1 ]
Mar 20 00:24:35 esmith pppd[6431]: rcvd [LCP ConfAck id=0x1 ]
Mar 20 00:24:38 esmith pppd[6431]: sent [LCP ConfReq id=0x1 ]
Mar 20 00:25:05 esmith last message repeated 9 times
Mar 20 00:25:06 esmith pppd[6431]: Hangup (SIGHUP)
Mar 20 00:25:06 esmith pppd[6431]: Modem hangup
Mar 20 00:25:06 esmith pppd[6431]: Connection terminated.
Mar 20 00:25:06 esmith pppd[6431]: Exit.
Mar 20 00:25:06 esmith diald[6287]: stop ppp0: RTNETLINK answers: No such process
Mar 20 00:25:06 esmith kernel: ppp: ppp0 not active
Mar 20 00:25:06 esmith diald[6287]: stop ppp0: SIOCSIFFLAGS: No such device or address
Mar 20 00:25:06 esmith diald[6287]: Disconnected. Call duration 31 seconds.
Mar 20 00:25:06 esmith diald[6287]: IP transmitted 2940 bytes and received 0 bytes.
Mar 20 00:25:07 esmith diald[6287]: Delaying 10 seconds before clear to dial.

John Crisp

Re: isdn (and subsequent probs)
« Reply #35 on: March 21, 2002, 05:34:20 PM »
It would appear that this one has everyone stumped then ?

I have another TA to try tonight. I don't suppose I'll be able to post before this site is sutwon for the move. I'll report back asap though.

B. Rgds
John

Filippo Carletti

Re: isdn (and subsequent probs)
« Reply #36 on: March 25, 2002, 02:12:00 PM »
I looked at your logs again and again.
You never receive anything from the remote, probably HDLC related.
I don't know enough to say why.
Confirming behaviour with another TA would be useful.

John Crisp

Re: isdn (and subsequent probs)
« Reply #37 on: March 27, 2002, 04:15:06 AM »
Hi Fillipo.

OK - got another Dynalink bog standard TA. That works a treat. And it looks like it's something to do with Async to Sync PPP.

On connection, the Dynalink reports something along the lines of '64K HDLC Aync - Sync PPP' . It's one of the connection 'types' - I'll let you know the others.

It's something that I did not see mentioned anywhere in the Elsa Dox.

So what is Async to Sync PPP then ? Having had a bit of a read I found this :

from http://theory.cs.uni-bonn.de/ppp/part4.html

4.4 What is Asychronous HDLC?
It's HDLC with a character-by-character encapsulation, rather than a bit-by-bit encapsulation. The details are discussed in the RFC1331, appendix A. Basically, the flag character, the escape character and (possibly) control characters are escaped by prepending the escape character and XORing them with 0x20, while sync hdlc transparently inserts '0' bits after sequences of 5 '1' bits to be sure to never transmit the flag character in the frame.
A short description of the part of ISO 3309:1991 that describes async (ISO calls it start/stop mode) HDLC is available with anonymous ftp from ftp.uni-erlangen.de in pub/doc/ISO/english/async-HDLC.

http://www.isdn4linux.de/faq/i4lfaq-13.html  - async ppp
http://www.isdn4linux.de/faq/i4lfaq-12.html  - sync ppp

--------------


As far as I can see, the Dynalink converts Async packets to Sync for tranmission and vice versa. However, the Elsa does not do the conversion, so the machine ends up with a datastream it cannot handle.

From what I can see in the ISDN4linux FAQ, ISDN4 provides the ability to translate via an artificial device /dev/ttyI* it creates and manages. Hence the Elsa comes with ISDN4linux and various drivers etc.

However, the Dynalink - a cheaper model ! - can handle this in hardware on the TA.

In short, I think that I am right in saying that the Elsa can only run on a linux system with ISDN4Linux installed. How does ISDN4 linux run with external TA's?

I'll have a look.

It look like the Elsa Internet TA is a form of 'WinTA' - it needs software to run some functions rather than in the hardware.

Any thoughts ?

B. Rgds

John