Nein weil WINE immer wieder abstürzt
Aber könnte es damit gehen?
Download t38modem from SourceForge.net
Könnte man das t38modem irgendwie unter Linux als normales virtuelles Modem einrichten?
wo ich dann per terminalprogramm at befehle senden kann und ein Terminalprogramm sendet mir dann OK usw aus?
Denn in der README vom t38modem steht folgendes leider nur für Windows
* README
*
* T38FAX Pseudo Modem
*
* Original author: Vyacheslav Frolov
*
*/
1. Introduction
---------------
What is t38modem?
From your fax or voice application view point it's a fax/voice modem pool.
From IP network view point it's a H.323/SIP endpoint with T.38 fax support.
From your view point it's a gateway between an application and IP network.
The homepage for t38modem project is
http://t38modem.sourceforge.net/.
2. Building
-----------
2.1. Building for Unix
----------------------
Building with Open H323 Library:
$ export PWLIBDIR=$path_to_libs/pwlib
$ export OPENH323DIR=$path_to_libs/openh323
$ make NO_PBOOLEAN=1 opt
Building with H323 Plus Library:
$ export PTLIBDIR=$path_to_libs/ptlib
$ export OPENH323DIR=$path_to_libs/h323plus
$ make opt
Building with Open Phone Abstraction Library (OPAL):
$ export PTLIBDIR=$path_to_libs/ptlib
$ export OPALDIR=$path_to_libs/opal
$ make USE_OPAL=1 opt
2.2. Building for Windows
-------------------------
Building with Open H323 Library:
Start Microsoft Visual C++ 2005 with h323lib\t38modem_2005.vcproj file.
Set Active Configuration to "t38modem - Win32 Release".
Add "PBoolean=BOOL" to
[Project]->[t38modem Properties]->[Configuration Properties]->
[C/C++]->[Preprocessor]->[Preprocessor Definitions].
Change "h323plus.lib" to "openh323.lib" in
[Project]->[t38modem Properties]->[Configuration Properties]->
[Linker]->[Input]->[Additional Dependensies].
Build t38modem.exe.
Building with H323 Plus Library:
Start Microsoft Visual C++ 2005 with h323lib\t38modem_2005.vcproj file.
Set Active Configuration to "t38modem - Win32 Release".
Build t38modem.exe.
Building with Open Phone Abstraction Library (OPAL):
Start Microsoft Visual C++ 2005 with opal\t38modem_2005.vcproj file.
Set Active Configuration to "t38modem - Win32 Release".
Build t38modem.exe.
3. Examples
-----------
To get info about t38modem command line syntax enter:
$ t38modem --help
3.1. Starting
-------------
Starting with Open H323 Library or H323 Plus Library:
$ t38modem -n -o trace.log -p ttyx0,ttyx1 --old-asn \
--route
0@127.0.0.1 --route
all@172.16.33.21
This will create two modems (/dev/ttyx0 and /dev/ttyx1) and H.323 endpoint.
If dialed number begins with '0' then it will be routed to a local host
(leading '0' will be discarded). Other dialed numbers will be routed to
172.16.33.21.
Starting with OPAL:
$ t38modem -n -o trace.log -p ttyx0,ttyx1 \
--route "modem:0.*=h323:<dn!1>@127.0.0.1" \
--route "modem:1.*=sip:<dn>@172.16.33.20" \
--route "modem:2.*=h323:<dn>@172.16.33.21" \
--route "h323:.*=modem:<dn>" \
--route "sip:.*=modem:<dn>"
This will create two modems (/dev/ttyx0 and /dev/ttyx1) and H.323 and SIP endpoints.
If dialed number begins with '0' then it will be routed to a local host.
If dialed number begins with '1' then it will be routed to SIP endpoint 172.16.33.20.
If dialed number begins with '2' then it will be routed to H.323 endpoint 172.16.33.21.
Leading '0', '1' and '2' will be discarded.
Q. I try to use T38modem, but after run "t38modem -p ttyx0" I get a message
"Could not open /dev/ptyx0: No such file or directory".
A. Looks like you don't have legacy PTY devices compiled in your kernel.
You need to re-compile the kernel with 'Legacy PTY Support'.
Alternatively, you can build t38modem with USE_UNIX98_PTY=1 option and use
-p +/dev/ttyx0,+/dev/ttyx1 instead of -p ttyx0,ttyx1.
FreeBSD Users: You need to use -p ttypa,ttypb instead of -p ttyx0,ttyx1.
Remember to replace ttyx0 with ttypa and ttyx1 with ttypb
when following the rest of these instructions.
This will create two modems /dev/ttypa and /dev/ttypb.
Windows Users: You need two COM ports connected via Null-modem cable to create one modem.
If your COM1 connected to COM2 and COM3 connected to COM4 you need to use
-p
\\.\COM2,\\.\COM4 instead of -p ttyx0,ttyx1.
This will create two modems COM1 and COM3.
Q. How to use t38modem without additional COM port hardware on Windows?
A. Replace a pair of physical COM ports with a pair of virtual COM ports.
See
http://com0com.sourceforge.net/ project for details.
Q. What model of modem to select in Add Hardware Wizard?
A. Select "Standard 1440 bps Modem".
Cisco Users: Possible additionaly you will need to use --h245tunneldisable option.
3.2. Testing (you need two consoles)
------------------------------------
(FreeBSD users - remeber to use /dev/ttypa and /dev/ttypb with 'cu -l')
(Windows users - use COM1 and COM3 with HyperTerminal)
$ cu -l /dev/ttyx0 $ cu -l /dev/ttyx1
Connected. Connected.
<-- at <-- at
--> OK --> OK
(wait at least 10 secs)
<-- atdt012345
-->
--> RING
-->
--> RING
<-- ati9
--> NDID = 12345
--> OK
-->
--> RING
-->
--> RING
<-- ata
--> CONNECT --> CONNECT
<-- x
--> OK
<-- ath
--> OK
-->
--> ERROR
<-- at
--> OK
<-- at
--> OK
... ...