amazon-connect / amazon-connect-streams

Amazon Connect Streams - a browser-based contact center integration API, typically with CRM systems.
https://docs.aws.amazon.com/connect/latest/userguide/
Apache License 2.0
395 stars 315 forks source link

In case of blind transfer to third party, audio not working , when agent leaves the call before third party accepts the call #897

Closed waqar2418 closed 1 month ago

waqar2418 commented 4 months ago

Steps to reproduce

1- Agent receives inbound call from thirds party number 2- Agent transfer the call to second third party number 3- Agent leaves the call 4- Audio is not working for both third party numbers

waqar2418 commented 4 months ago

Here is my code snippets

   async BlindTransfertoDestination(endpoint) {
        /**
         * Initiates a Blind transfer.
         * Put Customer on hold and call third party
         * Leaving customer on his own, if no agent picks call.
         * Customer have to repeat the procedure
         */
        try {
            let contact = this.contact;
            let activeConnection = await this.contact.getActiveInitialConnection();
            let holdResp = await this.putConnectionOnHold(activeConnection);
            if (holdResp.status === "success") {
                let resp = await this.addConnectionForTransfer(contact, endpoint);
                if (resp.status === "success") {
                    // await ContactService.self.endAgentConnection();
                    this.pendingTransfer = true;
                }
            }
        }
        catch (ex) {
            let activeConnection = this.contact.getActiveInitialConnection();
            if (!activeConnection) return;
            await this.resumeConnection(activeConnection);
            throw new Error('transfer fails');
        }
    }
github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment to keep this active.

github-actions[bot] commented 1 month ago

It has been a while and we are closing this for now. Please reopen if this is still an issue