Skip to content

Instantly share code, notes, and snippets.

@aylarov
Created July 19, 2017 15:53
Show Gist options
  • Save aylarov/360018174f33bca4a366120e962bece0 to your computer and use it in GitHub Desktop.
Save aylarov/360018174f33bca4a366120e962bece0 to your computer and use it in GitHub Desktop.
PSTN call-out
/**
* Make PSTN call-out
*/
function handleCallOut(num) {
var pstn = VoxEngine.callPSTN(num);
pstn.addEventListener(CallEvents.Connected, function (e) {
pstnCalls.push(e.call);
VoxEngine.sendMediaBetween(pstn, conference);
});
pstn.addEventListener(CallEvents.Disconnected, function (e) {
if (pstnCalls.indexOf(e.call) > -1) pstnCalls.splice(pstnCalls.indexOf(e.call), 1);
});
pstn.addEventListener(CallEvents.Failed, function (e) {
// Couldn't reach the callee
});
}
@jorge953
Copy link

jorge953 commented May 8, 2021

How to make a sip call to a cell phone number voximplant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment