denyCall()

call.denyCall() is used to deny an incoming call, like pressing the red button on mobile phone when it is ringing.

It sends a "busy" message to the caller.

Arguments

None.

Returns

Nothing.

Events

call.denyCall() raises event wrtc.onDenied()

Example

When denying a call it is important to call denyCall() of the correct call object. Usually a "Deny" button is displayed by wrtc.onIncomingCall() function and when user klicks on the button denyCall() is called. To be able to call denyCall() of the correct call object you need to use the call.nam property:

wrtc.onIncomingCall = function(call) {
    ...
    stus.innerHTML = "<input type=\"button\" value=\"Deny\" onclick=\"" + call.nam + ".denyCall()\" />";
    ...
}

Also See

ixnx/wrtc/js/api/call/denycall.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0