Rate this page:

callUserDirect

Copy URL
callUserDirect(incomingCall: 

Call

,
username:

string

,
options:

callUserDirectParameters

):

Call

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 details in VoxEngine session limits. IMPORTANT: calling this method makes impossible to use 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:

    Call

    Incoming call that needs to be forwarded

  • username:

    string

    Name of the Voximplant user to call

  • Object with callUserDirect parameters ("callerid", "displayName", "analyticsLabel" and "extraHeaders").

Returns