Following the tutorials to creation of a task router (Workspace,queue,worker,task) and task creation via a Phone Call.
I am able to successfully land the call and create the task via my node.js app.
After adding the Agent UI via tutorial @
Agent UI Add Project
Here is the application flow:
- Customer calls Twilio number
- Twilio Voice Posts to a Node.js Rest API
- Twilio Voice Posts to a Node.js Rest API
- Twiml generated and user gets Prompts
- User chooses an option
- Response is Posted to a Node.js API and task is created
The above steps are success
On the client
Agent launches the node.js app with taskrouter.min.js and agent.js as provided in the sample above.
Customer gets the default hold noise, on the agent browser a series of events "reservation created, update and reservation cancels" are observed. Posting the console logs towards the end.
- Observation 1, customer gets the default Hold noise confirms that Task is created successfully via the App. Task also seen on the Twilio Admin GUI
- Observation 2, Getting a sequence of Reservation,Update,Cancel events multiple times.
1970-01-17T17:52:39.413Z
.
Any pointers would be greatly appreciated.
[Edit:] I do see similar issues with the PHP Sample code as well. Found that the Date is not an issue. [Edit:] Reached out to Twilio Support, hoping to hear from them, no luck so far
[RESOLVED] Heard back from twilio support, thanks twilio. Issue was with the Assignment Callback URL on the Workflow. My API was /Get. Changed it from Get to Post, to make it work. As the assignment URL was not reachable (via POST), task router was trying to cancel the reservation.