Skip to content

Commit bef26f1

Browse files
Merge pull request #123 from purecloudlabs/STREAM-331
STREAM-331 added in state resets for Plantronics when ending a call
2 parents 7efb160 + dd1d373 commit bef26f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @jensengar @zservies @maxwellmooney13 @hjon
1+
* @zservies @maxwellmooney13 @hjon

react-app/src/library/services/vendor-implementations/plantronics/plantronics.ts

+4
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ export default class PlantronicsService extends VendorImplementation {
245245
this.deviceRejectedCall({ name: eventInfo.name, conversationId: this.incomingConversationId });
246246
break;
247247
case 'TerminateCall':
248+
this.setMute(false);
249+
this.setHold(conversationId, false);
248250
this.deviceEndedCall({ ...eventInfo, conversationId });
249251
break;
250252
case 'CallEnded':
@@ -424,6 +426,8 @@ export default class PlantronicsService extends VendorImplementation {
424426
params += `&callID={${encodeURI(halfEncodedCallIdString)}}`;
425427

426428
const response = await this._makeRequestTask(`/CallServices/TerminateCall${params}`);
429+
this.setMute(false);
430+
this.setHold(conversationId, false);
427431
await this.getCallEvents();
428432
this._checkIsActiveTask();
429433
return response;

0 commit comments

Comments
 (0)