How to disconnect call before user accept
Call not disconnecting from user end after disconnect call. It's shows ringing. Can answer the call also. How to disconnect call before user accept.
You can close media connection using call.close();. Here is reference.
I have the same question. call.close() doesn't work if you don't do call.anwser() first...
I'm experiencing the same problem as @BernardoMG . Works fine if call.close() is called after call.answer(), but not if you call call.close() before call is answered.
@akilah007 @BernardoMG @andreassh Anyone of you guys found any work around here?
This was discussed in another issue, the problem here is that when you call someone, you give them the "right" to establish the call with you, so while he doesn't answer, there is no call to close, but he still has the "right" to call you. In this case I think destroying the peer will work, but there is no way of closing anything because the call is not still created.
Even though the peer is destroyed on the caller side, the callee still won't be able to be notified of the end of the calling.
Well. the only workaround I've found was to create a data channel between the peers and send an finish object that finishes the call on the other end
we can add 'decline' method, which send back decline message to callee via signaling.
Well, for the disconnecting problem, we could set some kind of heartbeat using DataChannel (or with PeerServer between)
well, this is not the best solution but i use web sockets to relay different states and synchronize between caller and receiver. so if caller hangs up before the receiver picks up, i revert to the "before call was initiated" state on the callers side and use the web socket to relay that the call was disconnected to the receiver side so the receiver can also go back to the "before call was initiated" state. but note: the peer connection is not disconnected because call.close() doesnt work without the call being answered. so this is essentially a work around to make the UI feel like the call ended but actually the "call" is just hanging in limbo
Any chance this decline/reject new feature will be implemented soon?
Really could do with a decline method
Same. Decline method would be really appreciated.
Still waiting for this feature. :/