If you are looking to just display the number, you use a script variable that you assign the Call.CalledAddress value to that variable. If you want to show names, then create a data table, lookup up the DNIS, get the name and assign that to a variable in the script.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
https://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------