feat: VoIP freeswitch UI hooks#33006
feat: VoIP freeswitch UI hooks#33006tassoevan merged 1 commit intofeat/voip-freeswitch-ui-internalsfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
8993d60 to
4f5ed09
Compare
7a5417c to
1fce147
Compare
4f5ed09 to
23b56b2
Compare
1fce147 to
03d2aa4
Compare
23b56b2 to
f66c278
Compare
03d2aa4 to
4ebcd51
Compare
f66c278 to
21c8cc0
Compare
f8839ed to
43403c6
Compare
21c8cc0 to
0eab322
Compare
43403c6 to
a05967d
Compare
0eab322 to
468327f
Compare
a05967d to
acdc357
Compare
468327f to
fb38fe1
Compare
acdc357 to
80684ee
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat/voip-freeswitch-ui-internals #33006 +/- ##
==================================================================
Coverage 59.39% 59.39%
==================================================================
Files 2549 2549
Lines 63332 63332
Branches 14253 14253
==================================================================
Hits 37617 37617
Misses 22996 22996
Partials 2719 2719
Flags with carried forward coverage won't be shown. Click here to find out more. |
fb38fe1 to
be70e77
Compare
80684ee to
cddd225
Compare
be70e77 to
4057c92
Compare
cddd225 to
e764573
Compare
❗❗DO NOT MERGE BEFORE #33005❗❗
Proposed changes (including videos or screenshots)
This PR adds the mais React hooks used by the UI for voice calls. Each hook has it's own responsibility and informations is extracted from the
VoIPClient.Here's a description of each hook and it's responsibilities:
useVoiceCallState
Provides information is regards to the state of the
VoIPClientandVoiceCallSession. Ex.:isReady,isRegistered,isError,isIncoming,isOngoing,isOutgoinguseVoiceCallAPI
Provides access to
VoIPClientactions not necessarily related to the currentVoiceCallSession. Ex.:register,unregister,transferCall,makeCall,endCall.useVoiceCallSession
Provides access to the state and actions available for the established voice call.
A
VoiceCallSessioncan beINCOMING,ONGOING,OUTGOINGandERROR. Each session type provides a group of methods (Ex.:mute;hold) and relevant information (Ex.:contact;transferedBy).useVoiceCall
This is a convenience hook that combines state, api and session in a single result.
useVoiceCallDialer
Provides the state of the dialer, whether it's open and a close method.
-- The following hooks are used mostly as support for the previous hooks
useVoiceCallEvent
Listens for events coming from the
VoIPClient, stores and returns the payload as a result.useVoiceCallEffect
Listens for
stateChangedemitted byVoIPClientand calls a callback with the updatedVoIPClient. The callback's return is the result.Issue(s)
VOIP-48
Steps to test or reproduce
N/A
Further comments