Rejecting a call

To reject an incoming call, use nccRejectCall.

Prototype

DWORD NMSAPI nccRejectCall ( NCC_CALLHD callhd, unsigned method, void *rejectparms)

Argument

Description

callhd

Call handle returned to the application with the NCCEVN_SEIZURE_DETECTED event.

method

Method used to reject the call.

Value

Resulting SIP message

NCC_REJECT_PLAY_REORDER

Sends a 604 response – Does not exist

NCC_REJECT_PLAY_RINGTONE

Sends a 603 response – Decline

NCC_REJECT_USER_AUDIO

Sends a 606 response – Not acceptable

NCC_REJECT_PLAY_BUSY

Sends a 600 response – Busy everywhere

rejectparms

Not used.

Example

ret = nccRejectCall( callhd, reject, NULL );