The code snippet below dials in using PSTN and hangs up after 60 seconds.
We recommend using SIP whenever possible instead of PSTN as it provides higher audio quality options as compared to PSTN. SIP endpoint provides an optional audio configuration as well.
app.js and copy this code into the file. Fill in the placeholder values with the proper values. Use npm to install the required libraries:
npm install symbl-node. Now in the terminal run
If successful you should receive a response in the console.