callUserDirect
callUserDirect(incomingCall: , username: string
, options: ):
Start an outbound call to the specified Voximplant user in peer-to-peer mode. The JavaScript scenario that uses this method and user being called should be both associated with the same Voximplant application. Audio playback and recording does not make any effect. P2P mode is available only for calls between SDKs. The method can trigger the CallEvents.Failed event in 60 sec, see the session limits for details. IMPORTANT: calling this method makes impossible to use the non-P2P mode for a new call and specified inboundCall. So the following methods cannot be used: Call.say, Call.sendDigits, Call.sendMediaTo, Call.stopMediaTo.
Parameters
incomingCall:
Inbound call that needs to be forwarded
username:
string
Name of the Voximplant user to call
options:
Object with callUserDirect parameters ("callerid", "displayName", "analyticsLabel" and "extraHeaders")
Returns
type: