I am trying to add delay between two incoming calls. eg. worker get first incoming call and he rejects it. then second incoming call should only assigned to the same worker after certain timeframe(eg. 2 sec).
Twilio developer evangelist here.
When you 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 then the worker won't receive any further reservations while in that activity.
You could then set a timer to update the activity again, so that the worker becomes available to receive reservations again.