Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Jul 9, 2024 · 3 comments

Comments

@waqar2418
Copy link

waqar2418 commented Jul 9, 2024

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
Copy link
Author

waqar2418 commented Jul 9, 2024

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');
        }
    }

@waqar2418 waqar2418 changed the title In case of blind transfer to third party, audio not working is when agent gets disconnected before In case of blind transfer to third party, audio not working , when agent leaves the call before third party accepts the call Jul 9, 2024
Copy link

github-actions bot commented Oct 7, 2024

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

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant