Our Twilio app connects with TaskRouter to handle queueing of calls, and I'm struggling to set the right parameters on the "dequeue" instruction.
Perhaps this is the wrong way to do it, but the way it's set up so that when a call comes in, it takes the DTMF tones and sends them to an enqueue function, where calls are routed to different TaskQueues (support, sales, etc.). From my understanding, when a call is enqueued to the Twilio client, Twilio will send it to the correct TaskQueue. When a worker becomes available in that TaskQueue, Twilio routes the task data to the assignment_callback URL.
So how can I set the "from" property in my dequeue instruction to be the number of the caller? If I leave it blank it sets it to my registered Twilio number. I just want the from number on our SIP phones to show who has called, it would be great if I could just get a "caller" argument from the assignment_callback URL, and set that value in the dequeue instruction.