I am using peerjs server and peerjs to makewebrtc call between 2 peerid. The call is like
var call = peer.call($('#callto-id').val(), window.localStream);
establishment is working perfect. Now i have added a popup when incoming call is coming from other peers.The pop is asking "Recieve the call?"
If user press "yes" from popup call recieve using 'call.answer(window.localStream);' else no action
If the user reject the call the caller not getting any response that the call is recieved or not.
How i can understand the call is recieved or not by calling ' var call = peer.call($('#callto-id').val(), window.localStream);'
Any idea?