
C H A P T E R 7 : O P T I O N S F O R A D V A N C E D U S E R S
43
be found in CasSetup.h. See Table 7.4 for a description of user functions and
their parameters.
User Functions
(Parameters)
Description
SET_TIMER
(timer number, timeout)
Used to set timers that are managed per B-channel, and their expiration
triggers the state machine table. Each protocol table/state machine can use
up to 8 timers per B-channel/call, (timeout in ms).
SEND_CAS
(AB value, CD value)
ABCD bits sent as line signaling for the specific channel the call is setup.
SEND_EVENT
(event type, cause)
The specified event type is sent to the host/user.
SEND_DEST_NUM()
Enbloc dialing when the number is input when a call is originated by the
user. Three types are possible:
(1) ADDRESS, (2) InterExchangePrefix, (3) ANI
DEL_TIMER
(timer number)
Delete a specific or all timers (0 for all) for the B-channel.
START_COLLECT
Initiating the collection of address information, i.e. the dialed (destination)
number for incoming calls where appropriate by the protocol. At the time
between START_COLLECT and STOP_COLLECT no digits are reported to
the User (EV_DIGIT is blocked), the destination number is reported in the
EV_INCOMING_CALL_DETECTED event.
STOP_COLLECT
See START_COLLECT.
SET_COUNTER (counter
number,
counter value or NONE)
Used to set counters that are managed per B-channel and their expiration
triggers the state machine. The counter initialization value should be non-
negative number. To delete all timers, perform this function with 0 in the
counter number field.
DEC_COUNTER (counter
number)
Decrease the counter value by 1. When the counter value reaches 0
EV_COUNTERx_EXPIRES is sent to the table (the ‘x’ representing the
counter number).
SEND_MF
(MF type,
MF digit or index or NONE,
MF sending time)
This function is used only with MFC-R2 protocols.
MF Type - When the code reaches the dialing section it sends MF digit
according to the MF type specified in the MF type rubric (the types are
defined in CASSetup.h file):
•
ADDRESS – Send digit from the address vector (destination
number) according to the index requested. (See Index explanation).
•
ANI - Send digit from the ANI vector (source number) according
to the index requested.
•
SPECIFIC – Send the MF digit specified in the Parameter #2 rubric.
•
SOURCE_CATEGORY - Send pre-defined source category MF
digit. The second and third parameters have no use when using
this type.
•
TRANSFER_CAPABILITY - Send pre-defined line category MF
digit. The second and third parameters have no use when using
this type.
Index - The Index parameter specifies the offset of the next digit to be sent
from vector (ADDRESS or ANI types described above):
•
Use index 1 for sending next digit in the vector.
•
Use index -n for sending last but n digit. Underflow can occur if n
is greater than the number of digits sent so far.