diff --git a/public/call.html b/public/call.html index 515bd31..e1b0741 100644 --- a/public/call.html +++ b/public/call.html @@ -132,12 +132,22 @@ Direction: Inbound -
- + + + +
@@ -324,6 +334,19 @@ }; }, + async hangupCall(callHash) { + try { + + // hangup call + await axios.get(`/api/v1/calls/${callHash}/hangup`); + + // reload calls list + await this.updateCallsList(); + + } catch(e) { + alert("failed to hangup call"); + } + }, leaveCall: function() { // mute mic