Rate this page:

callPSTN

Copy URL
callPSTN(number: 

string

,
callerid:

string

):

Call

Start an outgoing 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 details in VoxEngine session limits.

Parameters

  • number:

    string

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

  • callerid:

    string

    CallerID of the caller that will be 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 can't 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.

Returns