You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No agents are available.
User leaves a voicemail.
When an agent comes online, they pick up the voicemail task.
When they click retry, the task appears in agent's queue, but it is ringing. It is no longer a voicemail talk but a voice task.
Expected behavior:
On Retry the new task should be created in the same channel as the original.
If this is the intended behavior, provide documentation on flex plugins page.
The text was updated successfully, but these errors were encountered:
I figured out the root cause of the problem after debugging the plugin library function code.
There are 2 functions:
/callback/studio/create-callback - responsible for creating initial voicemail task from studio
/callback/flex/create-callback - gets triggered when you click Retry and a second task is created from Flex
In the 2nd function, this part of the code does not work because taskChannel is blank, so it defaults to 'voice':
...
const {
taskChannel: overriddenTaskChannel
} = event;
const taskChannel = overriddenTaskChannel || 'voice';
...
For my use-case, I can change the above to 'voicemail' and it works. But I think it still needs to be fixed in the source code.
I would assume the event should come with all attributes of the original task, but it doesn't seem to be the case.
Also, there is no documentation on how to debug plibo functions.
For my custom functions I can run twilio serverless:logs --tail and see the logs. But for the plugin functions, I can only find logs if I trigger an error.
Test:
No agents are available.
User leaves a voicemail.
When an agent comes online, they pick up the voicemail task.
When they click retry, the task appears in agent's queue, but it is ringing. It is no longer a voicemail talk but a voice task.
Expected behavior:
The text was updated successfully, but these errors were encountered: