Making calls to phones is done in the same manner as Making calls between users.
Here's the example code of the server scenario:
After you created this scenario you may make call from Web SDK like this:
And the call will be made to the desired phone number.
You should keep in mind that VoxImplant thinks that all phone numbers are in the international (E.164) format (country code+area code+number), so if you want to make it possible for a caller to enter a number in some other format, you will need to convert it to the international format. This can be done on the client side (if you use the Web SDK, you can process user input) or in the call scenario.
If you want to do that in the call scenario, you will need to pass an extra parameter to forwardCallToPSTN function:
This function will accept a dialed number as a parameter and will return the number in the international format. For example, if you want to let people enter a number like they would if they were calling from the United States, you could write the following code:
If you need to handle failures as well, please read the article Advanced call processing.