(Page 11 of 23 in this chapter) Version
nccPlaceCall
Description
- Places an outbound call.
Prototype
- DWORD nccPlaceCall ( CTAHD linehd,
char *calledaddr,
char *callingaddr,
void *mgrcallparms,
void *protcallparms,
NCC_CALLHD *callhd )
- linehd The CT Access context handle on which NCC line is opened via ctaOpenServices.
- calledaddr A pointer to the address of the remote party (must be a NULL terminated string with a maximum of 32 digits).
- callingaddr A pointer to the address of the local party (must be a NULL terminated string with a maximum of 32 digits). Can be NULL if the protocol implementation allows.
- mgrcallparms A pointer to a manager-specific CT Access call placement parameter structure. Specify NULL to use default values. See the manager-specific documentation for details.
- protcallparms A pointer to a protocol-specific CT Access call placement parameter structure. Specify NULL to use default values. See the protocol-specific documentation for details.
- callhd A pointer to NCC_CALLHD. NCC assigns a valid call handle to a successfully initialized outbound call. This call handle is used in other call-related API functions, such as nccHoldCall or nccReleaseCall.
Return Values
Events
Details
- calledaddr and callingaddr can be digit strings, IP addresses, or endpoint names, depending on the protocol.
- If the application receives NCCEVN_CALL_RELEASED (with an NCC_RELEASED_GLARE reason code) instead of NCCEVN_PLACING_CALL, the line was seized for an incoming call before glare was resolved, and the TCP has released the outgoing call. The application should immediately abandon outbound call placement and handle the incoming call.
- The application can obtain protocol-specific information concerning the call, such as the B-channel location of a wireless protocol implementation, by invoking nccGetExtendedCallStatus.
- Signaling protocols (for example, ISDN) may support overlapped sending of digits. Such signaling may supply a partial dialing sequence when invoking nccPlaceCall, and use nccSendDigits to complete delivery of the remaining dialing sequence, in one or more chunks. The final character of each partial digit string should be a ~. When all digits are sent, the digit string specified in nccSendDigits should not include the final ~ character.
- The application can determine whether or not a protocol supports overlapped sending of digits by examining the NCC_CAP_OVERLAPPED_SENDING bit in the capabilitymask returned by nccQueryCapability. For more information about overlapped sending of digits, see Section 4.3.4.
See Also
- nccSendDigits
(Page 11 of 23 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights
reserved.