home *** CD-ROM | disk | FTP | other *** search
-
- cFos ISDN FOSSIL appendage, Revision 1.2
-
- The functions are to be called with AH=0x90 and the function
- number in AL. See the FOSSIL doc for more information on FOSSIL
- programming and user applications.
-
- Please note that the appendage functions are only active if you
- use a 'cFos/Pro' or 'cFos/Plus' version.
-
-
- ========================================================================
-
-
- ISDN appendage, appendage code=0x90:
-
- ------- 00 - check for ISDN appendage ----------------------------------
-
- INPUT:
- AX = 0x9000
-
- OUTPUT:
- AX = 0x1969
- BX = maximum function number supported
- CX = 'cF'
- DX = 'os'
-
- NOTE:
- if AX != 0x1969, this FOSSIL doesn't feature any
- ISDN appendage.
-
-
- ------- 01 - reset ISDN driver/hardware --------------------------------
-
- This function terminates all connections on all ports and resets
- the ISDN driver/hardware. If 'cFos' was loaded with -jr, this
- function does nothing.
-
- INPUT:
- AX = 0x9001
-
- OUTPUT:
- AX = 0x0000 on success
-
-
- ------- 02 - get ISDN connection info ----------------------------------
-
- INPUT:
- AX = 0x9002
- DX = port number
- CX = number of bytes to get from appendage
- ES:BX = ptr to ISDN info block in application space
-
- OUTPUT:
- AX = 0000, success
- CX = number of bytes transfered into application buffer
-
- ISDN info block:
- WORD offset into additional infomation
- elements in bytes, starting from the
- beginning of the block
- FAR PTR incoming call: incoming caller-id
- outgoing call: dialed number
- far ptr to ASCIZ string, segment first
- BYTE number of b-channels currently in use by
- this port
- DWORD connection characteristics
- bit 0 = 1 b2-protocol supports control
- flow
- bit 1 = 1 b2-protocol supports error
- correction
- bit 2 = 0 incoming call
- 1 outgoing call
- all other bits are reserved for future
- use
- WORD current CPS rate
-
- the ISDN info block can contain additional
- infomation elements reflecting national ISDN
- parameters, e.g. LLC/MSN/Subaddress/EAZ/...
-
- Currently defined:
- BYTE type 1 = 1.TR.6
- BYTE requested EAZ
- BYTE Service Indicator
- BYTE Additional Service Indicator
-
-
- ------- 03 - get charging info -----------------------------------------
-
- INPUT:
- AX = 0x9003
- DX = port
- BX = no of b-channel of this port
- (0=main channel, 1=first aux channel...)
- ffff = sum of all charges on all channels,
- independant of carrier status
-
- OUTPUT:
- AX = 0000, success
- 0001, no valid b-channel
- BX = num. of charges used for current connection
- CX = num. of seconds remaining in current charging unit
- (valid after 2nd charging unit, otherwise link
- duration in seconds)
-
- Note: If no connection is active this function can be
- called with BX = 0 (as well as BX = 0xffff). Then
- it returns CX = 0 and BX the total number of
- charging unit of the last call (main + aux
- channels)
-
-
- ------- 04 - add/remove b-channel --------------------------------------
-
- INPUT:
- AX = 0x9004
- DX = port
- BX = 1 -> add, 2 -> remove
-
- OUTPUT:
- AX = 0000, success
- 0001, no active connection
- 0002, connect/disconnect already in progress
-
- After a call to this function, 'cFos' initiates a
- connect/disconnect sequence. During this sequence all
- calls to this function result in error 0002. The
- completion can be determined by monitoring the number B
- channels in use.
- Note: Dynamic CCB will be switched to static CCB when
- this function is called.
-
-
- ------- 05 - get ISDN time/date ----------------------------------------
-
- INPUT:
- AX = 0x9005
- BX = 0000
-
- OUTPUT:
- AX = 0000, success
- CX:BX = difference between ISDN time and local time in
- seconds. CX = most significant word.
-
-
- ======= End of Text ====================================================
-