Skip to content

Commit

Permalink
Merge pull request #123 from purecloudlabs/STREAM-331
Browse files Browse the repository at this point in the history
STREAM-331 added in state resets for Plantronics when ending a call
  • Loading branch information
maxwellmooney13 authored Feb 11, 2025
2 parents 7efb160 + dd1d373 commit bef26f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @jensengar @zservies @maxwellmooney13 @hjon
* @zservies @maxwellmooney13 @hjon
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ export default class PlantronicsService extends VendorImplementation {
this.deviceRejectedCall({ name: eventInfo.name, conversationId: this.incomingConversationId });
break;
case 'TerminateCall':
this.setMute(false);
this.setHold(conversationId, false);
this.deviceEndedCall({ ...eventInfo, conversationId });
break;
case 'CallEnded':
Expand Down Expand Up @@ -424,6 +426,8 @@ export default class PlantronicsService extends VendorImplementation {
params += `&callID={${encodeURI(halfEncodedCallIdString)}}`;

const response = await this._makeRequestTask(`/CallServices/TerminateCall${params}`);
this.setMute(false);
this.setHold(conversationId, false);
await this.getCallEvents();
this._checkIsActiveTask();
return response;
Expand Down

0 comments on commit bef26f1

Please sign in to comment.