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

Agent status doesn't change to available activity while doing outbound call #37

Open
AmyKHwho opened this issue Mar 9, 2020 · 1 comment

Comments

@AmyKHwho
Copy link

AmyKHwho commented Mar 9, 2020

When we use this outbound dialpad plugin, we found sometimes the agent status doesn't change to availalbe activity automatically, thus the outbound task can't be set up successfully at agent end, meanwhile at client's end it looks like the call is holding. When issue happens, agent also can't end the call since the hang up icon disappears, agent has to refresh the page to end it.
There are suspicions that sync map update doesn't always happen.
The issue is intermittently.

@hewhofreeks
Copy link

I know we ran into similar issues at some point and think we found a workaround. We weren't sure if there was something we added on our end to cause this to happen but it sounds similar to an issue we saw. To resolve it we modified the file
plugin-flex-outbound-dialpad/dialpad-functions/functions/outbound-dialing/callStatusUpdateHandler.protected.js

And removed the if statement here,

// We dont need to know about calls that are completed as this is the natural part of the life cycle after the call has been answered
  if (event.CallStatus !== "completed") {
    updateSyncDoc(context, event).then(() => callback(null, response))
  } else {
    callback(null, response)
  }

to just always call
updateSyncDoc(context, event).then(() => callback(null, response))

I have a feeling that the sync doc wasn't properly updated everytime a call was completed so when another was trying to be made it wasn't handling it properly. Would be curious to get @jhunter-twilio feedback though

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

No branches or pull requests

2 participants