From version < 53.1 >
edited by Simon Morlat
on 2020/06/25 18:39
To version < 54.1 >
edited by Danmei Chen
on 2020/06/26 10:06
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.smorlat
1 +xwiki:XWiki.DanmeiChen
Content
... ... @@ -202,6 +202,7 @@
202 202   // configure audio session here. Use 48000 Hz as sampling rate.
203 203   } else {
204 204   // accept call here
205 + call.acceptWithParams(params: callParams)
205 205   }
206 206   action.fulfill()
207 207  }
... ... @@ -212,6 +212,7 @@
212 212  {{code language="swift"}}
213 213  func provider(_ provider: CXProvider, perform action: CXEndCallAction) {
214 214   // terminate call here
216 + call.terminate()
215 215   action.fulfill()
216 216  }
217 217  {{/code}}
... ... @@ -235,6 +235,7 @@
235 235  {{code language="swift"}}
236 236  func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
237 237   // start an outgoing call
240 + lc.inviteAddressWithParams(addr: addr, params: params)
238 238   action.fulfill()
239 239  }
240 240  
... ... @@ -257,6 +257,7 @@
257 257  func provider(_ provider: CXProvider, perform action: CXSetHeldCallAction) {
258 258   // If this is a conference, leave/enter the conference.
259 259   // Otherwide, pause/resume the call.
263 + call.pause()
260 260   action.fulfill()
261 261  }
262 262  
... ... @@ -267,6 +267,7 @@
267 267  {{code language="swift"}}
268 268  func provider(_ provider: CXProvider, perform action: CXSetMutedCallAction) {
269 269   // Mute/un-mute a call
274 + lc.micEnabled = false
270 270   action.fulfill()
271 271  }
272 272  
... ... @@ -277,6 +277,7 @@
277 277  {{code language="swift"}}
278 278  func provider(_ provider: CXProvider, perform action: CXPlayDTMFCallAction) {
279 279   // Send DTMF
285 + call.sendDtmf(dtmf: digit)
280 280   action.fulfill()
281 281  }
282 282  {{/code}}
... ... @@ -286,6 +286,7 @@
286 286  {{code language="swift"}}
287 287  func provider(_ provider: CXProvider, perform action: CXSetGroupCallAction) {
288 288   // add all to conference
295 + lc.addAllToConference()
289 289   action.fulfill()
290 290  }
291 291  {{/code}}