Natural Call Control (NCC) transfer interface

To transfer a call using the Natural Call Control transfer interface, one of the calls must have a callid. This topic describes how to obtain a callid and how to initiate a call transfer using the NCC transfer interface.

Obtaining a callid

There are two ways to obtain a callid:

typedef struct
{
  DWORD size;                           /* size of this structure           */
 . . .
  DWORD getcallid;                      /* get callid for this call         */
 . . .
} PLACECALL_EXT; 

typedef struct
{
  WORD message_id;
  WORD message_type;
} NCC_ISDN_SEND_CALL_MESSAGE; 

 

Note: Some protocol variants do not support this method of obtaining a callid.

In either case, the application is informed (by the NCCEVN_CALLID_AVAILABLE event) when a callid is available. Any time after this occurs, the application can initiate a call transfer.

Initiating call transfer

There are two ways to initiate call transfer:

typedef struct
{
DWORD size;                        /* size of this structure */
WORD id[NCC_ISDN_CALLID_LEN];      /* call identifier        */
} TRANSFERCALL_EXT;

Set the size field to the size of the structure and the id field to the callid for the other leg of the transfer. The callid is available to the other process in the callid field of the NCC_ISDN_EXT_CALL_STATUS structure after the NCCEVN_CALLID_AVAILABLE event is received. For example:

typedef struct
{
. . .
WORD callid[NCC_ISDN_CALLID_LEN];  /* call identifier          */
. . .

} NCC_ISDN_EXT_CALL_STATUS;

 

Note: For NCC, transfer can be performed only on calls on two separate B channels.

When a transfer is successful, the application receives the NCCEVN_CALL_DISCONNECTED message, with the reason code NCC_DIS_TRANSFER for the call that was transferred.

If call transfer fails, the application receives the NCCEVN_PROTOCOL_ERROR message with a value of NCC_PROTERR_TCT_FAILED and the size field is set to one of the error codes given in NMS ISDN messaging transfer interface. For more information, refer to the Dialogic® NaturalAccess™ ISDN Software Developer's Manual.