Skip to content

Instantly share code, notes, and snippets.

@chrismatthieu
Created July 7, 2010 15:54
Show Gist options
  • Save chrismatthieu/466861 to your computer and use it in GitHub Desktop.
Save chrismatthieu/466861 to your computer and use it in GitHub Desktop.
function makeCall() {
numberToDial = $("#destinationTxt").val();
// window.console.log("dialing " + numberToDial);
call = phone.dial(numberToDial, {
headers: {
did:"14803194368",
bling:"blaz"
},
onAnswer: function(event) {
// call.digit('16025551212');
// window.console.log("callback answered");
},
onHangup: function() {
// window.console.log("callback hangup");
}
});
// window.console.log(call);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment