Version


With some protocols, the application can accept a call immediately without answering or rejecting it, using the nccAcceptCall function. This allows the application to perform media functions (such as playing a voice file) before connecting (or rejecting) the call.
To help determine what to do with a call, the application may invoke nccGetCallStatus to retrieve the incoming address (caller ID) or other information. For more information, see Section 4.2.3.
Figure 4. Inbound Call Sequence
Figure 5. Inbound Call Sequence (Including nccAcceptCall)


typedef struct
{
DWORD size; /* No of bytes written to by callstatus */
DWORD state; /* Current call state */
char calledaddr [NCC_MAX_DIGITS+1]; /* Called number address */
char callingaddr[NCC_MAX_DIGITS+1]; /* Calling number address */
char callingname[NCC_MAX_CALLING_NAME]; /* Calling name info */
DWORD pendingcmd; /* Last command not ack'ed by board */
DWORD held; /* Non--zero value when call is held */
DWORD direction; /* Indicates inbound or outbound call */
CTAHD linehd; /* Line handle on which call resides */
} NCC_CALL_STATUS;



|
Method
|
Action
|
|---|---|
|
NCC_ACCEPT_PLAY_RING
|
Play ring tone.
|
|
NCC_ACCEPT_PLAY_SILENT
|
Play nothing.
|
|
NCC_ACCEPT_USER_AUDIO
|
Allow the application to generate tones and perform voice playback functions.
|





Figure 6. Outbound Call Sequence





Final digit string: 17257924528







Version