@telegenta/webclient 2.0.12 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +102 -81
  2. package/demos/add_phone_number.html +8 -7
  3. package/demos/calldata_available.html +5 -5
  4. package/demos/embedded_config.html +3 -3
  5. package/demos/event_client.html +226 -211
  6. package/demos/phone_client.html +540 -514
  7. package/demos/styles.css +0 -0
  8. package/dist/telegenta.js +3663 -0
  9. package/dist/telegenta.min.js +1 -0
  10. package/docs/EventClient.html +3 -1093
  11. package/docs/EventServiceNotConnected.html +3 -0
  12. package/docs/InvalidMediaDevice.html +3 -0
  13. package/docs/InvalidOptions.html +3 -0
  14. package/docs/InvalidParameter.html +3 -0
  15. package/docs/LogHandler.html +7 -0
  16. package/docs/MediaNotPrepared.html +3 -0
  17. package/docs/NoActiveSession.html +3 -0
  18. package/docs/NotAllowed.html +3 -0
  19. package/docs/NotReady.html +3 -0
  20. package/docs/Phone.html +4 -2837
  21. package/docs/Request.html +3 -0
  22. package/docs/Requestor.html +3 -0
  23. package/docs/Session.html +3 -2599
  24. package/docs/UnableToConnect.html +3 -0
  25. package/docs/data/search.json +1 -0
  26. package/docs/event-client.js.html +352 -0
  27. package/docs/exceptions.js.html +104 -0
  28. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  29. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  30. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  31. package/docs/global.html +5 -4950
  32. package/docs/index.html +3 -66
  33. package/docs/logger.js.html +106 -0
  34. package/docs/phone-client.js.html +2175 -0
  35. package/docs/requestor.js.html +223 -0
  36. package/docs/scripts/core.js +726 -0
  37. package/docs/scripts/core.min.js +23 -0
  38. package/docs/scripts/resize.js +90 -0
  39. package/docs/scripts/search.js +265 -0
  40. package/docs/scripts/search.min.js +6 -0
  41. package/docs/scripts/{prettify → third-party}/Apache-License-2.0.txt +202 -202
  42. package/docs/scripts/third-party/fuse.js +9 -0
  43. package/docs/scripts/third-party/hljs-line-num-original.js +369 -0
  44. package/docs/scripts/third-party/hljs-line-num.js +1 -0
  45. package/docs/scripts/third-party/hljs-original.js +5171 -0
  46. package/docs/scripts/third-party/hljs.js +1 -0
  47. package/docs/scripts/third-party/popper.js +5 -0
  48. package/docs/scripts/third-party/tippy.js +1 -0
  49. package/docs/scripts/third-party/tocbot.js +672 -0
  50. package/docs/scripts/third-party/tocbot.min.js +1 -0
  51. package/docs/styles/clean-jsdoc-theme-base.css +1159 -0
  52. package/docs/styles/clean-jsdoc-theme-dark.css +412 -0
  53. package/docs/styles/clean-jsdoc-theme-light.css +482 -0
  54. package/docs/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  55. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  56. package/docs/styles/clean-jsdoc-theme.min.css +1 -0
  57. package/package.json +38 -26
  58. package/babel.config.js +0 -16
  59. package/browser/telegenta.min.js +0 -1
  60. package/demos/telegenta.min.js +0 -1
  61. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  62. package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
  63. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  64. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  65. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  66. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  67. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  68. package/docs/fonts/OpenSans-Italic-webfont.svg +0 -1830
  69. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  70. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  71. package/docs/fonts/OpenSans-Light-webfont.svg +0 -1831
  72. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  73. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  74. package/docs/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  75. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  76. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  77. package/docs/fonts/OpenSans-Regular-webfont.svg +0 -1831
  78. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  79. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  80. package/docs/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  81. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  82. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  83. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  84. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  85. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  86. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  87. package/docs/scripts/linenumber.js +0 -25
  88. package/docs/scripts/prettify/lang-css.js +0 -2
  89. package/docs/scripts/prettify/prettify.js +0 -28
  90. package/docs/styles/jsdoc-default.css +0 -692
  91. package/docs/styles/prettify-jsdoc.css +0 -111
  92. package/docs/styles/prettify-tomorrow.css +0 -132
  93. package/embedded_client/embedded_phone.js +0 -325
  94. package/embedded_client/index.html +0 -201
  95. package/embedded_client/server.php +0 -28
  96. package/embedded_client/styles.css +0 -310
  97. package/embedded_client/tiny_rest_client.php +0 -73
  98. package/embedded_client/webphone_sprites.png +0 -0
  99. package/es5/event-client.js +0 -277
  100. package/es5/index.js +0 -44
  101. package/es5/phone-client.js +0 -1336
  102. package/src/event-client.js +0 -1
  103. package/src/index.js +0 -10
  104. package/src/phone-client.js +0 -1
  105. package/webpack.config.js +0 -39
