Hello,
I downloaded you library JCAPI and on WinXP extracted
jcapi20 to JAVAHOME/bin. I have ASUSCOM ISDNLINK
USB adapter (TA-280ST-W) connected and Capi is
installed - I have for example IsdnObjects for Delphi and
it works fine.
After I run:
java -jar jcapi.jar
I got:
------------------------------------------------------
org.capi.capi20.CapiException: CAPI1101: Illegal
application number
at net.sourceforge.jcapi.Jcapi.checkError
(Jcapi.java:295)
at net.sourceforge.jcapi.Jcapi.putMessage
(Jcapi.java:233)
at CallMon.run(CallMon.java:303)
at CallMon.<init>(CallMon.java:120)
at CallMon.main(CallMon.java:352)
CAPI_INSTALLED: true
Implementation: Jcapi version 1.1, Win32
(NT/95/98/2000/ME/XP) native interface version 1.1
CAPI_GET_MANUFACTURER: ISDNLINK
CAPI_GET_VERSION: 2.0 / 3.7
CAPI_GET_SERIAL_NUMBER: 6751688
Profiles:
number of controllers: 1
CAPI_GET_PROFILE(1):
number of B-channels: 2
Global Options :
00000000000000000000000000000001
B1 support :
00000000000000000000000000101111
B2 support :
00000000000000000000101000000011
B3 support :
00000000000000000000000000000111
01 00 02 00 01 00 00 00
2f 00 00 00 03 0a 00 00
07 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
application ID: 114688014
sending listen request...
Appl: 1a 00 0e 00 05 80 01 00 01 00 00 00 ff 03 00 00
01 00 00 00 00 00 00 00 00 00
----------------------------------------------------
What is Illegal application number ?
Thanks.
Leos
Logged In: YES
user_id=299516
Note:
This problem was caused by an unexpected behaviour of the
capi2032.dll used: The return value "application ID" is
defined as a four-byte integer, but this capi2032 only sets
the lower two bytes and keeps the others un-initialized.
Solution:
The value "application ID" is now initialized by the
jcapi20.dll to "0". The source of this version of jcapi can
be found in CVS (jcapi.c) and Jcapi 1.2, the next releases
(Jcapi 1.2.1 and above) will contain the new binary jcapi20.dll.