Rate this page:

callPSTN

Copy URL
callPSTN(number: 

string

,
callerid:

string

):

Call

Start an outbound call to the specified PSTN number. Calls 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

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

  • callerid:

    string

    CallerID of the caller that is displayed to the callee. Whitespaces are 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 inbound call to the rented number. It can be retrieved as Caller ID.

Returns