在两个来电之间添加延迟
Adding delay between two incoming calls
我正在尝试增加两个来电之间的延迟。例如。工人接到第一个来电,他拒绝了。那么第二个来电只能在特定时间段(例如 2 秒)后分配给同一个工作人员。
此处为 Twilio 开发人员布道师。
当您 reject a reservation in the JS SDK you can set a activity SID which the worker will be placed into once the rejection is complete. If you set that activity SID to be an Activity which is marked as not available 时,工作人员将不会在 activity 期间收到任何进一步的预订。
然后您可以设置计时器再次更新 activity,以便工作人员可以再次接收预订。
我正在尝试增加两个来电之间的延迟。例如。工人接到第一个来电,他拒绝了。那么第二个来电只能在特定时间段(例如 2 秒)后分配给同一个工作人员。
此处为 Twilio 开发人员布道师。
当您 reject a reservation in the JS SDK you can set a activity SID which the worker will be placed into once the rejection is complete. If you set that activity SID to be an Activity which is marked as not available 时,工作人员将不会在 activity 期间收到任何进一步的预订。
然后您可以设置计时器再次更新 activity,以便工作人员可以再次接收预订。