Rate this page:

callUserDirect

Copy URL
callUserDirect(incomingCall: 

Call

,
username:

string

,
parameters:

CallUserDirectParameters

):

Call

Start an outbound call to the specified Voximplant user in peer-to-peer mode. The JavaScript scenario with this method and the destination user should be both within the same Voximplant application. Audio playback and recording does not work. 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:

    Call

    Inbound 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