Hi,
Am 02.07.2008, 11:23 Uhr, schrieb Lothar Kimmeringer
Post by Lothar Kimmeringeris there a way to get the B3-Configuration the caller is setting
in CONNECT_REQ on the receiver side, e.g. the station-id of a
G3-Fax or the X.25-Windows-size?
In general: There isn't. The B-Protocol parameter and with it the
contained B1, B2, and B3 protocol and configuration parameters aren't
something that's communicated to the remote party during a call. These
parameters are used only in order to set up the local protocol stack that
sits above the B channel.
Effectively, ISDN signalling is used to establish a 64 kbit/s bearer
channel to a remote party. Neither the local software stack nor the remote
party initially knows what you intend to do with that channel. You can,
however, during call set up, exchange "Bearer Capability", "Low Layer
Compatibility" and "High Layer Compatibility" information elements which
give the remote party (and intermediate hops) some sort of clue towards
your goal.
When you've set up the B channel, you still have random data come out of
it with a rate of 64 kbit/s a second. The B-Protocol parameter now only
controls how your local CAPI interprets that data and how it's mangled
before being delivered to your application.
The parameters you set inside the B-Protocol aren't necessarily
communicated to the remote party at all. I think that's the case with X.25
window size, as that parameter merely controls some properties of the
local implementation. (But I surely might be wrong here, the closest I
ever came to X.25 was reading the X.75 specification -- which I admit is
not very close at all.)
Some other paramters in fact _are_ communicated to the remote party over
the B channel. That's, for example, the case with a T.30 station id which
is transmitted during initial T.30 handshake. On the remote side (if it's
a CAPI, of course) this station id will come up (wrapped in an NCPI
structure) in either a CONNECT_B3_IND, CONNECT_B3_ACTIVE_IND or
DISCONNECT_B3_IND. You will need to interpret the NCPI parameter to find
out.
Mind you that theoretically a (remote) station id might change during fax
transmission/reception, so you may actually see different IDs in each
NCPI. There's only a remote chance to that, but still...
Post by Lothar KimmeringerI'd need both informations and like to avoid performing OCR
on a received Fax ;-)
Just out of curiosity: How's an X.25 window size involved in both fax
reception and OCR processing?
Best regards,
Danilo