Rate this page:

callPSTN

Copy URL
callPSTN(number: 

string

,
callerid:

string

,
parameters:

CallPSTNParameters

):

Call

Starts an outgoing call to the specified phone number. Calls that are more expensive than 20 cents per minute and calls to Africa are blocked by default for security reasons. The method can trigger the CallEvents.Failed event in 60 sec, see the session limits for details.

Parameters

  • number:

    string

    phone number to start a call to in the international format (E.164)

  • callerid:

    string

    CallerID of the caller that is displayed to the user. Spaces usage is not allowed. A valid phone number that can be used to call back is required. Following phone numbers can be used:

    • A real phone number that is rented from Voximplant. IMPORTANT: test numbers cannot be used.
    • Any phone number that is verified via an automated call from Voximplant and confirmation code.
    • A phone number from an incoming call to the rented number. It can be retrieved as Caller ID.
  • Optional

    Object with callPSTN parameters.

Returns