Our Asterisk server will soon receive SIP calls on multiple numbers, so we need to know which number has been dialed to correctly answer on the phone : "Hello, this is Company-A" or "Hello, this is Company-B".
We are a bunch of people answering, so the dialplan is organized with multiple queues : one per incoming number, based on the ${EXTEN}
variable.
Now, the last step is to display on the phone (Yealink ones) ideally the queue name, or if not possible the incoming dialed number.
How can I achieve this in the dialplan ?