Closed d-knafo closed 6 years ago
Yes but you have to add this yourself. There is no "ringer" or "calling" state. Only an instant "connecting" state.
stephenlb can you guide us how we can do it?
You can do this. Here is an example.
// When Call Comes In or is to be Connected
phone.receive(function(session){
session.ended(function(session){
sounds.play('sound/goodbye');
console.log("Bye!");
});
// immediately reject the call. <-------------- rejected 🙅♂️
if (true) session.hangup();
});
hi @stephenlb , I want to know if it is possible to reject a call ? (a confirmation to enter in conversation)