File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
src/modules/ActiveCallControl Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,6 @@ export class ActiveCallControl extends ActiveCallControlBase {
32
32
this . _onTelephonySessionUpdateHandlers = [ ] ;
33
33
}
34
34
35
- // override
36
- _initRcCall ( ) {
37
- const rcCall = super . _initRcCall ( ) ;
38
- if ( rcCall ) {
39
- rcCall . callControl . on ( 'new' , this . _newTelephonySessionHandler )
40
- }
41
- return rcCall
42
- }
43
-
44
35
onTelephonySessionUpdated ( handler ) {
45
36
this . _onTelephonySessionUpdateHandlers . push ( handler ) ;
46
37
}
@@ -110,10 +101,10 @@ export class ActiveCallControl extends ActiveCallControlBase {
110
101
// TODO: workaround of bug:
111
102
// WebRTC outbound call with wrong sequences of telephony sessions then call log section will not show
112
103
// @ts -ignore
113
- rcCall . _callControl ?. on ( 'new' , ( session : Session ) =>
114
- this . _onNewCall ( session ) ,
115
- ) ;
116
-
104
+ rcCall . _callControl ?. on ( 'new' , ( session : Session ) => {
105
+ this . _onNewCall ( session ) ;
106
+ this . _newTelephonySessionHandler ( session ) ; // for telephony session notification
107
+ } ) ;
117
108
return rcCall ;
118
109
}
119
110
You can’t perform that action at this time.
0 commit comments