This script will query a Callmanager for the line text and use the spaces within it to create a phone directory (XML based) structure for a Cisco IP Phone. For implementation and files, see DPD Implementation