Created
October 2, 2019 07:26
-
-
Save mohsenk/a6bb46e96e2dff73cd74dfc0f47f886b to your computer and use it in GitHub Desktop.
Revisions
-
Mohsen created this gist
Oct 2, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ self.kavenegarCall.initCall(params, (joinResult, call) => { if (call == null) { window.location.hash = ""; return; } if (call.direction === CallDirection.INBOUND) { call.ringing(); } this.setConversationUI(); this.currentCall = call; call.onFinished = (reason) => { this.setCallUI(); window.location.hash = ""; this.currentCall = null; call.dispose(); }; call.onMediaStateChanged = (event) => { }; call.onMessagingStateChanged = (event) => { }; call.onStatusChanged = (status) => { }; });