callUserDirect
callUserDirect(incomingCall: , username: string
, options: ):
Start an outgoing 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 will 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 incomingCall. So the following methods can't be used: Call.say, Call.sendDigits, Call.sendMediaTo, Call.stopMediaTo.
Parameters
incomingCall:
Incoming 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: