2.3.2. Requesting Additional DNIS Digits
The gc_CallAck( ) function can be used to request additional DNIS information from the network. The type field in the GC_CALLACK_BLK in this context is GCACK_SERVICE_INFO.
- Note: The GCACK_SERVICE_INFO define deprecates the GCACK_SERVICE_DNIS define used in previous releases.
When the digits are collected, the gc_CallAck( ) function completes. These digits may be retrieved using the gc_GetCallInfo( ) function with the info_id parameter set to DESTINATION_ADDRESS.
The following example shows how to request one additional destination address (DNIS) digit:
GC_CALLACK_BLK callack; callack.type = GCACK_SERVICE_INFO; callack.service.info.info_type = DESTINATION_ADDRESS; callack.service.info.info_len = 1; /* One additional digit */
- Note: When using DM3 boards, the only info.info_type value supported is DESTINATION_ADDRESS.
When a GCEV_MOREINFO event is received as a termination event to gc_CallAck( ), the result value for the event will indicate if more digits can be retrieved. See the Global Call API Library Reference for more information.
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation