File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'bootstrap/dist/css/bootstrap.min.css';
6
6
import type Platform from '@ringcentral/sdk/lib/platform/Platform' ;
7
7
import { SessionState } from 'sip.js' ;
8
8
9
- import WebPhone from '../src/index' ;
9
+ import WebPhone , { WebPhoneOptions } from '../src/index' ;
10
10
import incomingAudio from 'url:./audio/incoming.ogg' ;
11
11
import outgoingAudio from 'url:./audio/outgoing.ogg' ;
12
12
import type { WebPhoneInvitation } from '../src/session' ;
@@ -159,7 +159,7 @@ $(() => {
159
159
}
160
160
161
161
function register ( data ) {
162
- const webPhoneConfig : any = {
162
+ const webPhoneConfig : WebPhoneOptions = {
163
163
enableDscp : true ,
164
164
clientId : localStorage . getItem ( 'webPhoneclientId' ) ! ,
165
165
audioHelper : {
@@ -176,6 +176,11 @@ $(() => {
176
176
} ,
177
177
enableQos : true ,
178
178
enableMediaReportLogging : true ,
179
+
180
+ // in some network environments, the default iceCheckingTimeout of 500ms is not enough
181
+ // we need more time to gather candidates.
182
+ // disadvantage of this is that it will take more time to establish the call
183
+ iceCheckingTimeout : 3000 , // 3 seconds
179
184
} ;
180
185
181
186
const urlParams = new URLSearchParams ( window . location . search ) ;
You can’t perform that action at this time.
0 commit comments