package/docs/Session.html CHANGED
@@ -1,2599 +1,3 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <title>Session - Documentation</title>
7
-
8
- <script src="scripts/prettify/prettify.js"></script>
9
- <script src="scripts/prettify/lang-css.js"></script>
10
- <!--[if lt IE 9]>
11
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
- <![endif]-->
13
- <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
- </head>
17
- <body>
18
-
19
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
- <label for="nav-trigger" class="navicon-button x">
21
- <div class="navicon"></div>
22
- </label>
23
-
24
- <label for="nav-trigger" class="overlay"></label>
25
-
26
- <nav>
27
- <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading">Classes</li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="EventClient.html">EventClient</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#connect">connect</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#disconnect">disconnect</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#fireEvent">fireEvent</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#isConnected">isConnected</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#subscribe">subscribe</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="EventClient.html#unsubscribe">unsubscribe</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Phone.html">Phone</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#call">call</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#getSessionByUUID">getSessionByUUID</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#holdAllCalls">holdAllCalls</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#listen">listen</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#playTone">playTone</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#prepareMedia">prepareMedia</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#start">start</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#stop">stop</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Phone.html#stopTone">stopTone</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Session.html">Session</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#answer">answer</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#getOtherSessions">getOtherSessions</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#hangup">hangup</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#hold">hold</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#muteMic">muteMic</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#playback">playback</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#reject">reject</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#sendDTMF">sendDTMF</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#setWhisperMode">setWhisperMode</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#startRecording">startRecording</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#stopRecording">stopRecording</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#toggleHold">toggleHold</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#toggleMute">toggleMute</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#toggleRecording">toggleRecording</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#transfer">transfer</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#unhold">unhold</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Session.html#unmuteMic">unmuteMic</a></span></li><li class="nav-heading">Events</li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:callDataInfo">callDataInfo</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:callDurationUpdate">callDurationUpdate</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:callEnded">callEnded</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:callQualityReportUpdate">callQualityReportUpdate</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:connectionStateChange">connectionStateChange</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:holdStateChange">holdStateChange</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:incomingCall">incomingCall</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:muteStateChange">muteStateChange</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:recordingStateChange">recordingStateChange</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:sessionCreated">sessionCreated</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:sessionRemoved">sessionRemoved</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:sessionStateChange">sessionStateChange</a></span></li><li class="nav-heading"><span class="nav-item-type type-event">E</span><span class="nav-item-name"><a href="global.html#event:whisperModeChange">whisperModeChange</a></span></li><li class="nav-heading"><a href="global.html">Globals</a></li>
28
- </nav>
29
-
30
- <div id="main">
31
-
32
- <h1 class="page-title">Session</h1>
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- <section>
41
-
42
- <header>
43
-
44
- <h2>
45
- Session
46
- </h2>
47
-
48
- <div class="class-description">Session class created for every active call. You should use either call() or event incomingCall() to get new sessions</div>
49
-
50
-
51
- </header>
52
-
53
- <article>
54
- <div class="container-overview">
55
-
56
-
57
- <div class="section-method">
58
-
59
-
60
- <h2>Constructor</h2>
61
-
62
-
63
- <h4 class="name" id="Session"><span class="type-signature"></span>new Session<span class="signature">()</span><span class="type-signature"></span></h4>
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
- <dl class="details">
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- </dl>
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- <h5>Fires:</h5>
121
- <ul>
122
- <li>event:callEnded Receive basic information about call after call has been terminated</li>
123
-
124
- <li>callDurationUpdate Regular updates on call duration (every second)</li>
125
-
126
- <li>event:sessionStateChange Changes to session state</li>
127
-
128
- <li>event:recordingStateChange When recording state changes</li>
129
-
130
- <li>event:muteStateChange When mute state changes</li>
131
-
132
- <li>event:holdStateChange When call is hold/unload</li>
133
- </ul>
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- </div>
146
-
147
- </div>
148
-
149
-
150
-
151
-
152
-
153
-
154
- <h3 class="subsection-title">Classes</h3>
155
-
156
- <dl>
157
- <dt><a href="Session.html">Session</a></dt>
158
- <dd></dd>
159
- </dl>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <h3 class="subsection-title">Members</h3>
168
-
169
-
170
-
171
- <div class="section-members">
172
- <h4 class="name" id="destinationNumber"><span class="type-signature"></span>destinationNumber<span class="type-signature"></span></h4>
173
-
174
-
175
-
176
-
177
- <div class="description">
178
- Destination number called
179
- </div>
180
-
181
-
182
-
183
-
184
-
185
- <dl class="details">
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- </dl>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
- </div>
227
-
228
-
229
-
230
- <div class="section-members">
231
- <h4 class="name" id="direction"><span class="type-signature"></span>direction<span class="type-signature"></span></h4>
232
-
233
-
234
-
235
-
236
- <div class="description">
237
- Session call direction
238
- </div>
239
-
240
-
241
-
242
-
243
-
244
- <dl class="details">
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- </dl>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
- </div>
286
-
287
-
288
-
289
- <div class="section-members">
290
- <h4 class="name" id="isMuted"><span class="type-signature"></span>isMuted<span class="type-signature"></span></h4>
291
-
292
-
293
-
294
-
295
- <div class="description">
296
- Return mute state
297
- </div>
298
-
299
-
300
-
301
-
302
-
303
- <dl class="details">
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
- </dl>
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
- </div>
345
-
346
-
347
-
348
- <div class="section-members">
349
- <h4 class="name" id="isOnHold"><span class="type-signature"></span>isOnHold<span class="type-signature"></span></h4>
350
-
351
-
352
-
353
-
354
- <div class="description">
355
- Return call hold status
356
- </div>
357
-
358
-
359
-
360
-
361
-
362
- <dl class="details">
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
- </dl>
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
- </div>
404
-
405
-
406
-
407
- <div class="section-members">
408
- <h4 class="name" id="isRecording"><span class="type-signature"></span>isRecording<span class="type-signature"></span></h4>
409
-
410
-
411
-
412
-
413
- <div class="description">
414
- Return recording state
415
- </div>
416
-
417
-
418
-
419
-
420
-
421
- <dl class="details">
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
- </dl>
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- </div>
463
-
464
-
465
-
466
- <div class="section-members">
467
- <h4 class="name" id="localNumberName"><span class="type-signature"></span>localNumberName<span class="type-signature"></span></h4>
468
-
469
-
470
-
471
-
472
- <div class="description">
473
- Name of local number (for inbound)
474
- </div>
475
-
476
-
477
-
478
-
479
-
480
- <dl class="details">
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
- </dl>
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
- </div>
522
-
523
-
524
-
525
- <div class="section-members">
526
- <h4 class="name" id="originatingNumber"><span class="type-signature"></span>originatingNumber<span class="type-signature"></span></h4>
527
-
528
-
529
-
530
-
531
- <div class="description">
532
- Originating number
533
- </div>
534
-
535
-
536
-
537
-
538
-
539
- <dl class="details">
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
- </dl>
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
- </div>
581
-
582
-
583
-
584
- <div class="section-members">
585
- <h4 class="name" id="state"><span class="type-signature"></span>state<span class="type-signature"></span></h4>
586
-
587
-
588
-
589
-
590
- <div class="description">
591
- Session state
592
- </div>
593
-
594
-
595
-
596
-
597
-
598
- <dl class="details">
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
- </dl>
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
- </div>
640
-
641
-
642
-
643
- <div class="section-members">
644
- <h4 class="name" id="uuid"><span class="type-signature"></span>uuid<span class="type-signature"></span></h4>
645
-
646
-
647
-
648
-
649
- <div class="description">
650
- Return UUID of call
651
- </div>
652
-
653
-
654
-
655
-
656
-
657
- <dl class="details">
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
- </dl>
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
- </div>
699
-
700
-
701
-
702
-
703
-
704
- <h3 class="subsection-title">Methods</h3>
705
-
706
-
707
-
708
- <div class="section-method">
709
-
710
-
711
-
712
- <h4 class="name" id="answer"><span class="type-signature"></span>answer<span class="signature">(metaInfo)</span><span class="type-signature"></span></h4>
713
-
714
-
715
-
716
-
717
-
718
- <div class="description">
719
- Answer incoming call
720
- </div>
721
-
722
-
723
-
724
-
725
-
726
- <dl class="details">
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
- </dl>
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
- <h5>Parameters:</h5>
770
-
771
-
772
- <table class="params">
773
- <thead>
774
- <tr>
775
-
776
- <th>Name</th>
777
-
778
-
779
- <th>Type</th>
780
-
781
-
782
-
783
-
784
- <th>Default</th>
785
-
786
-
787
- <th class="last">Description</th>
788
- </tr>
789
- </thead>
790
-
791
- <tbody>
792
-
793
-
794
- <tr>
795
-
796
- <td class="name"><code>metaInfo</code></td>
797
-
798
-
799
- <td class="type">
800
-
801
- </td>
802
-
803
-
804
-
805
-
806
- <td class="default">
807
-
808
- null
809
-
810
- </td>
811
-
812
-
813
- <td class="description last">
814
- Add meta info to this call
815
-
816
- </td>
817
- </tr>
818
-
819
-
820
- </tbody>
821
- </table>
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
- </div>
839
-
840
-
841
- <div class="section-method">
842
-
843
-
844
-
845
- <h4 class="name" id="getOtherSessions"><span class="type-signature"></span>getOtherSessions<span class="signature">()</span><span class="type-signature"></span></h4>
846
-
847
-
848
-
849
-
850
-
851
- <div class="description">
852
- Return a list of all sessions except this session
853
- Mostly used when transferring call
854
- </div>
855
-
856
-
857
-
858
-
859
-
860
- <dl class="details">
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
-
890
-
891
-
892
-
893
- </dl>
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
- </div>
918
-
919
-
920
- <div class="section-method">
921
-
922
-
923
-
924
- <h4 class="name" id="hangup"><span class="type-signature"></span>hangup<span class="signature">(disposition)</span><span class="type-signature"></span></h4>
925
-
926
-
927
-
928
-
929
-
930
- <div class="description">
931
- Hangup call
932
- </div>
933
-
934
-
935
-
936
-
937
-
938
- <dl class="details">
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
- </dl>
972
-
973
-
974
-
975
-
976
-
977
-
978
-
979
-
980
-
981
- <h5>Parameters:</h5>
982
-
983
-
984
- <table class="params">
985
- <thead>
986
- <tr>
987
-
988
- <th>Name</th>
989
-
990
-
991
- <th>Type</th>
992
-
993
-
994
-
995
-
996
- <th>Default</th>
997
-
998
-
999
- <th class="last">Description</th>
1000
- </tr>
1001
- </thead>
1002
-
1003
- <tbody>
1004
-
1005
-
1006
- <tr>
1007
-
1008
- <td class="name"><code>disposition</code></td>
1009
-
1010
-
1011
- <td class="type">
1012
-
1013
-
1014
- <span class="param-type"><code><a href="global.html#CALL_DISPOSITION">CALL_DISPOSITION</a></code></span>
1015
-
1016
-
1017
-
1018
- </td>
1019
-
1020
-
1021
-
1022
-
1023
- <td class="default">
1024
-
1025
- null
1026
-
1027
- </td>
1028
-
1029
-
1030
- <td class="description last">
1031
- Hangup call with specific disposition
1032
-
1033
- </td>
1034
- </tr>
1035
-
1036
-
1037
- </tbody>
1038
- </table>
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
- <div class="section-throws">
1052
- <h5>Throws:</h5>
1053
-
1054
-
1055
-
1056
- <div class="param-desc">
1057
-
1058
- NoActiveSession - If no active session / call exists
1059
-
1060
- </div>
1061
-
1062
-
1063
-
1064
- </div>
1065
-
1066
-
1067
-
1068
-
1069
-
1070
- </div>
1071
-
1072
-
1073
- <div class="section-method">
1074
-
1075
-
1076
-
1077
- <h4 class="name" id="hold"><span class="type-signature"></span>hold<span class="signature">()</span><span class="type-signature"></span></h4>
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- <div class="description">
1084
- Hold call
1085
- </div>
1086
-
1087
-
1088
-
1089
-
1090
-
1091
- <dl class="details">
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
- </dl>
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
- </div>
1149
-
1150
-
1151
- <div class="section-method">
1152
-
1153
-
1154
-
1155
- <h4 class="name" id="muteMic"><span class="type-signature"></span>muteMic<span class="signature">()</span><span class="type-signature"></span></h4>
1156
-
1157
-
1158
-
1159
-
1160
-
1161
- <div class="description">
1162
- Mute microphone
1163
- </div>
1164
-
1165
-
1166
-
1167
-
1168
-
1169
- <dl class="details">
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
-
1178
-
1179
-
1180
-
1181
-
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
- </dl>
1203
-
1204
-
1205
-
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
-
1225
-
1226
- </div>
1227
-
1228
-
1229
- <div class="section-method">
1230
-
1231
-
1232
-
1233
- <h4 class="name" id="playback"><span class="type-signature"></span>playback<span class="signature">(media_file_id, hangup_after)</span><span class="type-signature"></span></h4>
1234
-
1235
-
1236
-
1237
-
1238
-
1239
- <div class="description">
1240
- Playback media file into call. You must be connected the event service to use this feature (set connectEventService=true)
1241
- </div>
1242
-
1243
-
1244
-
1245
-
1246
-
1247
- <dl class="details">
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
-
1278
-
1279
-
1280
- </dl>
1281
-
1282
-
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
- <h5>Parameters:</h5>
1291
-
1292
-
1293
- <table class="params">
1294
- <thead>
1295
- <tr>
1296
-
1297
- <th>Name</th>
1298
-
1299
-
1300
- <th>Type</th>
1301
-
1302
-
1303
-
1304
-
1305
- <th>Default</th>
1306
-
1307
-
1308
- <th class="last">Description</th>
1309
- </tr>
1310
- </thead>
1311
-
1312
- <tbody>
1313
-
1314
-
1315
- <tr>
1316
-
1317
- <td class="name"><code>media_file_id</code></td>
1318
-
1319
-
1320
- <td class="type">
1321
-
1322
- </td>
1323
-
1324
-
1325
-
1326
-
1327
- <td class="default">
1328
-
1329
- </td>
1330
-
1331
-
1332
- <td class="description last">
1333
- Media file to playback
1334
-
1335
- </td>
1336
- </tr>
1337
-
1338
-
1339
-
1340
- <tr>
1341
-
1342
- <td class="name"><code>hangup_after</code></td>
1343
-
1344
-
1345
- <td class="type">
1346
-
1347
- </td>
1348
-
1349
-
1350
-
1351
-
1352
- <td class="default">
1353
-
1354
- false
1355
-
1356
- </td>
1357
-
1358
-
1359
- <td class="description last">
1360
- Hangup call after playback ends
1361
-
1362
- </td>
1363
- </tr>
1364
-
1365
-
1366
- </tbody>
1367
- </table>
1368
-
1369
-
1370
-
1371
-
1372
-
1373
-
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
- <div class="section-throws">
1381
- <h5>Throws:</h5>
1382
-
1383
-
1384
-
1385
- <div class="param-desc">
1386
-
1387
- NotAllowed - If event service is not enabled
1388
-
1389
- </div>
1390
-
1391
-
1392
-
1393
- </div>
1394
-
1395
-
1396
-
1397
- <div class="section-returns">
1398
- <h5>Returns:</h5>
1399
-
1400
-
1401
-
1402
-
1403
- <div class="param-desc">
1404
- Promise that resolves when playback has started
1405
- </div>
1406
-
1407
-
1408
- </div>
1409
-
1410
-
1411
-
1412
- </div>
1413
-
1414
-
1415
- <div class="section-method">
1416
-
1417
-
1418
-
1419
- <h4 class="name" id="reject"><span class="type-signature"></span>reject<span class="signature">(statusCode, reasonPhrase)</span><span class="type-signature"></span></h4>
1420
-
1421
-
1422
-
1423
-
1424
-
1425
- <div class="description">
1426
- Reject incoming call
1427
- </div>
1428
-
1429
-
1430
-
1431
-
1432
-
1433
- <dl class="details">
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
-
1445
-
1446
-
1447
-
1448
-
1449
-
1450
-
1451
-
1452
-
1453
-
1454
-
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
- </dl>
1467
-
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
-
1476
- <h5>Parameters:</h5>
1477
-
1478
-
1479
- <table class="params">
1480
- <thead>
1481
- <tr>
1482
-
1483
- <th>Name</th>
1484
-
1485
-
1486
- <th>Type</th>
1487
-
1488
-
1489
-
1490
-
1491
- <th>Default</th>
1492
-
1493
-
1494
- <th class="last">Description</th>
1495
- </tr>
1496
- </thead>
1497
-
1498
- <tbody>
1499
-
1500
-
1501
- <tr>
1502
-
1503
- <td class="name"><code>statusCode</code></td>
1504
-
1505
-
1506
- <td class="type">
1507
-
1508
- </td>
1509
-
1510
-
1511
-
1512
-
1513
- <td class="default">
1514
-
1515
- 603
1516
-
1517
- </td>
1518
-
1519
-
1520
- <td class="description last">
1521
- SIP Status code
1522
-
1523
- </td>
1524
- </tr>
1525
-
1526
-
1527
-
1528
- <tr>
1529
-
1530
- <td class="name"><code>reasonPhrase</code></td>
1531
-
1532
-
1533
- <td class="type">
1534
-
1535
- </td>
1536
-
1537
-
1538
-
1539
-
1540
- <td class="default">
1541
-
1542
- Rejected call
1543
-
1544
- </td>
1545
-
1546
-
1547
- <td class="description last">
1548
- Reason phrase
1549
-
1550
- </td>
1551
- </tr>
1552
-
1553
-
1554
- </tbody>
1555
- </table>
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
- </div>
1573
-
1574
-
1575
- <div class="section-method">
1576
-
1577
-
1578
-
1579
- <h4 class="name" id="sendDTMF"><span class="type-signature"></span>sendDTMF<span class="signature">(code, playLocal)</span><span class="type-signature"></span></h4>
1580
-
1581
-
1582
-
1583
-
1584
-
1585
- <div class="description">
1586
- Send DTMF tone on call
1587
- </div>
1588
-
1589
-
1590
-
1591
-
1592
-
1593
- <dl class="details">
1594
-
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
-
1610
-
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
- </dl>
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
- <h5>Parameters:</h5>
1637
-
1638
-
1639
- <table class="params">
1640
- <thead>
1641
- <tr>
1642
-
1643
- <th>Name</th>
1644
-
1645
-
1646
- <th>Type</th>
1647
-
1648
-
1649
-
1650
-
1651
- <th>Default</th>
1652
-
1653
-
1654
- <th class="last">Description</th>
1655
- </tr>
1656
- </thead>
1657
-
1658
- <tbody>
1659
-
1660
-
1661
- <tr>
1662
-
1663
- <td class="name"><code>code</code></td>
1664
-
1665
-
1666
- <td class="type">
1667
-
1668
- </td>
1669
-
1670
-
1671
-
1672
-
1673
- <td class="default">
1674
-
1675
- </td>
1676
-
1677
-
1678
- <td class="description last">
1679
- What DTMF code to send (valid: 0-9,*,#,d)
1680
-
1681
- </td>
1682
- </tr>
1683
-
1684
-
1685
-
1686
- <tr>
1687
-
1688
- <td class="name"><code>playLocal</code></td>
1689
-
1690
-
1691
- <td class="type">
1692
-
1693
- </td>
1694
-
1695
-
1696
-
1697
-
1698
- <td class="default">
1699
-
1700
- True
1701
-
1702
- </td>
1703
-
1704
-
1705
- <td class="description last">
1706
- Play DTMF sound locally also
1707
-
1708
- </td>
1709
- </tr>
1710
-
1711
-
1712
- </tbody>
1713
- </table>
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
-
1723
-
1724
-
1725
-
1726
- <div class="section-throws">
1727
- <h5>Throws:</h5>
1728
-
1729
-
1730
-
1731
- <div class="param-desc">
1732
-
1733
- InvalidParameter - On incorrect DTMF codes
1734
-
1735
- </div>
1736
-
1737
-
1738
-
1739
- </div>
1740
-
1741
-
1742
-
1743
-
1744
-
1745
- </div>
1746
-
1747
-
1748
- <div class="section-method">
1749
-
1750
-
1751
-
1752
- <h4 class="name" id="setWhisperMode"><span class="type-signature"></span>setWhisperMode<span class="signature">(mode)</span><span class="type-signature"></span></h4>
1753
-
1754
-
1755
-
1756
-
1757
-
1758
- <div class="description">
1759
- Set whisper mode on "listen" calls
1760
- </div>
1761
-
1762
-
1763
-
1764
-
1765
-
1766
- <dl class="details">
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
-
1774
-
1775
-
1776
-
1777
-
1778
-
1779
-
1780
-
1781
-
1782
-
1783
-
1784
-
1785
-
1786
-
1787
-
1788
-
1789
-
1790
-
1791
-
1792
-
1793
-
1794
-
1795
-
1796
-
1797
-
1798
-
1799
- </dl>
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
-
1809
- <h5>Parameters:</h5>
1810
-
1811
-
1812
- <table class="params">
1813
- <thead>
1814
- <tr>
1815
-
1816
- <th>Name</th>
1817
-
1818
-
1819
- <th>Type</th>
1820
-
1821
-
1822
-
1823
-
1824
- <th>Default</th>
1825
-
1826
-
1827
- <th class="last">Description</th>
1828
- </tr>
1829
- </thead>
1830
-
1831
- <tbody>
1832
-
1833
-
1834
- <tr>
1835
-
1836
- <td class="name"><code>mode</code></td>
1837
-
1838
-
1839
- <td class="type">
1840
-
1841
- </td>
1842
-
1843
-
1844
-
1845
-
1846
- <td class="default">
1847
-
1848
- 0
1849
-
1850
- </td>
1851
-
1852
-
1853
- <td class="description last">
1854
- Whisper mode 0 = No whisper / 1 = local peer only / 2 = Three way (both local and remote)
1855
-
1856
- </td>
1857
- </tr>
1858
-
1859
-
1860
- </tbody>
1861
- </table>
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
-
1873
-
1874
- <div class="section-throws">
1875
- <h5>Throws:</h5>
1876
- <ul>
1877
- <li>
1878
-
1879
- <div class="param-desc">
1880
-
1881
- NotAllowed - If call is not listen call
1882
-
1883
- </div>
1884
-
1885
- </li>
1886
-
1887
- <li>
1888
-
1889
- <div class="param-desc">
1890
-
1891
- InvalidOptions - If invalid mode given
1892
-
1893
- </div>
1894
-
1895
- </li>
1896
- </ul>
1897
- </div>
1898
-
1899
-
1900
-
1901
-
1902
-
1903
- </div>
1904
-
1905
-
1906
- <div class="section-method">
1907
-
1908
-
1909
-
1910
- <h4 class="name" id="startRecording"><span class="type-signature"></span>startRecording<span class="signature">()</span><span class="type-signature"></span></h4>
1911
-
1912
-
1913
-
1914
-
1915
-
1916
- <div class="description">
1917
- Start recording
1918
- </div>
1919
-
1920
-
1921
-
1922
-
1923
-
1924
- <dl class="details">
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
- </dl>
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
- </div>
1982
-
1983
-
1984
- <div class="section-method">
1985
-
1986
-
1987
-
1988
- <h4 class="name" id="stopRecording"><span class="type-signature"></span>stopRecording<span class="signature">()</span><span class="type-signature"></span></h4>
1989
-
1990
-
1991
-
1992
-
1993
-
1994
- <div class="description">
1995
- Stop recording
1996
- </div>
1997
-
1998
-
1999
-
2000
-
2001
-
2002
- <dl class="details">
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
-
2025
-
2026
-
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
-
2034
-
2035
- </dl>
2036
-
2037
-
2038
-
2039
-
2040
-
2041
-
2042
-
2043
-
2044
-
2045
-
2046
-
2047
-
2048
-
2049
-
2050
-
2051
-
2052
-
2053
-
2054
-
2055
-
2056
-
2057
-
2058
-
2059
- </div>
2060
-
2061
-
2062
- <div class="section-method">
2063
-
2064
-
2065
-
2066
- <h4 class="name" id="toggleHold"><span class="type-signature"></span>toggleHold<span class="signature">()</span><span class="type-signature"></span></h4>
2067
-
2068
-
2069
-
2070
-
2071
-
2072
- <div class="description">
2073
- Toggle call hold
2074
- </div>
2075
-
2076
-
2077
-
2078
-
2079
-
2080
- <dl class="details">
2081
-
2082
-
2083
-
2084
-
2085
-
2086
-
2087
-
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
-
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
-
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
-
2113
- </dl>
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
- </div>
2138
-
2139
-
2140
- <div class="section-method">
2141
-
2142
-
2143
-
2144
- <h4 class="name" id="toggleMute"><span class="type-signature"></span>toggleMute<span class="signature">()</span><span class="type-signature"></span></h4>
2145
-
2146
-
2147
-
2148
-
2149
-
2150
- <div class="description">
2151
- Toggle microphone mute state
2152
- </div>
2153
-
2154
-
2155
-
2156
-
2157
-
2158
- <dl class="details">
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
-
2184
-
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
- </dl>
2192
-
2193
-
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
-
2201
-
2202
-
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
-
2212
-
2213
-
2214
-
2215
- </div>
2216
-
2217
-
2218
- <div class="section-method">
2219
-
2220
-
2221
-
2222
- <h4 class="name" id="toggleRecording"><span class="type-signature"></span>toggleRecording<span class="signature">()</span><span class="type-signature"></span></h4>
2223
-
2224
-
2225
-
2226
-
2227
-
2228
- <div class="description">
2229
- Toogle recording ON/OFF
2230
- </div>
2231
-
2232
-
2233
-
2234
-
2235
-
2236
- <dl class="details">
2237
-
2238
-
2239
-
2240
-
2241
-
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
-
2250
-
2251
-
2252
-
2253
-
2254
-
2255
-
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
-
2267
-
2268
-
2269
- </dl>
2270
-
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
-
2278
-
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
- </div>
2294
-
2295
-
2296
- <div class="section-method">
2297
-
2298
-
2299
-
2300
- <h4 class="name" id="transfer"><span class="type-signature"></span>transfer<span class="signature">(dstSession)</span><span class="type-signature"></span></h4>
2301
-
2302
-
2303
-
2304
-
2305
-
2306
- <div class="description">
2307
- Transfer call to another session (attended transfer)
2308
- </div>
2309
-
2310
-
2311
-
2312
-
2313
-
2314
- <dl class="details">
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
- </dl>
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
-
2357
- <h5>Parameters:</h5>
2358
-
2359
-
2360
- <table class="params">
2361
- <thead>
2362
- <tr>
2363
-
2364
- <th>Name</th>
2365
-
2366
-
2367
- <th>Type</th>
2368
-
2369
-
2370
-
2371
-
2372
-
2373
- <th class="last">Description</th>
2374
- </tr>
2375
- </thead>
2376
-
2377
- <tbody>
2378
-
2379
-
2380
- <tr>
2381
-
2382
- <td class="name"><code>dstSession</code></td>
2383
-
2384
-
2385
- <td class="type">
2386
-
2387
- </td>
2388
-
2389
-
2390
-
2391
-
2392
-
2393
- <td class="description last">
2394
- Destination session
2395
-
2396
- </td>
2397
- </tr>
2398
-
2399
-
2400
- </tbody>
2401
- </table>
2402
-
2403
-
2404
-
2405
-
2406
-
2407
-
2408
-
2409
-
2410
-
2411
-
2412
-
2413
-
2414
-
2415
-
2416
-
2417
-
2418
- </div>
2419
-
2420
-
2421
- <div class="section-method">
2422
-
2423
-
2424
-
2425
- <h4 class="name" id="unhold"><span class="type-signature"></span>unhold<span class="signature">()</span><span class="type-signature"></span></h4>
2426
-
2427
-
2428
-
2429
-
2430
-
2431
- <div class="description">
2432
- Unhold call
2433
- </div>
2434
-
2435
-
2436
-
2437
-
2438
-
2439
- <dl class="details">
2440
-
2441
-
2442
-
2443
-
2444
-
2445
-
2446
-
2447
-
2448
-
2449
-
2450
-
2451
-
2452
-
2453
-
2454
-
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
-
2466
-
2467
-
2468
-
2469
-
2470
-
2471
-
2472
- </dl>
2473
-
2474
-
2475
-
2476
-
2477
-
2478
-
2479
-
2480
-
2481
-
2482
-
2483
-
2484
-
2485
-
2486
-
2487
-
2488
-
2489
-
2490
-
2491
-
2492
-
2493
-
2494
-
2495
-
2496
- </div>
2497
-
2498
-
2499
- <div class="section-method">
2500
-
2501
-
2502
-
2503
- <h4 class="name" id="unmuteMic"><span class="type-signature"></span>unmuteMic<span class="signature">()</span><span class="type-signature"></span></h4>
2504
-
2505
-
2506
-
2507
-
2508
-
2509
- <div class="description">
2510
- Unmute microphone
2511
- </div>
2512
-
2513
-
2514
-
2515
-
2516
-
2517
- <dl class="details">
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
-
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
-
2547
-
2548
-
2549
-
2550
- </dl>
2551
-
2552
-
2553
-
2554
-
2555
-
2556
-
2557
-
2558
-
2559
-
2560
-
2561
-
2562
-
2563
-
2564
-
2565
-
2566
-
2567
-
2568
-
2569
-
2570
-
2571
-
2572
-
2573
-
2574
- </div>
2575
-
2576
-
2577
-
2578
-
2579
-
2580
-
2581
- </article>
2582
-
2583
- </section>
2584
-
2585
-
2586
-
2587
-
2588
- </div>
2589
-
2590
- <br class="clear">
2591
-
2592
- <footer>
2593
- Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Fri Oct 06 2023 14:19:15 GMT+0200 (Central European Summer Time) using the Minami theme.
2594
- </footer>
2595
-
2596
- <script>prettyPrint();</script>
2597
- <script src="scripts/linenumber.js"></script>
2598
- </body>
2599
- </html>
1
+ <!DOCTYPE html><html lang="en" style="font-size:16px"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Class: Session</title><!--[if lt IE 9]>
2
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
3
+ <![endif]--><script src="scripts/third-party/hljs.js" defer="defer"></script><script src="scripts/third-party/hljs-line-num.js" defer="defer"></script><script src="scripts/third-party/popper.js" defer="defer"></script><script src="scripts/third-party/tippy.js" defer="defer"></script><script src="scripts/third-party/tocbot.min.js"></script><script>var baseURL="/",locationPathname="";baseURL=(locationPathname=document.location.pathname).substr(0,locationPathname.lastIndexOf("/")+1)</script><link rel="stylesheet" href="styles/clean-jsdoc-theme.min.css"><svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:none"><defs><symbol id="copy-icon" viewbox="0 0 488.3 488.3"><g><path d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z"/><path d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z"/></g></symbol><symbol id="search-icon" viewBox="0 0 512 512"><g><g><path d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z"/></g></g><g><g><path d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z"/></g></g></symbol><symbol id="font-size-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154l-2-5zm-.8-2L8 6.885 5.554 13h4.892zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93zM19 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></symbol><symbol id="add-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"/></symbol><symbol id="minus-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M5 11h14v2H5z"/></symbol><symbol id="dark-theme-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2h.1A6.979 6.979 0 0 0 10 7zm-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938 7.999 7.999 0 0 0 4 12z"/></symbol><symbol id="light-theme-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85l1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z"/></symbol><symbol id="reset-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M18.537 19.567A9.961 9.961 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10c0 2.136-.67 4.116-1.81 5.74L17 12h3a8 8 0 1 0-2.46 5.772l.997 1.795z"/></symbol><symbol id="down-icon" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z"></path></symbol><symbol id="codepen-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16.5 13.202L13 15.535v3.596L19.197 15 16.5 13.202zM14.697 12L12 10.202 9.303 12 12 13.798 14.697 12zM20 10.869L18.303 12 20 13.131V10.87zM19.197 9L13 4.869v3.596l3.5 2.333L19.197 9zM7.5 10.798L11 8.465V4.869L4.803 9 7.5 10.798zM4.803 15L11 19.131v-3.596l-3.5-2.333L4.803 15zM4 13.131L5.697 12 4 10.869v2.262zM2 9a1 1 0 0 1 .445-.832l9-6a1 1 0 0 1 1.11 0l9 6A1 1 0 0 1 22 9v6a1 1 0 0 1-.445.832l-9 6a1 1 0 0 1-1.11 0l-9-6A1 1 0 0 1 2 15V9z"/></symbol><symbol id="close-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/></symbol><symbol id="menu-icon" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"/></symbol></defs></svg></head><body data-theme="dark"><div class="sidebar-container"><div class="sidebar" id="sidebar"><div class="sidebar-items-container"><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-classes"><div>Classes</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="EventClient.html">EventClient</a></div><div class="sidebar-section-children"><a href="EventServiceNotConnected.html">EventServiceNotConnected</a></div><div class="sidebar-section-children"><a href="InvalidMediaDevice.html">InvalidMediaDevice</a></div><div class="sidebar-section-children"><a href="InvalidOptions.html">InvalidOptions</a></div><div class="sidebar-section-children"><a href="InvalidParameter.html">InvalidParameter</a></div><div class="sidebar-section-children"><a href="LogHandler.html">LogHandler</a></div><div class="sidebar-section-children"><a href="MediaNotPrepared.html">MediaNotPrepared</a></div><div class="sidebar-section-children"><a href="NoActiveSession.html">NoActiveSession</a></div><div class="sidebar-section-children"><a href="NotAllowed.html">NotAllowed</a></div><div class="sidebar-section-children"><a href="NotReady.html">NotReady</a></div><div class="sidebar-section-children"><a href="Phone.html">Phone</a></div><div class="sidebar-section-children"><a href="Request.html">Request</a></div><div class="sidebar-section-children"><a href="Requestor.html">Requestor</a></div><div class="sidebar-section-children"><a href="Session.html">Session</a></div><div class="sidebar-section-children"><a href="UnableToConnect.html">UnableToConnect</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-events"><div>Events</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#event:callDataInfo">callDataInfo</a></div><div class="sidebar-section-children"><a href="global.html#event:callDurationUpdate">callDurationUpdate</a></div><div class="sidebar-section-children"><a href="global.html#event:callEnded">callEnded</a></div><div class="sidebar-section-children"><a href="global.html#event:callQualityReportUpdate">callQualityReportUpdate</a></div><div class="sidebar-section-children"><a href="global.html#event:connectionStateChange">connectionStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:holdStateChange">holdStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:incomingCall">incomingCall</a></div><div class="sidebar-section-children"><a href="global.html#event:muteStateChange">muteStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:recordingStateChange">recordingStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionCreated">sessionCreated</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionRemoved">sessionRemoved</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionStateChange">sessionStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:whisperModeChange">whisperModeChange</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-global"><div>Global</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#CALL_DIRECTION">CALL_DIRECTION</a></div><div class="sidebar-section-children"><a href="global.html#CALL_DISPOSITION">CALL_DISPOSITION</a></div><div class="sidebar-section-children"><a href="global.html#CONNECTION_STATE">CONNECTION_STATE</a></div><div class="sidebar-section-children"><a href="global.html#LOGLVL">LOGLVL</a></div><div class="sidebar-section-children"><a href="global.html#SESSION_STATE">SESSION_STATE</a></div></div></div></div></div><div class="navbar-container" id="VuAckcnZhf"><nav class="navbar"><div class="navbar-left-items"></div><div class="navbar-right-items"><div class="navbar-right-item"><button class="icon-button search-button" aria-label="open-search"><svg><use xlink:href="#search-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button theme-toggle" aria-label="toggle-theme"><svg><use class="theme-svg-use" xlink:href="#light-theme-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button font-size" aria-label="change-font-size"><svg><use xlink:href="#font-size-icon"></use></svg></button></div></div><nav></nav></nav></div><div class="toc-container"><div class="toc-content"><span class="bold">On this page</span><div id="eed4d2a0bfd64539bb9df78095dec881"></div></div></div><div class="body-wrapper"><div class="main-content"><div class="main-wrapper"><section><header><h1 id="Session-title" class="has-anchor">Session</h1><div class="class-description">Session class created for every active call. You should use either call() or event incomingCall() to get new sessions</div></header><article><div class="container-overview"><h2 id="constructor" class="has-anchor">Constructor</h2><h3 class="name has-anchor" id="Session"><span class="type-signature"></span>new Session<span class="signature">()</span></h3><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line885">line 885</a></li></ul></dd></div></dl><div class="method-member-container flex w-100 overflow-auto mt-20"><strong>Fires:</strong><ul><li>event:callEnded Receive basic information about call after call has been terminated</li><li>callDurationUpdate Regular updates on call duration (every second)</li><li>event:sessionStateChange Changes to session state</li><li>event:recordingStateChange When recording state changes</li><li>event:muteStateChange When mute state changes</li><li>event:holdStateChange When call is hold/unload</li></ul></div></div><h2 id="classes" class="subsection-title has-anchor">Classes</h2><dl><dt><a href="Session.html">Session</a></dt><dd></dd></dl><h2 id="members" class="subsection-title has-anchor">Members</h2><h3 class="name has-anchor" id="destinationNumber"><span class="type-signature"></span>destinationNumber<span class="type-signature"></span></h3><div class="description">Destination number called</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1321">line 1321</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="direction"><span class="type-signature"></span>direction<span class="type-signature"></span></h3><div class="description">Session call direction</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1359">line 1359</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="isMuted"><span class="type-signature"></span>isMuted<span class="type-signature"></span></h3><div class="description">Return mute state</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1499">line 1499</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="isOnHold"><span class="type-signature"></span>isOnHold<span class="type-signature"></span></h3><div class="description">Return call hold status</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1536">line 1536</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="isRecording"><span class="type-signature"></span>isRecording<span class="type-signature"></span></h3><div class="description">Return recording state</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1463">line 1463</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="localNumberName"><span class="type-signature"></span>localNumberName<span class="type-signature"></span></h3><div class="description">Name of local number (for inbound)</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1329">line 1329</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="originatingNumber"><span class="type-signature"></span>originatingNumber<span class="type-signature"></span></h3><div class="description">Originating number</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1337">line 1337</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="state"><span class="type-signature"></span>state<span class="type-signature"></span></h3><div class="description">Session state</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1351">line 1351</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="uuid"><span class="type-signature"></span>uuid<span class="type-signature"></span></h3><div class="description">Return UUID of call</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1313">line 1313</a></li></ul></dd></div></dl><h2 id="methods" class="subsection-title has-anchor">Methods</h2><h3 class="name has-anchor" id="answer"><span class="type-signature"></span>answer<span class="signature">(metaInfo)</span></h3><div class="description">Answer incoming call</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>metaInfo</code></td><td class="type"></td><td class="default">null</td><td class="description last">Add meta info to this call</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1276">line 1276</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="getOtherSessions"><span class="type-signature"></span>getOtherSessions<span class="signature">()</span></h3><div class="description">Return a list of all sessions except this session Mostly used when transferring call</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1040">line 1040</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="hangup"><span class="type-signature"></span>hangup<span class="signature">(disposition)</span></h3><div class="description">Hangup call</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>disposition</code></td><td class="type"><span class="param-type"><a href="global.html#CALL_DISPOSITION">CALL_DISPOSITION</a></span></td><td class="default">null</td><td class="description last">Hangup call with specific disposition</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1259">line 1259</a></li></ul></dd></div></dl><div class="method-member-container mt-20"><strong>Throws:</strong><div class="param-desc">NoActiveSession - If no active session / call exists</div></div><h3 class="name has-anchor" id="hold"><span class="type-signature"></span>hold<span class="signature">()</span></h3><div class="description">Hold call</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1507">line 1507</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="muteMic"><span class="type-signature"></span>muteMic<span class="signature">()</span></h3><div class="description">Mute microphone</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1471">line 1471</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="playback"><span class="type-signature"></span>playback<span class="signature">(media_file_id, hangup_after)</span></h3><div class="description">Playback media file into call. You must be connected the event service to use this feature (set connectEventService=true)</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>media_file_id</code></td><td class="type"></td><td class="default"></td><td class="description last">Media file to playback</td></tr><tr><td class="name"><code>hangup_after</code></td><td class="type"></td><td class="default">false</td><td class="description last">Hangup call after playback ends</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1614">line 1614</a></li></ul></dd></div></dl><div class="method-member-container mt-20"><strong>Throws:</strong><div class="param-desc">NotAllowed - If event service is not enabled</div></div><div class="method-member-container mt-20"><strong>Returns:</strong><div class="param-desc">Promise that resolves when playback has started</div></div><h3 class="name has-anchor" id="reject"><span class="type-signature"></span>reject<span class="signature">(statusCode, reasonPhrase)</span></h3><div class="description">Reject incoming call</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>statusCode</code></td><td class="type"></td><td class="default">603</td><td class="description last">SIP Status code</td></tr><tr><td class="name"><code>reasonPhrase</code></td><td class="type"></td><td class="default">Rejected call</td><td class="description last">Reason phrase</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1301">line 1301</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="sendDTMF"><span class="type-signature"></span>sendDTMF<span class="signature">(code, playLocal)</span></h3><div class="description">Send DTMF tone on call</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>code</code></td><td class="type"></td><td class="default"></td><td class="description last">What DTMF code to send (valid: 0-9,*,#,d)</td></tr><tr><td class="name"><code>playLocal</code></td><td class="type"></td><td class="default">True</td><td class="description last">Play DTMF sound locally also</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1546">line 1546</a></li></ul></dd></div></dl><div class="method-member-container mt-20"><strong>Throws:</strong><div class="param-desc">InvalidParameter - On incorrect DTMF codes</div></div><h3 class="name has-anchor" id="setWhisperMode"><span class="type-signature"></span>setWhisperMode<span class="signature">(mode)</span></h3><div class="description">Set whisper mode on "listen" calls</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>mode</code></td><td class="type"></td><td class="default">0</td><td class="description last">Whisper mode 0 = No whisper / 1 = local peer only / 2 = Three way (both local and remote)</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1655">line 1655</a></li></ul></dd></div></dl><div class="method-member-container mt-20"><strong>Throws:</strong><ul><li><div class="param-desc">NotAllowed - If call is not listen call</div></li><li><div class="param-desc">InvalidOptions - If invalid mode given</div></li></ul></div><h3 class="name has-anchor" id="startRecording"><span class="type-signature"></span>startRecording<span class="signature">()</span></h3><div class="description">Start recording</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1379">line 1379</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="stopRecording"><span class="type-signature"></span>stopRecording<span class="signature">()</span></h3><div class="description">Stop recording</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1413">line 1413</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="toggleHold"><span class="type-signature"></span>toggleHold<span class="signature">()</span></h3><div class="description">Toggle call hold</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1524">line 1524</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="toggleMute"><span class="type-signature"></span>toggleMute<span class="signature">()</span></h3><div class="description">Toggle microphone mute state</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1487">line 1487</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="toggleRecording"><span class="type-signature"></span>toggleRecording<span class="signature">()</span></h3><div class="description">Toogle recording ON/OFF</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1449">line 1449</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="transfer"><span class="type-signature"></span>transfer<span class="signature">(dstSession)</span></h3><div class="description">Transfer call to another session (attended transfer)</div><div class="method-member-container flex flex-col w-100 overflow-auto mt-20"><strong>Parameters:</strong><table class="params"><thead><tr><th>Name</th><th>Type</th><th class="last">Description</th></tr></thead><tbody><tr><td class="name"><code>dstSession</code></td><td class="type"></td><td class="description last">Destination session</td></tr></tbody></table></div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1580">line 1580</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="unhold"><span class="type-signature"></span>unhold<span class="signature">()</span></h3><div class="description">Unhold call</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1515">line 1515</a></li></ul></dd></div></dl><h3 class="name has-anchor" id="unmuteMic"><span class="type-signature"></span>unmuteMic<span class="signature">()</span></h3><div class="description">Unmute microphone</div><dl class="details"><div class="details-item-container"><dt class="tag-source bold">Source</dt><dd class="tag-source"><ul><li><a href="phone-client.js.html">phone-client.js</a>, <a href="phone-client.js.html#line1479">line 1479</a></li></ul></dd></div></dl></article></section></div></div></div><div class="search-container" id="PkfLWpAbet" style="display:none"><div class="wrapper" id="iCxFxjkHbP"><button class="icon-button search-close-button" id="VjLlGakifb" aria-label="close search"><svg><use xlink:href="#close-icon"></use></svg></button><div class="search-box-c"><svg><use xlink:href="#search-icon"></use></svg> <input type="text" id="vpcKVYIppa" class="search-input" placeholder="Search..." autofocus></div><div class="search-result-c" id="fWwVHRuDuN"><span class="search-result-c-text">Type anything to view search result</span></div></div></div><div class="mobile-menu-icon-container"><button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu"><svg><use xlink:href="#menu-icon"></use></svg></button></div><div id="mobile-sidebar" class="mobile-sidebar-container"><div class="mobile-sidebar-wrapper"><div class="mobile-nav-links"></div><div class="mobile-sidebar-items-c"><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-classes"><div>Classes</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="EventClient.html">EventClient</a></div><div class="sidebar-section-children"><a href="EventServiceNotConnected.html">EventServiceNotConnected</a></div><div class="sidebar-section-children"><a href="InvalidMediaDevice.html">InvalidMediaDevice</a></div><div class="sidebar-section-children"><a href="InvalidOptions.html">InvalidOptions</a></div><div class="sidebar-section-children"><a href="InvalidParameter.html">InvalidParameter</a></div><div class="sidebar-section-children"><a href="LogHandler.html">LogHandler</a></div><div class="sidebar-section-children"><a href="MediaNotPrepared.html">MediaNotPrepared</a></div><div class="sidebar-section-children"><a href="NoActiveSession.html">NoActiveSession</a></div><div class="sidebar-section-children"><a href="NotAllowed.html">NotAllowed</a></div><div class="sidebar-section-children"><a href="NotReady.html">NotReady</a></div><div class="sidebar-section-children"><a href="Phone.html">Phone</a></div><div class="sidebar-section-children"><a href="Request.html">Request</a></div><div class="sidebar-section-children"><a href="Requestor.html">Requestor</a></div><div class="sidebar-section-children"><a href="Session.html">Session</a></div><div class="sidebar-section-children"><a href="UnableToConnect.html">UnableToConnect</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-events"><div>Events</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#event:callDataInfo">callDataInfo</a></div><div class="sidebar-section-children"><a href="global.html#event:callDurationUpdate">callDurationUpdate</a></div><div class="sidebar-section-children"><a href="global.html#event:callEnded">callEnded</a></div><div class="sidebar-section-children"><a href="global.html#event:callQualityReportUpdate">callQualityReportUpdate</a></div><div class="sidebar-section-children"><a href="global.html#event:connectionStateChange">connectionStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:holdStateChange">holdStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:incomingCall">incomingCall</a></div><div class="sidebar-section-children"><a href="global.html#event:muteStateChange">muteStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:recordingStateChange">recordingStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionCreated">sessionCreated</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionRemoved">sessionRemoved</a></div><div class="sidebar-section-children"><a href="global.html#event:sessionStateChange">sessionStateChange</a></div><div class="sidebar-section-children"><a href="global.html#event:whisperModeChange">whisperModeChange</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-global"><div>Global</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#CALL_DIRECTION">CALL_DIRECTION</a></div><div class="sidebar-section-children"><a href="global.html#CALL_DISPOSITION">CALL_DISPOSITION</a></div><div class="sidebar-section-children"><a href="global.html#CONNECTION_STATE">CONNECTION_STATE</a></div><div class="sidebar-section-children"><a href="global.html#LOGLVL">LOGLVL</a></div><div class="sidebar-section-children"><a href="global.html#SESSION_STATE">SESSION_STATE</a></div></div></div><div class="mobile-navbar-actions"><div class="navbar-right-item"><button class="icon-button search-button" aria-label="open-search"><svg><use xlink:href="#search-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button theme-toggle" aria-label="toggle-theme"><svg><use class="theme-svg-use" xlink:href="#light-theme-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button font-size" aria-label="change-font-size"><svg><use xlink:href="#font-size-icon"></use></svg></button></div></div></div></div><script type="text/javascript" src="scripts/core.min.js"></script><script src="scripts/search.min.js" defer="defer"></script><script src="scripts/third-party/fuse.js" defer="defer"></script><script type="text/javascript">var tocbotInstance=tocbot.init({tocSelector:"#eed4d2a0bfd64539bb9df78095dec881",contentSelector:".main-content",headingSelector:"h1, h2, h3",hasInnerContainers:!0,scrollContainer:".main-content",headingsOffset:130,onClick:bringLinkToView})</script></body></html>