tl;dr: I implemented the LAN-TAPI protocol for Auerswald COMmander. Link below.
I wanted to hack something with my analog modems, wanted to be able to serve different mailboxes depending on caller id and called id. Like a redneck RAS server, you get the idea. Unfortunetly I couldn’t find a modem supporting CLIP. Sooo…
My plan went on to finding out how to decode the messages, found the Holtek Calling Line Identification Receiver (HT9032D). Wasn’t really in the mood for a hardware project.
So I went on to the D-Kanal-Diagnose on the Auerswald Commander Basic.2 that I have. Bummer, D channel diagnosis is for ISDN, but not the analog ports. But turns out it’s a nice way to get syslog without root access.
After a while I went the retro way and installed the official LAN-TAPI from Auerswald on my Windows PC and it worked. But I didn’t want to stick around with Windows and went on to finding out how the LAN-TAPI protocol on the Auerswald works.
I took a deep dive into the debugging view, lucky enough the LAN-TAPI driver from Auerswald is a big mouth. Long story short, I present to you a Python API for the LAN-TAPI of Auerswald devices. I implemented and tested against a Commander Basic.2, but might also work with “newer” Auerswald.
A Conexant CX930xx-based USB 56K modem should be able to receive it.
Just tested on Nokia EKSOS analog line with CLIP FSK signalling after first ring:
ATZ
OK
AT+GCI=42 // Country code Germany
OK
AT!4886=00 // Use Bell FSK CLIP (ETSI FSK didn't work)
OK
AT+VCID=1 // Show CallerID
OK
RING
DATE = 0505
TIME = 2314
NMBR = 2000
RING
CallerID can be reenabled in any CX93001-based modem by one of the following:
AT!4886=00 for Bell FSK countries
AT!4886=01 for V23 FSK (Japan)
AT!4886=02 for ETSI FSK (France, Italy, Spain)
AT!4886=03 for SIN227 (UK)
AT!4886=05 for ETSI DTMF
Sometimes additionally AT!4892=FF may be required.`
Hi @fooji, cool reverse engineering work! Thanks a lot for sharing. Do you have any pointers about the D-channel monitor port? I would like to access it from a Mac M4.
I am no Python coder as well and currently try to track down and fix an issue with your LAN-TAPI code receiving an EOF a few seconds after opening all 48 lines. Already thought about moving it to GO.
Otherwise I can confirm the Connexant (white or black, 2 LEDs) modems work for CLIP. Also the USB US Robotics (white) works similar.
On a daily basis I am using various ThinkPad (T400/T500) modems, which work as well.
ThinkPads need a registry patch for the softmodem driver.
Everything else should work with ATZ / AT+GCI=42 / AT+VCID=1.
(I’ve also 2 “KALEA-INFORMATIQUE Faxadapter Modem 56K”, Connexant, from evil A.)
Best,
CK
PS: did you configure the analog port on the Commander Basic.2 accordingly?
PPS: keep in mind “AT+VCID=1” might not be stored with AT&W, you have to repeat it on re-init. (sometimes even after some rings, observed with the TP softmodems)
PPPS: just verified on TP softmodem, something like “;+VCID=1” will not work (multiple commands on one line as in init string), it requires a single line “AT+VCID=1”.
I added syslog.py into the repository. It’s not a complete D-channel decoder but rather an access to a syslog stream of the Auerswald COMmander also containing D-channel logging. D-channel logs contain the string DKANPROT.
There is a Java application downloadable at Auerswald, which should also run on a Mac M4. In worst case just decompile the Java class files.
Regarding your EOF after few seconds: you can easily overrun the Auerswald with PDUs. Try doing things sequentially. You could also send me the debug.log, I would take a look into it.
Feel free to port it to Go. If you need help or have questions, just append it to this thread.
Thanks fooji, that helps a lot. Seems the IP blacklisting needs to be switched off to receive data. (whitelisting my local machine helped only once) But didn’t expect it being that simple, no authentication at all.
And silly me , saw platform installers, .cab files and a dozen .so / .dll and didn’t look closer in the jars. Of course, dropping them in JADX answers a lot of questions.
[Edit: solved]
The EOF happens with main.py, it opens all lines, then waits. If I place a call it gets listed, but either after the call or a few seconds after the last opened line the EOF kicks in:
I had a Windows machine with the LAN-TAPI driver installed and configured for previous tests. Only one machine is allowed to connect, every new connection kicks the previous one and the disconnect was a result of the other machine reconnecting. OK, we need a “LAN-TAPI server” as well.
BTW: regarding “TIE” [Edit: forget what I said, the Auerswald LAN-TAPI protocol is of course proprietary and different.]
I had this in mind after I answered. I will make a comment in the README. Also searched for a bug in my code for a while until I found the original Auerswald TAPI driver interfering.
The protocol might be inspired by ASN.1 or TLV. The hardest part was reverse engineering the length field.
I you still wanna do a Go port, let me know. I would like to add a hyperlink from my project.