Discussion:
no CONNECT_B3_IND
(too old to reply)
Marcin p.
2008-12-08 15:32:17 UTC
Permalink
Hi.

Helo. I'am student of Technical University of Lodz in Poland. I have to
write the program (something laike SoftPhone) using the CAPI2.0 standard (Eicon
library).The connection is established between two controllers (Fritz!CARD-USB &
Fritz!X-USB).Incomming call and received data looks fine (from ISDN-telephon to
PC), but outgoing call deosn't work. I cannot receive CONNECT_B3_ACTIVE_IND? The
queue is empty?On the second side the application received DATA_B3_IND, despite
the fact the firs side dont send the DATA_B3_REQ. (no logical connection - no
CONNECT_B3_ACTIVE_IND).Do you have any idea?Martin
Lothar Kimmeringer
2008-12-09 09:23:32 UTC
Permalink
Post by Marcin p.
Helo. I'am student of Technical University of Lodz in Poland. I have to
write the program (something laike SoftPhone) using the CAPI2.0 standard (Eicon
library).The connection is established between two controllers (Fritz!CARD-USB &
Fritz!X-USB).Incomming call and received data looks fine (from ISDN-telephon to
PC), but outgoing call deosn't work. I cannot receive CONNECT_B3_ACTIVE_IND? The
queue is empty?On the second side the application received DATA_B3_IND, despite
the fact the firs side dont send the DATA_B3_REQ. (no logical connection - no
CONNECT_B3_ACTIVE_IND).Do you have any idea?Martin
A CAPI-Trace might help tracking down the problem. You didn't
say what operating system you're using but for Windows there
is a Debug-DLL provided by AVM that creates a text-file containing
all CAPI-message that were sent to/received by the hardware.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: ***@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
Marcin p.
2008-12-09 09:53:17 UTC
Permalink
Post by Lothar Kimmeringer
A CAPI-Trace might help tracking down the problem. You didn't
say what operating system you're using but for Windows there
is a Debug-DLL provided by AVM that creates a text-file containing
all CAPI-message that were sent to/received by the hardware.
I'm using Visual Studio
OS - Windows XP SP2


Below is the effect of my application:

[OK ] CAPI_REGISTER Application ID = 2
[OK ] CAPI_PUT_MESSAGE: CONNECT_REQ:
CIP Value: 4
Called Party Number(4): 1101
Calling Party Number(4): 1102
Called Party Subaddress(0):
Calling Party Subaddress(0):
[OK ] RECEIVED CONNECT_CONF: OK. Connect is active PLCI=1 NCCI=0 Info=0
ApplId=2 CapiError: 1104
....
ApplId=2 CapiError: 1104
ApplId=2 CapiError: 0
[OK ] CAPI_GET_MESSAGE: CONNECT_ACTIVE_I Received(0x8203)
Info=6 00 80 1 1 0 1
Number=0134
[OK ] CAPI_PUT_MESSAGE: CONNECT_ACTIVE_RESP
[OK ] CAPI_PUT_MESSAGE: CONNECT_B3_REQ:
PLCI=1 NCCI=0 Number=0
[OK ] RECEIVED CONNECT_B3_CONF: OK. Connect B3 is active PLCI=1, NCCI=1,
Info=0, Number=0
ApplId=2 CapiError: 1104
...
ApplId=2 CapiError: 0
[OK ] CAPI_GET_MESSAGE: DISCONNECT_B3_I Received(0x8284)
ApplId=2 CapiError: 1104
ApplId=2 CapiError: 0
[OK ] CAPI_GET_MESSAGE: DISCONNECT_I Received(0x8204)
[OK ] CAPI_RELEASE ApplId = 2 released successfuly.

After CONNECT_B3_CONF I dont receive CONNECT_B3_ACTIVE_IND. The QUEUE is empty
when a I try get the some message (CapiError = 0x1104);
I'll try use CAPI_Trace.

Thanks.
Martin from Poland
Lothar Kimmeringer
2008-12-09 11:02:21 UTC
Permalink
Post by Marcin p.
[OK ] CAPI_REGISTER Application ID = 2
What values do you use for registration?
What B-protocol-settings are used?
Post by Marcin p.
[OK ] RECEIVED CONNECT_CONF: OK. Connect is active PLCI=1 NCCI=0 Info=0
ApplId=2 CapiError: 1104
....
ApplId=2 CapiError: 1104
You can get around repetitive calls of CAPI_GET_MESSAGE
by calling CAPI_WAIT_FOR_SIGNAL that returns if a message
is available to be read from the queue.
Post by Marcin p.
ApplId=2 CapiError: 0
[OK ] CAPI_GET_MESSAGE: CONNECT_ACTIVE_I Received(0x8203)
Info=6 00 80 1 1 0 1
Number=0134
This is a different number than you called. Is that supposed
to happen?
Post by Marcin p.
[OK ] CAPI_PUT_MESSAGE: CONNECT_ACTIVE_RESP
PLCI=1 NCCI=0 Number=0
What B3-Protocol do you use? If it's a protocol like X.25 you need
to specify NCPI-values (not ncpi). As well, the PLCI-value 1 looks
wrong (it's a combined value of the physical line value and the
number of the controller, so 1 is definetely too low).
Post by Marcin p.
[OK ] RECEIVED CONNECT_B3_CONF: OK. Connect B3 is active PLCI=1, NCCI=1,
Info=0, Number=0
ApplId=2 CapiError: 1104
...
ApplId=2 CapiError: 0
[OK ] CAPI_GET_MESSAGE: DISCONNECT_B3_I Received(0x8284)
If 0x8284 is the diconnect-reason, I never saw that before. You might
check the documentation of your CAPI-driver what that error means.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: ***@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
Lothar Kimmeringer
2008-12-09 12:24:39 UTC
Permalink
Post by Lothar Kimmeringer
What B3-Protocol do you use? If it's a protocol like X.25 you need
to specify NCPI-values (not ncpi).
... should be read as (not ncci), I always write the one instead of
the other.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: ***@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
Marcin p.
2008-12-09 12:58:09 UTC
Permalink
Thanks for all.

I found the error (using CAPI-Trace). I wrong fill the struct in CONNECT_REQ
(exactly B Protocol (B1, B2, B3)- default, instead of 0x01 for B1, B2, B3). Now
I can receive the CONNECT_B3_ACTIVE_IND, and the logical connection is
established :-)

The next step is sending the data between terminals.
At first I would try to send the G.711 bits from my application (from file) to
ISDN-telephon. I have some little problems with fill the DATA_B3_REQ.


Thanks one again for help.

Martin

News
2008-12-09 11:42:41 UTC
Permalink
Marcin,

if you gave us a *complete* CAPI Trace, we might could help you more. ;-)

Regards, Jochen Klein www.servonic.de
Post by Marcin p.
Hi.
Helo. I'am student of Technical University of Lodz in Poland. I have to
write the program (something laike SoftPhone) using the CAPI2.0 standard
(Eicon library).The connection is established between two controllers
(Fritz!CARD-USB & Fritz!X-USB).Incomming call and received data looks fine
(from ISDN-telephon to PC), but outgoing call deosn't work. I cannot
receive CONNECT_B3_ACTIVE_IND? The queue is empty?On the second side the
application received DATA_B3_IND, despite the fact the firs side dont send
the DATA_B3_REQ. (no logical connection - no CONNECT_B3_ACTIVE_IND).Do you
have any idea?Martin
Continue reading on narkive:
Loading...